本文整理汇总了Java中com.extjs.gxt.ui.client.Style.LayoutRegion.WEST属性的典型用法代码示例。如果您正苦于以下问题:Java LayoutRegion.WEST属性的具体用法?Java LayoutRegion.WEST怎么用?Java LayoutRegion.WEST使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.extjs.gxt.ui.client.Style.LayoutRegion
的用法示例。
在下文中一共展示了LayoutRegion.WEST属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
@Override
public void initialize() {
schemePanel = Panels.content(I18N.CONSTANTS.adminImportationSchemes());
schemePanel.setWidth(450);
schemePanel.setScrollMode(Scroll.AUTOY);
schemesGrid = buildSchemasGrid();
schemePanel.add(schemesGrid);
schemePanel.setTopComponent(importationSchemeToolBar());
variablePanel = Panels.content(I18N.CONSTANTS.edit());
variablePanel.setScrollMode(Scroll.AUTOY);
variablesGrid = buildVariablesGrid();
variablePanel.add(variablesGrid);
variablePanel.setTopComponent(variableToolBar());
closeButton = new ToolButton(STYLE_TOOL_CLOSE_ICON);
variablePanel.getHeader().addTool(closeButton);
final LayoutContainer details = Layouts.fit(false, STYLE_LAYOUT);
details.add(variablePanel);
final BorderLayoutData leftLayoutData = new BorderLayoutData(LayoutRegion.WEST, 450);
leftLayoutData.setMargins(new Margins(0, 4, 0, 0));
add(schemePanel, leftLayoutData);
final BorderLayoutData mainLayoutData = new BorderLayoutData(LayoutRegion.CENTER);
mainLayoutData.setMargins(new Margins(0, 0, 0, 4));
add(details, mainLayoutData);
}
示例2: initUI
public void initUI() {
setLayout(new BorderLayout());
// ContentPanels
final ContentPanel center = new ContentPanel();
center.setLayout(new FitLayout());
ContentPanel west = new ContentPanel();
// Create a tree.
TreeStore<BaseModel> store = new TreeStore<BaseModel>();
Tree tree = new Tree();
TreeBinder binder = new TreeBinder(tree, store);
binder.setDisplayProperty("name");
tree.addListener(Events.SelectionChange, new Listener<TreeEvent>() {
public void handleEvent(TreeEvent te) {
TreeItem item = te.tree.getSelectedItem();
if (item != null) {
BaseModel model = (BaseModel) item.getModel();
Object obj = model.get("object");
if (obj != null) {
Widget edit = getEditor(obj);
center.removeAll();
center.add(edit);
center.layout();
}
}
}
});
west.add(tree);
BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
centerData.setMargins(new Margins(5, 0, 5, 0));
BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 200);
westData.setSplit(true);
westData.setCollapsible(true);
westData.setMargins(new Margins(5));
add(west, westData);
add(center, centerData);
layout();
populateTree(store);
}
示例3: init
public void init() {
setLayout(new BorderLayout());
CITemplateBrowser browser = new CITemplateBrowser(mdr, roots);
//browser.setPermissions(permissions);
//browser.setReadonly(readonly);
//final CIInstanceBrowser center = new CIInstanceBrowser(mdr);
final LayoutContainer center = new LayoutContainer();
center.setLayout(new FitLayout());
center.setLayoutOnChange(true);
browser.setSelectionListsner(new Listener<TreeEvent>() {
public void handleEvent(TreeEvent te) {
TreeItem item = te.tree.getSelectedItem();
if (item != null) {
if (item.getModel() instanceof CIModel) {
final CIModel model = (CIModel)item.getModel();
/*
center.setRoot(model);
center.start();
*/
center.removeAll();
ContentData cd = new ContentData();
cd.set("template", model.getAlias());
EditableCIInstanceGrid grid = new EditableCIInstanceGrid(mdr, cd, model.getNameAndIcon());
if (roots != null && roots.contains("Root")) {
grid.setRootCI("Root");
}
grid.setPermissions(permissions);
//grid.setReadonly(readonly);
center.add(grid);
}
//Info.display("Selection Changed", "The '{0}' item was selected", item.getText());
}
}
});
ContentPanel left = new ContentPanel();
left.setScrollMode(Scroll.AUTO);
left.setHeading("Template(s)");
left.setLayout(new FitLayout());
left.setLayoutOnChange(true);
left.add(browser);
BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
centerData.setMargins(new Margins(5, 0, 5, 0));
BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 200);
westData.setSplit(true);
westData.setCollapsible(true);
westData.setMargins(new Margins(5));
add(left, westData);
add(center, centerData);
layout();
}
示例4: 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);
}
示例5: initUI
public void initUI() {
ContentPanel panel = new ContentPanel();
panel.setLayout(new BorderLayout());
// Left panel a navigation tree.
PropertyNavigationTree tree = new PropertyNavigationTree(null, "name");
// Right panel input forms.
//PropetyInputForm inpoutForm = new PropertyInputForm();
ContentPanel center = new ContentPanel();
ToolBar toolBar = new ToolBar();
toolBar.add(new FillToolItem());
toolBar.add(new TextToolItem("Save"));
toolBar.add(new TextToolItem("Cancel"));
center.setBottomComponent(toolBar);
// Layout the components.
BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
centerData.setMargins(new Margins(5, 0, 5, 0));
BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 200);
westData.setSplit(true);
westData.setCollapsible(true);
westData.setMargins(new Margins(5));
add(tree, westData);
add(center, centerData);
}