本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}