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


Java LayoutRegion类代码示例

本文整理汇总了Java中com.extjs.gxt.ui.client.Style.LayoutRegion的典型用法代码示例。如果您正苦于以下问题:Java LayoutRegion类的具体用法?Java LayoutRegion怎么用?Java LayoutRegion使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


LayoutRegion类属于com.extjs.gxt.ui.client.Style包,在下文中一共展示了LayoutRegion类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createNorth

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * Creates the north.
 */
private void createNorth()
{
    north = new ContentPanel();
    north.setHeaderVisible(false);
    north.addListener(Events.Resize, new Listener<BaseEvent>()
        {

            public void handleEvent(BaseEvent be)
            {
                Dispatcher.forwardEvent(GeoGWTEvents.UPDATE_MAP_SIZE);
                // Dispatcher.forwardEvent(GeofenceEvents.UPDATE_SOUTH_SIZE);
            }
        });

    BorderLayoutData data = new BorderLayoutData(LayoutRegion.NORTH,
            Constants.NORTH_PANEL_DIMENSION);
    data.setMargins(new Margins(0, 5, 0, 5));
    data.setSplit(true);

    viewport.add(north, data);
}
 
开发者ID:geoserver,项目名称:geofence,代码行数:25,代码来源:AppView.java

示例2: createDetails

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * Creates the details.
 */
private void createDetails() {
    details = new LayoutContainer();
    details.setBorders(true);
    details.setStyleAttribute("backgroundColor", "white");

    BorderLayoutData eastData = new BorderLayoutData(LayoutRegion.EAST, 150, 150, 250);
    eastData.setSplit(true);

    BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
    centerData.setMargins(new Margins(0, 5, 0, 0));

    chooser.add(main, centerData);
    chooser.add(details, eastData);

}
 
开发者ID:geoserver,项目名称:geofence,代码行数:19,代码来源:GeofenceChooserWidget.java

示例3: initialize

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initialize() {

	categoryTypePanel = Panels.content("", Layouts.fitLayout());
	categoryTypePanel.setHeaderVisible(false);
	categoriesGrid = buildCategoriesListGrid();
	categoryTypePanel.add(categoriesGrid);
	categoryTypePanel.setTopComponent(categoryTypeToolBar());

	categoryElementsPanel = Panels.content("", Layouts.fitLayout());
	categoryElementsPanel.setHeaderVisible(false);
	categoryElementsGrid = buildCategoryElementsGrid();
	categoryElementsPanel.add(categoryElementsGrid);
	categoryElementsPanel.setTopComponent(categoryElementToolBar());

	add(categoryTypePanel, Layouts.borderLayoutData(LayoutRegion.WEST, CATEGORIE_PANEL_WIDTH, Margin.HALF_RIGHT));
	add(categoryElementsPanel, Layouts.borderLayoutData(LayoutRegion.CENTER, Margin.HALF_LEFT));

}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:23,代码来源:CategoriesAdminView.java

示例4: initialize

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initialize() {

	reportModelPanel = Panels.content(null, Layouts.fitLayout());

	reportModelsGrid = buildModelsListGrid();
	reportModelPanel.add(reportModelsGrid);
	reportModelPanel.setTopComponent(reportModelToolBar());

	reportModelSectionsPanel = Panels.content(null, false, Layouts.fitLayout(), Scroll.AUTOY);
	reportModelSectionsPanel.add(buildReportSectionsGrid());
	reportModelSectionsPanel.setTopComponent(reportSectionToolBar());

	add(reportModelPanel, Layouts.borderLayoutData(LayoutRegion.WEST, 370f, Margin.HALF_RIGHT));
	add(reportModelSectionsPanel, Layouts.borderLayoutData(LayoutRegion.CENTER, Margin.HALF_LEFT));

}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:21,代码来源:ReportModelsAdminView.java

