本文整理汇总了Java中com.extjs.gxt.ui.client.Style.LayoutRegion.EAST属性的典型用法代码示例。如果您正苦于以下问题:Java LayoutRegion.EAST属性的具体用法?Java LayoutRegion.EAST怎么用?Java LayoutRegion.EAST使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.extjs.gxt.ui.client.Style.LayoutRegion
的用法示例。
在下文中一共展示了LayoutRegion.EAST属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDetails
/**
* Creates the details.
*/
private void createDetails() {
details = new LayoutContainer();
details.setBorders(true);
details.setStyleAttribute("backgroundColor", "white");
BorderLayoutData eastData = new BorderLayoutData(LayoutRegion.EAST, 150, 150, 250);
eastData.setSplit(true);
BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
centerData.setMargins(new Margins(0, 5, 0, 0));
chooser.add(main, centerData);
chooser.add(details, eastData);
}
示例2: 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);
}