本文整理汇总了Java中com.extjs.gxt.ui.client.widget.layout.BorderLayout类的典型用法代码示例。如果您正苦于以下问题:Java BorderLayout类的具体用法?Java BorderLayout怎么用?Java BorderLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BorderLayout类属于com.extjs.gxt.ui.client.widget.layout包,在下文中一共展示了BorderLayout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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);
}
}
};
}
示例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);
}
}
示例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);
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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();
}
}
);
}