示例5: loadModel

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final void loadModel(final E model) {

	detailsContainer.removeAll();

	if (model == null) {
		return;
	}

	final String modelHeader = loadModelHeader(model);
	detailsHeaderForm.setHeadingHtml(modelHeader);

	final LayoutContainer container = Layouts.border(false);
	container.add(detailsHeaderForm, Layouts.borderLayoutData(LayoutRegion.NORTH, getDetailsHeaderFormHeight(), Margin.BOTTOM));
	container.add(tabPanel, Layouts.borderLayoutData(LayoutRegion.CENTER));

	detailsContainer.add(container);
	detailsContainer.layout();
	selectFirstTab();
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:24,代码来源:AbstractModelsAdminView.java

示例6: initialize

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initialize() {

	// Sub-menu widget.
	final Map<Page, String> linksMap = new LinkedHashMap<Page, String>();
	linksMap.put(Page.ADMIN_USERS, I18N.CONSTANTS.adminUsers());
	linksMap.put(Page.ADMIN_ORG_UNITS, I18N.CONSTANTS.adminOrgUnit());
	linksMap.put(Page.ADMIN_PROJECTS_MODELS, I18N.CONSTANTS.adminProjectModels());
	linksMap.put(Page.ADMIN_ORG_UNITS_MODELS, I18N.CONSTANTS.adminOrgUnitsModels());
	linksMap.put(Page.ADMIN_CONTACT_MODELS, I18N.CONSTANTS.adminContactModels());
	linksMap.put(Page.ADMIN_REPORTS_MODELS, I18N.CONSTANTS.adminProjectModelReports());
	linksMap.put(Page.ADMIN_CATEGORIES, I18N.CONSTANTS.adminCategories());
	linksMap.put(Page.ADMIN_IMPORTATION_SCHEME, I18N.CONSTANTS.adminImportationSchemes());
	linksMap.put(Page.ADMIN_PARAMETERS, I18N.CONSTANTS.adminManagementTitle());
	subMenu = new SubMenuWidget(Orientation.VERTICAL, linksMap);

	// Sub-views place holder.
	subViewPlaceHolder = Layouts.fit();

	add(subMenu, Layouts.borderLayoutData(LayoutRegion.WEST, Layouts.VERTICAL_MENU_WIDTH, Margin.RIGHT));
	add(subViewPlaceHolder);
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:26,代码来源:AdminView.java

示例7: initialize

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initialize() {

	subViewPlaceHolder = Layouts.fit();

	final Map<Page, String> linksMap = new LinkedHashMap<Page, String>();
	linksMap.put(Page.ORGUNIT_DASHBOARD, I18N.CONSTANTS.orgUnitTabOverview());
	linksMap.put(Page.ORGUNIT_DETAILS, I18N.CONSTANTS.orgUnitTabInformations());
	linksMap.put(Page.ORGUNIT_CALENDAR, I18N.CONSTANTS.projectTabCalendar());
	linksMap.put(Page.ORGUNIT_REPORTS, I18N.CONSTANTS.projectTabReports());

	subMenu = new SubMenuWidget(Orientation.HORIZONTAL, linksMap);

	final LayoutContainer layoutContainerHeader = Layouts.vBox();
	layoutContainerHeader.add(createOrgUnitBannerPanel(), Layouts.vBoxData(Margin.BOTTOM));
	layoutContainerHeader.add(subMenu.asWidget());

	add(layoutContainerHeader, Layouts.borderLayoutData(LayoutRegion.NORTH, Layouts.BANNER_PANEL_HEIGHT, Margin.BOTTOM));
	add(subViewPlaceHolder);
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:24,代码来源:OrgUnitView.java

示例8: initialize

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initialize() {

	// --
	// Calendars left panel.
	// --

	final BorderLayoutData calendarListData = Layouts.borderLayoutData(LayoutRegion.WEST, Layouts.LEFT_COLUMN_WIDTH);
	calendarListData.setCollapsible(true);
	add(createCalendarsGridPanel(), calendarListData);

	// --
	// Calendar center widget.
	// --

	add(createCalendarsMainPanel(), Layouts.borderLayoutData(LayoutRegion.CENTER, Margin.LEFT));
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:21,代码来源:CalendarView.java

示例9: initialize

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initialize() {

	// --
	// Center panel.
	// --

	add(createProjectDashboardPanel(), Layouts.borderLayoutData(LayoutRegion.CENTER, Margin.LEFT));

	// --
	// East panel.
	// --

	final ContentPanel remindersPanel = Panels.content(I18N.CONSTANTS.reminders(), false, Layouts.vBoxLayout());
	remindersPanel.add(createRemindersPanel(), Layouts.vBoxData());
	remindersPanel.add(createMonitoredPointsPanel(), Layouts.vBoxData());

	final BorderLayoutData eastData = Layouts.borderLayoutData(LayoutRegion.WEST, Layouts.LEFT_COLUMN_WIDTH);
	eastData.setCollapsible(true);
	add(remindersPanel, eastData);

	// --
	// South panel.
	// --

	final BorderLayoutData southData = Layouts.borderLayoutData(LayoutRegion.SOUTH, Layouts.SOUTH_PANEL_HEIGHT, Margin.TOP);
	southData.setCollapsible(true);
	add(createLinkedProjectsPanel(), southData);
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:33,代码来源:ProjectDashboardView.java

示例10: initialize

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
@Override
public void initialize() {

	schemePanel = Panels.content(I18N.CONSTANTS.adminImportationSchemes());
	schemePanel.setWidth(450);
	schemePanel.setScrollMode(Scroll.AUTOY);
	schemesGrid = buildSchemasGrid();
	schemePanel.add(schemesGrid);
	schemePanel.setTopComponent(importationSchemeToolBar());

	variablePanel = Panels.content(I18N.CONSTANTS.edit());
	variablePanel.setScrollMode(Scroll.AUTOY);
	variablesGrid = buildVariablesGrid();
	variablePanel.add(variablesGrid);
	variablePanel.setTopComponent(variableToolBar());
	
	closeButton = new ToolButton(STYLE_TOOL_CLOSE_ICON);
	variablePanel.getHeader().addTool(closeButton);

	final LayoutContainer details = Layouts.fit(false, STYLE_LAYOUT);
	details.add(variablePanel);

	final BorderLayoutData leftLayoutData = new BorderLayoutData(LayoutRegion.WEST, 450);
	leftLayoutData.setMargins(new Margins(0, 4, 0, 0));
	add(schemePanel, leftLayoutData);

	final BorderLayoutData mainLayoutData = new BorderLayoutData(LayoutRegion.CENTER);
	mainLayoutData.setMargins(new Margins(0, 0, 0, 4));
	add(details, mainLayoutData);

}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:32,代码来源:ImportationSchemeAdminView.java

示例11: initialize

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initialize() {

	final LayoutContainer topContainer = Layouts.hBox();
	topContainer.add(createGeneralParametersPanel(), Layouts.hBoxData(Margin.HALF_RIGHT));
	topContainer.add(createBackupParametersPanel(), Layouts.hBoxData(Margin.HALF_LEFT));

	// final LayoutContainer bottomContainer = Layouts.hBox();
	// bottomContainer.add(createExportManagementPanel(), Layouts.hBoxData(Margin.HALF_RIGHT));
	// bottomContainer.add(createPasswordExpirationManagementPanel(), Layouts.hBoxData(Margin.HALF_LEFT));

	add(topContainer, Layouts.borderLayoutData(LayoutRegion.NORTH, 0.5f, Margin.BOTTOM));
	add(createExportManagementPanel(), Layouts.borderLayoutData(LayoutRegion.CENTER, 0.5f));
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:18,代码来源:ParametersAdminView.java

示例12: setModelGridPanelExpanded

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的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

示例13: initialize

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initialize() {
	keyQuestionState = new KeyQuestionState();

	add(createReportsListPanel(), Layouts.borderLayoutData(LayoutRegion.WEST, 400f, true));
	add(createMainPanel(), Layouts.borderLayoutData(LayoutRegion.CENTER, Margin.LEFT));
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:11,代码来源:ReportsView.java

示例14: initialize

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initialize() {

	// --
	// Left panel (Reminders + MonitoredPoints + Buttons).
	// --
	final LayoutContainer leftContainer = Layouts.vBox();

	leftContainer.add(createRemindersPanel(), Layouts.vBoxData(Margin.BOTTOM));
	leftContainer.add(createMonitoredPointsPanel(), Layouts.vBoxData(Margin.BOTTOM));
	leftContainer.add(createMenuButtonsPanel(), Layouts.vBoxData());

	add(leftContainer, Layouts.borderLayoutData(LayoutRegion.WEST, Layouts.LEFT_COLUMN_WIDTH));

	// --
	// Center panel (OrgUnits + Contacts + Projects).
	// --
	final LayoutContainer centerContainer = Layouts.vBox();

	// --
	// Center-Up panel (OrgUnits + Contacts).
	// --
	final LayoutContainer centerUpContainer = Layouts.hBox();

	centerUpContainer.add(createOrgUnitsPanel(), Layouts.hBoxData(1.0));

	centerUpContainer.add(createContactsPanel(), Layouts.hBoxData(1.0, Margin.LEFT));

	centerContainer.add(centerUpContainer, Layouts.vBoxData(1.0, Margin.BOTTOM, Margin.LEFT));
	centerContainer.add(createProjectsPanel(), Layouts.vBoxData(1.0, Margin.LEFT));

	add(centerContainer);

}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:38,代码来源:DashboardView.java

示例15: initialize

import com.extjs.gxt.ui.client.Style.LayoutRegion; //导入依赖的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


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