0
標準的な使用のために変数を持つオブジェクトがいくつかあります。 GWTで私は次のことをしたいと思っています:GWTはオブジェクトから動的に変数を取得します
public class myObject {
protected TextBox textbox1 = new TextBox();
protected TextBox textbox2 = new TextBox();
protected TextBox textbox3 = new TextBox();
protected TextBox textbox4 = new TextBox();
// pass name of field: textbox1, textbox2... etc.
public TextBox getMyTextbox(String fieldname) {
return this.... [fieldname];
}
}
私は実際には得られないものです。どんな助けも歓迎されるでしょう。あなたがここに混乱見つけるか何
あなたが本当に取得しない何かをしますか? :) どうしてそうするか? :)これは何ですか.... [fieldname]ですか? – milan
ロマンチックな質問ですか? –
@milan:functional私はgetMyTextboxを行いますが、私の心の中で私はそれをどうやって行うのか分かりません;-)。 – MightyMouseTheSecond