开发者

GXT Textfield postfix

I try to build a simple form.

Calc: 开发者_Python百科 [____] bar

So the Textfield with the prefix is no problem. But the postfix "bar". Currenty I have no idea to fix this problem. Here ist the current code:

TextField<String> field = new TextField<String>();      
field.setFieldLabel("Calc");
field.setAllowBlank(false);


The FormPanel renders all Fields in a LABEL: INPUTFIELD way. To render other widgets within a FormPanel I would use the AdpaterField that contains the real TextField and the postfix.

    HorizontalPanel container = new HorizontalPanel();
    AdapterField field = new AdapterField(container);
    field.setFieldLabel("Calc");
    TextField<String> inputField = new TextField<String>();
    inputField.setAllowBlank(false);
    container.add(inputField);
    container.add(new Html("bar"));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