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


Java BorderLayout类代码示例

本文整理汇总了Java中com.extjs.gxt.ui.client.widget.layout.BorderLayout的典型用法代码示例。如果您正苦于以下问题:Java BorderLayout类的具体用法?Java BorderLayout怎么用?Java BorderLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


BorderLayout类属于com.extjs.gxt.ui.client.widget.layout包,在下文中一共展示了BorderLayout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initUI

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
/**
 * Inits the ui.
 */
private void initUI()
{
    this.viewport = new Viewport();
    this.viewport.setLayout(new BorderLayout());

    createNorth();
    // createEast();
    createCenter();
    createSouth();

    // registry serves as a global context
    Registry.register(ConfigurationMainUI.VIEWPORT.getValue(), viewport);
    Registry.register(ConfigurationMainUI.EAST.getValue(), east);
    Registry.register(ConfigurationMainUI.SOUTH.getValue(), south);
    Registry.register(ConfigurationMainUI.CENTER.getValue(), center);

    RootPanel.get().add(viewport);
}
 
开发者ID:geoserver,项目名称:geofence,代码行数:22,代码来源:AppView.java

示例2: borderLayout

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
/**
 * Builds a new {@link BorderLayout}.
 * 
 * @param transparent
 *          {@code true} to set a transparent background, {@code false} to set the default background.
 * @param stylenames
 *          (optional) Style names added to the layout inner {@code target}.
 * @return The {@link BorderLayout} instance.
 * @see BorderLayout
 */
