本文整理汇总了Java中com.extjs.gxt.ui.client.widget.layout.FormLayout.setLabelPad方法的典型用法代码示例。如果您正苦于以下问题:Java FormLayout.setLabelPad方法的具体用法?Java FormLayout.setLabelPad怎么用?Java FormLayout.setLabelPad使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.extjs.gxt.ui.client.widget.layout.FormLayout
的用法示例。
在下文中一共展示了FormLayout.setLabelPad方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: afterRender
import com.extjs.gxt.ui.client.widget.layout.FormLayout; //导入方法依赖的package包/类
@Override
protected void afterRender() {
// super.afterRender();
//TODO 添加按钮
super.add(formPanel);
FormLayout fl = new FormLayout();
fl.setLabelWidth(150);
fl.setLabelPad(50);
formPanel.setLayout(fl);
setupPanelLayout();
btnOk = new Button("确定");
btnOk.addSelectionListener(selectionListener);
btnPre = new Button("上一步", new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
OrderGoodsPanel.State newState = new OrderGoodsPanel.State();
newState.setIsEdit(false);
newState.setUserId(getCurState().getUserId());
newState.setId(getCurState().getOrderId());
newState.execute();
}
});
btnNext = new Button("下一步");
btnNext.addSelectionListener(selectionListener);
btnCancel = new Button("取消", new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
cancel();
}
});
formPanel.setButtonAlign(HorizontalAlignment.CENTER);
formPanel.addButton(btnOk);
formPanel.addButton(btnPre);
formPanel.addButton(btnNext);
formPanel.addButton(btnCancel);
}
示例2: onRender
import com.extjs.gxt.ui.client.widget.layout.FormLayout; //导入方法依赖的package包/类
@Override
protected void onRender(Element parent, int index) {
super.onRender(parent, index);
basePanel.setLayout(new BorderLayout());
basePanel.setStyleAttribute("padding", "10px");
super.add(basePanel);
FormLayout fl = new FormLayout();
fl.setLabelWidth(150);
fl.setLabelPad(50);
formPanel.setLayout(fl);
initCommentLayout();
initReplyLayout();
btnNew.setText(Resources.constants.ok());
btnReset.setText(Resources.constants.reset());
formPanel.setButtonAlign(HorizontalAlignment.CENTER);
formPanel.addButton(btnNew);
formPanel.addButton(btnReset);
btnNew.addSelectionListener(selectionListener);
btnReset.addSelectionListener(
new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent sender) {
formPanel.reset();
}
}
);
}
示例3: afterRender
import com.extjs.gxt.ui.client.widget.layout.FormLayout; //导入方法依赖的package包/类
@Override
protected void afterRender() {
super.afterRender();
// add(formPanel);
super.add(formPanel);
// formPanel.setBodyBorder(false);
//formPanel.setWidth(800);
FormLayout fl = new FormLayout();
fl.setLabelWidth(150);
fl.setLabelPad(50);
formPanel.setLayout(fl);
formPanel.setWidth("100%");
setupPanelLayout();
btnNew.setText(Resources.constants.ok());
btnReset.setText(Resources.constants.reset());
// panel.add(btnNew);
// panel.add(btnCancel);
formPanel.setButtonAlign(HorizontalAlignment.CENTER);
formPanel.addButton(btnNew);
formPanel.addButton(btnReset);
btnNew.addSelectionListener(selectionListener);
btnReset.addSelectionListener(
new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent sender) {
formPanel.reset();
}
}
);
}
示例4: getFormLayout
import com.extjs.gxt.ui.client.widget.layout.FormLayout; //导入方法依赖的package包/类
public FormLayout getFormLayout() {
FormLayout fl = new FormLayout();
fl.setLabelWidth(150);
fl.setLabelPad(50);
return fl;
}