本文整理汇总了Java中com.extjs.gxt.ui.client.widget.layout.BorderLayout类的典型用法代码示例。如果您正苦于以下问题:Java BorderLayout类的具体用法?Java BorderLayout怎么用?Java BorderLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BorderLayout类属于com.extjs.gxt.ui.client.widget.layout包,在下文中一共展示了BorderLayout类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: initUI
import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
protected void initUI() {
// Layout Fields.
setLayout(new BorderLayout());
List<ColumnConfig> internalAttr = new ArrayList<ColumnConfig>();
List<ColumnConfig> ciAttr = new ArrayList<ColumnConfig>();
/*
for (AttributeColumnConfig aConfig : gridConfig.getColumnConfig()) {
ColumnConfig cfg = EditorFactory.getColumnConfig(aConfig, false);
if (aConfig.isInternal()) {
internalAttr.add(cfg);
} else {
ciAttr.add(cfg);
}
}
*/
LayoutContainer internalPanel = getForm(internalAttr, 2, LabelAlign.LEFT);
LayoutContainer ciPanel = getForm(ciAttr, 3, LabelAlign.TOP);
ContentPanel internalCp = new ContentPanel();
internalCp.setLayout(new FitLayout());
internalCp.setAutoWidth(true);
internalCp.setAutoHeight(true);
internalCp.setHeading("Internal Attributes");
internalCp.setCollapsible(true);
internalCp.add(internalPanel);
ContentPanel attrCp = new ContentPanel();
ToolBar toolbar = new ToolBar();
attrCp.setTopComponent(toolbar);
toolbar.add(new FillToolItem());
toolbar.add(new TextToolItem("Ok"));
toolbar.add(new TextToolItem("Cancel"));
attrCp.setLayout(new FitLayout());
attrCp.setScrollMode(Scroll.ALWAYS);
attrCp.setLayoutOnChange(true);
attrCp.setCollapsible(true);
attrCp.add(ciPanel);
attrCp.setHeading("Attributes");
TabPanel infoTab = new TabPanel();
descriptionTab = new TabItem("Description");
descriptionTab.setStyleName("property-panel-background");
infoTab.add(descriptionTab);
historyTab = new TabItem("History");
historyTab.setStyleName("property-panel-background");
infoTab.add(historyTab);
BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
centerData.setMargins(new Margins(0, 5, 0, 5));
/*
BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH);
northData.setSplit(false);
northData.setCollapsible(true);
northData.setMargins(new Margins(5));
*/
BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, 0.3f);
southData.setSplit(true);
southData.setCollapsible(true);
southData.setMargins(new Margins(5));
LayoutContainer fieldCont = new LayoutContainer();
fieldCont.setLayout(new RowLayout());
fieldCont.add(internalCp, new RowData(1,-1));
fieldCont.add(attrCp, new RowData(1,1));
add(fieldCont, centerData);
add(infoTab, southData);
layout();
}
开发者ID:luox12,项目名称:onecmdb,代码行数:81,代码来源:CIValueForm.java
示例17: initUI
import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
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);
}
开发者ID:luox12,项目名称:onecmdb,代码行数:54,代码来源:GroupEditor.java
示例18: init
import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
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();
}
开发者ID:luox12,项目名称:onecmdb,代码行数:66,代码来源:CIModelBrowser.java
示例19: BorderLayoutTest
import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
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,代码行数:45,代码来源:BorderLayoutTest.java
示例20: initUI
import com.extjs.gxt.ui.client.widget.layout.BorderLayout; //导入依赖的package包/类
private void initUI() {
viewport = new Viewport();
viewport.setLayout(new BorderLayout());
createNorth();
createCenter();
Registry.register(VIEWPORT, viewport);
Registry.register(NORTH_PANEL, north);
Registry.register(CENTER_PANEL, center);
RootPanel.get().add(viewport);
dispatcher.dispatch( AppEvents.Sheet);
}
开发者ID:treblereel,项目名称:Opensheet,代码行数:18,代码来源:AppView.java
注:本文中的com.extjs.gxt.ui.client.widget.layout.BorderLayout类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论