当前位置: 首页>>代码示例>>Java>>正文


Java Viewport类代码示例

本文整理汇总了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);
}
 
开发者ID:geoserver,项目名称:geofence,代码行数:22,代码来源:AppView.java

示例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);
}
 
开发者ID:alfameCom,项目名称:salasanasiilo,代码行数:35,代码来源:WebPasswordSafe.java

示例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);  
 
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:11,代码来源:CMDBApplication.java

示例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);
    }
 
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:36,代码来源:FinanceView.java

示例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);
}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:18,代码来源:AppView.java


注:本文中的com.extjs.gxt.ui.client.widget.Viewport类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。