是否可以在FormLayout上添加按钮
我需要在使用 FormLayout
的对话框中间显示按钮
但是,当我向此类对话框添加按钮时,它会添加到标准对话框按钮(确定/取消等)附近。我不需要在那里添加按钮,我需要在对话框的 body 中添加按钮吗?
我想我的问题与此类似 http:// www.coderanch.com/t/496347/GWT/GXT-Button-near-text-field
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 etc.). 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AdapterField
应该用于适应http://tutorialsjava.com/2009/08/22/no-border-around-form-in-ext-gwt/:
Ext-Gwt(GXT)中的FormLayout
使用 FormLayout/FormPanel 时,您需要了解表单布局的一些特定属性。
在 FormLayout 上,仅显示扩展 Field 的小部件。如果要显示不扩展 Field 的小部件,首先必须将其包装在 AdapterField 中。
当我使用 FormPanel 时,即使设置 .setFrame(false) 和 .setBorders(false) ,表单周围也有边框。
这不是一个错误,您还需要设置 .setBodyBorder(false) 才能看到表单周围没有边框。
AdapterField
should be used to adapt Buttonfrom 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.
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.
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.