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


Java HorizontalSplitPanel.setWidth方法代码示例

本文整理汇总了Java中com.vaadin.ui.HorizontalSplitPanel.setWidth方法的典型用法代码示例。如果您正苦于以下问题:Java HorizontalSplitPanel.setWidth方法的具体用法?Java HorizontalSplitPanel.setWidth怎么用?Java HorizontalSplitPanel.setWidth使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vaadin.ui.HorizontalSplitPanel的用法示例。


在下文中一共展示了HorizontalSplitPanel.setWidth方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildHorizontalSplitPanel

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
private HorizontalSplitPanel buildHorizontalSplitPanel() {
	// common part: create layout
	horizontalSplitPanel = new HorizontalSplitPanel();
	horizontalSplitPanel.setImmediate(false);
	horizontalSplitPanel.setWidth("100.0%");
	horizontalSplitPanel.setHeight("100.0%");
	horizontalSplitPanel.setMargin(false);
	
	// gridLayout_1
	gridLayoutCalendar = new GridLayout();
	gridLayoutCalendar.setImmediate(true);
	gridLayoutCalendar.setWidth("100.0%");
	gridLayoutCalendar.setHeight("100.0%");
	gridLayoutCalendar.setMargin(false);
	gridLayoutCalendar.setColumns(4);
	gridLayoutCalendar.setRows(3);
	horizontalSplitPanel.setSecondComponent(gridLayoutCalendar);
	
	return horizontalSplitPanel;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:21,代码来源:CalendarCardView.java

示例2: buildHorizontalSplitPanel

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalSplitPanel buildHorizontalSplitPanel() {
	// common part: create layout
	horizontalSplitPanel = new HorizontalSplitPanel();
	horizontalSplitPanel.setImmediate(false);
	horizontalSplitPanel.setWidth("100.0%");
	horizontalSplitPanel.setHeight("100.0%");
	
	// verticalLayoutLeftPanel
	verticalLayoutLeftPanel = buildVerticalLayoutLeftPanel();
	horizontalSplitPanel.addComponent(verticalLayoutLeftPanel);
	
	// verticalLayoutRightPanel
	verticalLayoutRightPanel = buildVerticalLayoutRightPanel();
	horizontalSplitPanel.addComponent(verticalLayoutRightPanel);
	
	return horizontalSplitPanel;
}
 
开发者ID:apache,项目名称:incubator-openaz,代码行数:19,代码来源:PolicyWorkspace.java

示例3: buildHorizontalSplitPanel_2

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalSplitPanel buildHorizontalSplitPanel_2() {
    // common part: create layout
    horizontalSplitPanel_2 = new HorizontalSplitPanel();
    horizontalSplitPanel_2.setImmediate(false);
    horizontalSplitPanel_2.setWidth("100.0%");
    horizontalSplitPanel_2.setHeight("100.0%");

    // filterTable
    filterTable = new FilterTable();
    filterTable.setImmediate(false);
    filterTable.setWidth("100.0%");
    filterTable.setHeight("100.0%");
    horizontalSplitPanel_2.addComponent(filterTable);

    // verticalLayout_1
    verticalLayout_1 = buildVerticalLayout_1();
    horizontalSplitPanel_2.addComponent(verticalLayout_1);

    return horizontalSplitPanel_2;
}
 
开发者ID:alenca,项目名称:zklogtool,代码行数:22,代码来源:TransactionLogView.java

示例4: buildHorizontalSplitPanel_1

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalSplitPanel buildHorizontalSplitPanel_1() {
    // common part: create layout
    horizontalSplitPanel_1 = new HorizontalSplitPanel();
    horizontalSplitPanel_1.setImmediate(false);
    horizontalSplitPanel_1.setWidth("100.0%");
    horizontalSplitPanel_1.setHeight("100.0%");

    // verticalLayout_1
    verticalLayout_1 = buildVerticalLayout_1();
    horizontalSplitPanel_1.addComponent(verticalLayout_1);

    // verticalLayout_2
    verticalLayout_2 = buildVerticalLayout_2();
    horizontalSplitPanel_1.addComponent(verticalLayout_2);

    return horizontalSplitPanel_1;
}
 
开发者ID:alenca,项目名称:zklogtool,代码行数:19,代码来源:SnapshotView.java

示例5: buildMapSplitPanel

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalSplitPanel buildMapSplitPanel() {
	// common part: create layout
	mapSplitPanel = new HorizontalSplitPanel();
	mapSplitPanel.setImmediate(false);
	mapSplitPanel.setWidth("100.0%");
	mapSplitPanel.setHeight("100.0%");
	mapSplitPanel.setMargin(false);
	
	// locationsLayersMap
	locationsLayersMap = new OpenLayersMap();
	locationsLayersMap.setImmediate(false);
	locationsLayersMap.setWidth("-1px");
	locationsLayersMap.setHeight("100.0%");
	mapSplitPanel.addComponent(locationsLayersMap);
	
	// locationDataLayout
	locationDataLayout = buildLocationDataLayout();
	mapSplitPanel.addComponent(locationDataLayout);
	
	return mapSplitPanel;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:23,代码来源:MapView.java

示例6: buildHorizontalSplitPanelOrganization

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@AutoGenerated
private HorizontalSplitPanel buildHorizontalSplitPanelOrganization() {
	// common part: create layout
	horizontalSplitPanelOrganization = new HorizontalSplitPanel();
	horizontalSplitPanelOrganization.setSplitPosition(25, Sizeable.UNITS_PERCENTAGE);
	horizontalSplitPanelOrganization.setImmediate(false);
	horizontalSplitPanelOrganization.setWidth("100.0%");
	horizontalSplitPanelOrganization.setHeight("100.0%");
	horizontalSplitPanelOrganization.setMargin(false);
	
	// tabSheetOrganization		
	tabSheetOrganization = new TabSheet();		
	tabSheetOrganization.setImmediate(true);
	tabSheetOrganization.setWidth("100.0%");
	tabSheetOrganization.setHeight("100.0%");
	horizontalSplitPanelOrganization.addComponent(tabSheetOrganization);
	
	return horizontalSplitPanelOrganization;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:20,代码来源:OrganizationView.java

示例7: initWindow

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
private void initWindow(Object selectedItem) {
    Panel exportPanel = new Panel("Export and Dependencies");
    exportPanel.addStyleName(ValoTheme.PANEL_SCROLL_INDICATOR);
    exportPanel.setSizeFull();
    VerticalLayout exportLayout = new VerticalLayout();
    exportLayout.setMargin(true);
    addSelectedAndDependentObjects(exportLayout, selectedItem);
    exportPanel.setContent(exportLayout);

    Panel affectedPanel = new Panel("Possible Affected Flows");
    affectedPanel.setSizeFull();
    exportPanel.addStyleName(ValoTheme.PANEL_SCROLL_INDICATOR);
    affectedLayout = new VerticalLayout();
    affectedLayout.setMargin(true);
    updateAffectedObjects();
    affectedPanel.setContent(affectedLayout);

    // Split panel for Export and Affected
    HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
    splitPanel.setWidth(100, Unit.PERCENTAGE);
    splitPanel.setFirstComponent(exportPanel);
    splitPanel.setSecondComponent(affectedPanel);

    addComponent(splitPanel, 1);
    
    Button selectAllLink = new Button("Select All");
    selectAllLink.addStyleName(ValoTheme.BUTTON_LINK);
    selectAllLink.addClickListener((event) -> selectAll());

    Button selectNoneLink = new Button("Select None");
    selectNoneLink.addStyleName(ValoTheme.BUTTON_LINK);
    selectNoneLink.addClickListener((event) -> selectNone());
    
    addComponent(buildButtonFooter(new Button[] {selectAllLink, selectNoneLink}, new Button("Export", new ExportClickListener()), buildCloseButton()));

    setWidth(700, Unit.PIXELS);
    setHeight(500, Unit.PIXELS);
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:39,代码来源:ExportDialog.java

示例8: InitialLayout

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
/**
	 * Im Konstruktor wird das Layout erstellt.
	 * 
	 * @author Marco Glaser
	 * 
	 */
	public InitialLayout(){
		mainLayout.setSizeFull();
		mainLayout.setStyleName("mainLayout");
		leftLayout.setSizeFull();
		leftLayout.setStyleName("leftContainer");
		rightLayout.setSizeFull();
		bottomLayout.setSizeFull();
		bottomLeftLayout.setSizeFull();

		horizontalSplitPanel = new HorizontalSplitPanel();
		horizontalSplitPanel.setSplitPosition(30, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		horizontalSplitPanel.setLocked(true);
		horizontalSplitPanel.setStyleName("horizontalMain");
		verticalSplitPanel = new VerticalSplitPanel();
		verticalSplitPanel.setSplitPosition(15, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		verticalSplitPanel.setLocked(true);
		verticalSplitPanel.setWidth(90, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		verticalSplitPanel.setHeight(100, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		horizontalSplitPanelRight = new HorizontalSplitPanel();
		horizontalSplitPanelRight.setSplitPosition(30, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		horizontalSplitPanelRight.setLocked(true);
		horizontalSplitPanelRight.addStyleName("horizontalBottom");
		horizontalSplitPanelRight.setHeight(90, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		horizontalSplitPanelRight.setWidth(100, com.vaadin.terminal.Sizeable.UNITS_PERCENTAGE);
		
		leftL = new Label("links");
		rightTopL = new Label("rechts Oben");
		rightBottomL = new Label("rechts Unten");
		leftBottomL = new Label("links Unten");
		
		leftLayout.addComponent(leftL);
		rightLayout.addComponent(verticalSplitPanel);
		topRightLayout.addComponent(rightTopL);
		bottomRightLayout.addComponent(rightBottomL);
//		bottomLeftLayout.addComponent(leftBottomL);
		bottomLayout.addComponent(horizontalSplitPanelRight);
		
		horizontalSplitPanel.addComponent(leftLayout);
		horizontalSplitPanel.addComponent(rightLayout);
		
		verticalSplitPanel.addComponent(topRightLayout);
		verticalSplitPanel.addComponent(bottomLayout);
		
		horizontalSplitPanelRight.addComponent(bottomLeftLayout);
		horizontalSplitPanelRight.addComponent(bottomRightLayout);
		
		rightLayout.setComponentAlignment(verticalSplitPanel, Alignment.MIDDLE_CENTER);
		bottomLayout.setComponentAlignment(horizontalSplitPanelRight, Alignment.MIDDLE_CENTER);
		
		mainLayout.addComponent(horizontalSplitPanel);
	}
 
开发者ID:DHBW-Karlsruhe,项目名称:businesshorizon2,代码行数:58,代码来源:InitialLayout.java

示例9: initLayout

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
private void initLayout() {
    HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
    VerticalLayout rulesOverview = new VerticalLayout();
    splitPanel.addComponent(rulesOverview);
    splitPanel.addComponent(ruleEditor);
    rulesOverview.addComponent(rulesTable);
    rulesOverview.addComponent(addButton);
    rulesOverview.setSizeFull();
    rulesOverview.setExpandRatio(rulesTable, 1);
    rulesTable.setSizeFull();
    addButton.setWidth("100%");
    ruleEditor.setMargin(true);
    ruleEditor.setVisible(false);
    splitPanel.setHeight("100%");
    splitPanel.setMargin(true);
    splitPanel.setWidth("100%");
    splitPanel.setSizeFull();

    logPathField.addValidator(new AbstractStringValidator(null) {
        @Override
        protected boolean isValidString(String value) {
            try {
                if (value == null) {
                    setErrorMessage("Invalid path: can not be null");
                    return false;
                }
                File file = new File(value);
                if (!file.exists()) {
                    setErrorMessage("Invalid path");
                    return false;
                }
                File parent = new File(file.getParent());
                return parent.canWrite() || file.canWrite();
            } catch (Exception ex) {
                setErrorMessage("Invalid path: " + ex.getMessage());
                return false;
            }
        }
    });
    logPathField.setImmediate(true);
    logPathField.setWidth("100%");
    logPathField.setValue(config.getLogFilePath());
    VerticalLayout confLayout = new VerticalLayout();
    confLayout.setMargin(true);
    confLayout.addComponent(logPathField);
    confLayout.addComponent(splitPanel);
    addComponent(confLayout);
}
 
开发者ID:nvdk,项目名称:ods-lodms-plugins,代码行数:49,代码来源:OdsValidatorDialog.java


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