public static BorderLayout borderLayout(final boolean transparent, final String... stylenames) {

	return new BorderLayout() {

		@Override
		protected void initTarget() {

			super.initTarget();

			if (transparent) {
				target.addStyleName(LAYOUT_TRANSPARENT_STYLE_NAME);
			}

			if (ClientUtils.isNotEmpty(stylenames)) {
				target.addStyleName(stylenames);
			}
		}
	};
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:30,代码来源:Layouts.java

示例3: setModelGridPanelExpanded

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void setModelGridPanelExpanded(boolean expanded) {
	final BorderLayout layout = (BorderLayout) ((LayoutContainer)asWidget()).getLayout();
	
	if(expanded) {
		layout.expand(LayoutRegion.WEST);
	} else {
		layout.collapse(LayoutRegion.WEST);
	}
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:14,代码来源:AbstractModelsAdminView.java

示例4: onInitApplicationView

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
private void onInitApplicationView() {
        final Dispatcher dispatcher = Dispatcher.get();
        viewport = new Viewport();
        viewport.setId("app-viewport");
        viewport.setLayout(new BorderLayout());

        // header
        LayoutContainer header = new LayoutContainer();
        header.setId("app-header");
        header.setLayout(new FitLayout());
        BorderLayoutData northData = new BorderLayoutData(Style.LayoutRegion.NORTH, 0.08f);
        northData.setMargins(new Margins(0, 0, 0, 0));
        viewport.add(header, northData);

        // main
        LayoutContainer main = new LayoutContainer();
        main.setId("app-main");
        main.setLayout(new FitLayout());
        BorderLayoutData centerData = new BorderLayoutData(Style.LayoutRegion.CENTER);
        centerData.setMargins(new Margins(0, 0, 0, 0));
        viewport.add(main, centerData);

        LayoutContainer view = new LayoutContainer();
        view.setId("app-main-view");
        view.setLayout(new BorderLayout());
        main.add(view);

        createWest(view);
        createEast(view);
        createNorth(view);

        viewport.add(main, centerData);
        RootPanel.get().add(viewport);
//        dispatcher.dispatch(FinanceEvents.InitApplicationModule);
    }
 
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:36,代码来源:FinanceView.java

示例5: initialize

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
@Override
  protected void initialize() {
	    container = new LayoutContainer();
	    BorderLayout layout = new BorderLayout();
	    layout.setEnableState(false);
	    container.setLayout(layout);
	    container.add(new UserTab(), new BorderLayoutData(LayoutRegion.CENTER));		    

}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:10,代码来源:AdminUserView.java

示例6: initialize

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
@Override
  protected void initialize() {
	    container = new LayoutContainer();
	    BorderLayout layout = new BorderLayout();
	    layout.setEnableState(false);
	    container.setLayout(layout);
	    container.add(new SettingsTab(), new BorderLayoutData(LayoutRegion.CENTER));		    

}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:10,代码来源:AdminSettingsView.java

示例7: initialize

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
@Override
  protected void initialize() {
	    container = new LayoutContainer();
	    BorderLayout layout = new BorderLayout();
	    layout.setEnableState(false);
	    container.setLayout(layout);
	    container.add(new BranchPanel(), new BorderLayoutData(LayoutRegion.CENTER));		    

}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:10,代码来源:AdminBranchView.java

示例8: initialize

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
@Override
  protected void initialize() {
	    container = new LayoutContainer();
	    BorderLayout layout = new BorderLayout();
	    layout.setEnableState(false);
	    container.setLayout(layout);
	    
	    AssignmentTab  at = new  AssignmentTab();
	    
	    container.add(at, new BorderLayoutData(LayoutRegion.CENTER));		    

}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:13,代码来源:AdminAssignmentView.java

示例9: initialize

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
@Override
  protected void initialize() {
	    container = new LayoutContainer();
	    BorderLayout layout = new BorderLayout();
	    layout.setEnableState(false);
	    container.setLayout(layout);
	    container.add(new ToolsTab(), new BorderLayoutData(LayoutRegion.CENTER));		    

}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:10,代码来源:AdminToolsView.java

示例10: initialize

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
@Override
  protected void initialize() {
	    container = new LayoutContainer();
	    BorderLayout layout = new BorderLayout();
	    layout.setEnableState(false);
	    container.setLayout(layout);
	    DepartmentFormGrid  DepartmentFormGridPanel = new DepartmentFormGrid();
	    container.add(DepartmentFormGridPanel, new BorderLayoutData(LayoutRegion.CENTER));

}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:11,代码来源:AdminDepartmentView.java

示例11: initialize

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
@Override
protected void initialize() {
	        System.out.println("run async");
			container = new LayoutContainer();
		    BorderLayout layout = new BorderLayout();
		    layout.setEnableState(false);
		    container.setLayout(layout);
		    ReportPanel rp = new ReportPanel();
		    container.add(rp, new BorderLayoutData(LayoutRegion.CENTER));
	
	
	
}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:14,代码来源:ReportView.java

示例12: initialize

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
@Override
  protected void initialize() {
	
	    container = new LayoutContainer();
	    BorderLayout layout = new BorderLayout();
	    layout.setEnableState(false);
	    container.setLayout(layout);
	    ProjectPanel pp = new ProjectPanel();
	//    pp.doLoad();
	    container.add(pp, new BorderLayoutData(LayoutRegion.CENTER));

}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:13,代码来源:ProjectView.java

示例13: initialize

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
@Override
  protected void initialize() {
	
	    container = new LayoutContainer();
	    BorderLayout layout = new BorderLayout();
	    layout.setEnableState(false);
	    container.setLayout(layout);
	    SheetPanel sp = new SheetPanel();
	    container.add(sp, new BorderLayoutData(LayoutRegion.CENTER));

}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:12,代码来源:SheetView.java

示例14: initialize

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
@Override
  protected void initialize() {
	
	    container = new LayoutContainer();
	    BorderLayout layout = new BorderLayout();
	    layout.setEnableState(false);
	    container.setLayout(layout);
	    DepartmentPanel dp = new DepartmentPanel();
	    container.add(dp, new BorderLayoutData(LayoutRegion.CENTER));

}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:12,代码来源:DepartmentView.java

示例15: onRender

import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的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


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