开发者

Is it possible to add button on FormLayout

开发者 https://www.devze.com 2023-04-07 16:46 出处:网络
I need to display button in the middle of the dialog that uses FormLayout However when I\'m adding button to such dialog, it added near standard dialog buttons (OK/Cancel et开发者_开发百科c.). I do n

I need to display button in the middle of the dialog that uses FormLayout

However when I'm adding button to such dialog, it added near standard dialog buttons (OK/Cancel et开发者_开发百科c.). I do not need to add buton there, I do need to add button in the body of the dialog?

I guess my problem is similar to this one http://www.coderanch.com/t/496347/GWT/GXT-Button-near-text-field


AdapterField should be used to adapt Button

from http://tutorialsjava.com/2009/08/22/no-border-around-form-in-ext-gwt/ :

FormLayout in Ext-Gwt (GXT) When using a FormLayout/FormPanel you need to be aware of some specific properties for a Form Layout.

  1. On a FormLayout only widgets that extend Field are displayed. If you want to display a widget that does not extend Field, you first have to wrap it in AdapterField.

  2. When I used a FormPanel it had a border around the form even when setting .setFrame(false) and .setBorders(false) .

This is not a bug, you also need to set .setBodyBorder(false) to see no borders around a form.

0

精彩评论

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

关注公众号