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


Java LayoutRegion.NORTH属性代码示例

本文整理汇总了Java中com.extjs.gxt.ui.client.Style.LayoutRegion.NORTH属性的典型用法代码示例。如果您正苦于以下问题:Java LayoutRegion.NORTH属性的具体用法?Java LayoutRegion.NORTH怎么用?Java LayoutRegion.NORTH使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.extjs.gxt.ui.client.Style.LayoutRegion的用法示例。


在下文中一共展示了LayoutRegion.NORTH属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createNorth

/**
 * Creates the north.
 */
private void createNorth()
{
    north = new ContentPanel();
    north.setHeaderVisible(false);
    north.addListener(Events.Resize, new Listener<BaseEvent>()
        {

            public void handleEvent(BaseEvent be)
            {
                Dispatcher.forwardEvent(GeoGWTEvents.UPDATE_MAP_SIZE);
                // Dispatcher.forwardEvent(GeofenceEvents.UPDATE_SOUTH_SIZE);
            }
        });

    BorderLayoutData data = new BorderLayoutData(LayoutRegion.NORTH,
            Constants.NORTH_PANEL_DIMENSION);
    data.setMargins(new Margins(0, 5, 0, 5));
    data.setSplit(true);

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

示例2: createNorth

private void createNorth() {
  	north = new LayoutContainer();
  //	north.setLayout(new RowLayout());
	//  	north.setLayout(new FitLayout());

  	north.setLayout(new FitLayout());
//  	new BorderLayout()
  	
       BorderLayoutData adminToolbarLayoutData = new BorderLayoutData(LayoutRegion.NORTH, 25);
       adminToolbarLayoutData.setMargins(new Margins(5));
    
       viewport.add(north, adminToolbarLayoutData);
  }
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:13,代码来源:AppView.java

示例3: BorderLayoutTest

public BorderLayoutTest() {
 setLayout(new BorderLayout());  
       
 setLayoutOnChange(true);
 
     LayoutContainer north = new LayoutContainer();  
     
     ContentPanel west = new ContentPanel();  
     ContentPanel center = new ContentPanel();  
     ContentPanel east = new ContentPanel();  
     LayoutContainer south = new LayoutContainer();  
       
     BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH, 50);  
     northData.setCollapsible(false);  
     //northData.setFloatable(false);  
     //northData.setSplit(false);  
     northData.setMargins(new Margins(5, 5, 0, 5));  
       
     BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 200);  
     westData.setSplit(true);  
     westData.setCollapsible(true);  
     westData.setMargins(new Margins(5));  
       
     BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);  
     centerData.setMargins(new Margins(5, 0, 5, 0));  
       
       
     BorderLayoutData eastData = new BorderLayoutData(LayoutRegion.EAST, 200);  
     eastData.setSplit(true);  
     eastData.setCollapsible(true);  
     eastData.setMargins(new Margins(5));  
       
     BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, 50);  
     //southData.setSplit(false);  
     southData.setCollapsible(false);  
     //southData.setFloatable(false);  
     southData.setMargins(new Margins(0, 5, 5, 5));  
       
     add(north, northData);  
     add(west, westData);  
     add(center, centerData);  
     add(east, eastData);  
     add(south, southData);  
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:44,代码来源:BorderLayoutTest.java


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