本文整理汇总了Java中com.extjs.gxt.ui.client.widget.Viewport.setLayout方法的典型用法代码示例。如果您正苦于以下问题:Java Viewport.setLayout方法的具体用法?Java Viewport.setLayout怎么用?Java Viewport.setLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.extjs.gxt.ui.client.widget.Viewport
的用法示例。
在下文中一共展示了Viewport.setLayout方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onModuleLoad
import com.extjs.gxt.ui.client.widget.Viewport; //导入方法依赖的package包/类
public void onModuleLoad()
{
// menu panel
menuPanel = new ContentPanel(new FillLayout());
menuPanel.setHeaderVisible(false);
menuPanel.setBorders(false);
refreshMenu();
viewport = new Viewport();
viewport.setLayout(new RowLayout(Orientation.VERTICAL));
// title panel
topPanel = new ContentPanel();
HBoxLayout titleLayout = new HBoxLayout();
titleLayout.setPadding(new Padding(5));
titleLayout.setHBoxLayoutAlign(HBoxLayoutAlign.TOP);
topPanel.setLayout(titleLayout);
topPanel.setHeight(25);
topPanel.setHeaderVisible(false);
topPanel.setBorders(false);
refreshTopPanel();
viewport.add(topPanel, new RowData(1, -1));
//menu panel
viewport.add(menuPanel, new RowData(1, -1));
//main panel
mainPanel = new ContentPanel(new FillLayout());
mainPanel.setHeaderVisible(false);
viewport.add(mainPanel, new RowData(1, 1));
RootPanel.get().add(viewport);
log.info(textMessages.webpasswordsafeTitle(Constants.VERSION));
pingServer(this);
}
示例2: onModuleLoad
import com.extjs.gxt.ui.client.widget.Viewport; //导入方法依赖的package包/类
/**
* This is the entry point method.
*/
public void onModuleLoad() {
Viewport v = new Viewport();
v.setLayout(new FillLayout());
v.add(new BorderLayoutTest());
RootPanel.get().add(v);
}
示例3: onInitApplicationView
import com.extjs.gxt.ui.client.widget.Viewport; //导入方法依赖的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);
}
示例4: initUI
import com.extjs.gxt.ui.client.widget.Viewport; //导入方法依赖的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);
}