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