本文整理汇总了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);
}
示例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);
}
示例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);
}