当前位置: 首页>>代码示例>>Java>>正文


Java FormLayout.setLabelPad方法代码示例

本文整理汇总了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);
      
	}
 
开发者ID:jbosschina,项目名称:jcommerce,代码行数:39,代码来源:ConsigneePanel.java

示例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();
     		}
     	}
   );
	
    
  }
 
开发者ID:jbosschina,项目名称:jcommerce,代码行数:35,代码来源:CommentPanel.java

示例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();
      			}
      		}
      	);
    }
 
开发者ID:jbosschina,项目名称:jcommerce,代码行数:38,代码来源:BaseEntityEditPanel.java

示例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;
}
 
开发者ID:jbosschina,项目名称:jcommerce,代码行数:7,代码来源:ArticlePanel.java


注:本文中的com.extjs.gxt.ui.client.widget.layout.FormLayout.setLabelPad方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。