本文整理汇总了Java中com.vaadin.ui.HorizontalSplitPanel类的典型用法代码示例。如果您正苦于以下问题:Java HorizontalSplitPanel类的具体用法?Java HorizontalSplitPanel怎么用?Java HorizontalSplitPanel使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HorizontalSplitPanel类属于com.vaadin.ui包,在下文中一共展示了HorizontalSplitPanel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: createContent
import com.vaadin.ui.HorizontalSplitPanel; //导入依赖的package包/类
@Override
protected Component createContent() {
VerticalLayout layout = new VerticalLayout();
layout.addComponent(spellSound);
title = new Label();
classe = new LabelField<>("Classe : ");
classLevel = new LabelField<>("Niveau de classe : ");
layout.addComponents(title);
tabs = new TabSheet();
panel = new HorizontalSplitPanel();
panel.setSizeFull();
panel.setCaption(Messages.getInstance().getMessage("spellStep.spell.label"));
panel.setFirstComponent(tabs);
layout.addComponent(panel);
return layout;
}
示例3: showView
import com.vaadin.ui.HorizontalSplitPanel; //导入依赖的package包/类
/**
* Diese Methode setzt die obere und die zwei unteren Views in der Prozessansicht.
*
* @author: Mirko Göpfrich
*/
@Override
public void showView(View topView, View bottomLeftView, View bottomRigthView) {
verticalSplitPanel.setFirstComponent((Component) topView);
//Teilt das Panel horizontal un zwei gleiche Bereiche auf und ertstellt eine vertiakel Trennlinie (nicht verstellbar.)
horizontalSplitPanel = new HorizontalSplitPanel();
horizontalSplitPanel.setSizeFull();
horizontalSplitPanel.setSplitPosition(50, UNITS_PERCENTAGE);
horizontalSplitPanel.setLocked(true);
horizontalSplitPanel.setStyleName("small");
horizontalSplitPanel.setFirstComponent((Component) bottomLeftView);
horizontalSplitPanel.setSecondComponent((Component) bottomRigthView);
//fügt dem unteren vertikalen Panel ein horizontales SplitPanel hinzu.
verticalSplitPanel.setSecondComponent(horizontalSplitPanel);
logger.debug("Horizontales SplitPanel für Prozessschritte und Infos erstellt und an das untere vertikale Panel übergeben");
}
示例4: 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;
}
示例5: init
import com.vaadin.ui.HorizontalSplitPanel; //导入依赖的package包/类
@PostConstruct
protected void init() {
setSizeFull();
tabbedPanel = new TabbedPanel();
HorizontalSplitPanel leftSplit = new HorizontalSplitPanel();
leftSplit.setSizeFull();
leftSplit.setSplitPosition(UIConstants.DEFAULT_LEFT_SPLIT, Unit.PIXELS);
deployNavigator = new DeployNavigator(context, tabbedPanel);
leftSplit.setFirstComponent(deployNavigator);
VerticalLayout container = new VerticalLayout();
container.setSizeFull();
container.addComponent(tabbedPanel);
leftSplit.setSecondComponent(container);
addComponent(leftSplit);
}
示例6: init
import com.vaadin.ui.HorizontalSplitPanel; //导入依赖的package包/类
@PostConstruct
protected void init() {
setSizeFull();
tabbedPanel = new TabbedPanel();
HorizontalSplitPanel leftSplit = new HorizontalSplitPanel();
leftSplit.setSizeFull();
leftSplit.setSplitPosition(UIConstants.DEFAULT_LEFT_SPLIT, Unit.PIXELS);
projectNavigator = new DesignNavigator(context, tabbedPanel);
leftSplit.setFirstComponent(projectNavigator);
VerticalLayout container = new VerticalLayout();
container.setSizeFull();
container.addComponent(tabbedPanel);
leftSplit.setSecondComponent(container);
addComponent(leftSplit);
}
示例7: createMainComponent
import com.vaadin.ui.HorizontalSplitPanel; //导入依赖的package包/类
private void createMainComponent() {
VerticalLayout main = new VerticalLayout();
main.setMargin(false);
main.setSizeFull();
main.addComponent(createToolbar());
mainSplitPanel = new HorizontalSplitPanel();
mainSplitPanel.setMargin(false);
mainSplitPanel.setMaxSplitPosition(80f, HorizontalSplitPanel.UNITS_PERCENTAGE);
mainSplitPanel.setMinSplitPosition(20f, HorizontalSplitPanel.UNITS_PERCENTAGE);
mainSplitPanel.setSizeFull();
mainSplitPanel.setSplitPosition(30f, HorizontalSplitPanel.UNITS_PERCENTAGE);
taskTable = createTable();
mainSplitPanel.setFirstComponent(taskTable);
displayEmptyTask();
main.addComponent(mainSplitPanel);
main.setExpandRatio(mainSplitPanel, 1.0f);
mainComponent = main;
}
示例8: init
import com.vaadin.ui.HorizontalSplitPanel; //导入依赖的package包/类
@Override
protected void init(VaadinRequest request) {
setPollInterval(1000);
hl = new HorizontalSplitPanel();
hl.setSizeFull();
setContent(hl);
buttonsOnTheLeft = new VerticalLayout();
buttonsOnTheLeft.setSizeUndefined();
hl.setFirstComponent(buttonsOnTheLeft);
hl.setSplitPosition(25, Unit.PERCENTAGE);
ServiceTracker<FragmentFactory, FragmentFactory> tracker = new ServiceTracker<FragmentFactory, FragmentFactory>(
VaadinActivator.context, FragmentFactory.class, this);
tracker.open();
addDetachListener(new DetachListener() {
@Override
public void detach(DetachEvent event) {
tracker.close();
}
});
}
示例9: 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;
}
示例10: 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;
}
示例11: testAddComponentToParentWithExpandRatio
import com.vaadin.ui.HorizontalSplitPanel; //导入依赖的package包/类
@Test
public void testAddComponentToParentWithExpandRatio() throws Exception {
Button btn1 = new Button();
Button btn2 = new Button();
HorizontalSplitPanel panel = new HorizontalSplitPanel();
VisualTreeNode splitPanelVisualTreeNode = new VisualTreeNodeImpl(panel);
splitPanelVisualTreeNode.setAdditionalParameter("splitPosition", "0.65");
factory.addComponentToParent(splitPanelVisualTreeNode, new VisualTreeNodeImpl(btn1));
factory.addComponentToParent(splitPanelVisualTreeNode, new VisualTreeNodeImpl(btn2));
assertThat(panel.getComponentCount()).isEqualTo(2);
assertThat(panel.getFirstComponent()).isSameAs(btn1);
assertThat(panel.getSecondComponent()).isSameAs(btn2);
assertThat(panel.getSplitPositionUnit()).isEqualTo(Sizeable.Unit.PERCENTAGE);
assertThat(panel.getSplitPosition()).isEqualTo(0.65f * 100.f, Offset.offset(0.01f));
}
示例12: init
import com.vaadin.ui.HorizontalSplitPanel; //导入依赖的package包/类
@Override
public void init() {
if (eventProxy == null)
throw new RuntimeException("eventProxy cannot be null.");
if (eventConfDao == null)
throw new RuntimeException("eventConfDao cannot be null.");
if (dataCollectionDao == null)
throw new RuntimeException("dataCollectionDao cannot be null.");
setTheme(Runo.THEME_NAME);
final HorizontalSplitPanel mainPanel = new HorizontalSplitPanel();
final MibConsolePanel mibConsole = new MibConsolePanel();
final MibCompilerPanel mibPanel = new MibCompilerPanel(dataCollectionDao, eventConfDao, eventProxy, mibParser, mibConsole);
mainPanel.setSizeFull();
mainPanel.setSplitPosition(25, Sizeable.UNITS_PERCENTAGE);
mainPanel.addComponent(mibPanel);
mainPanel.addComponent(mibConsole);
final Window mainWindow = new Window("MIB Compiler Application", mainPanel);
setMainWindow(mainWindow);
}
示例13: 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;
}
示例14: 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;
}
示例15: SubSetSelectorDraggable
import com.vaadin.ui.HorizontalSplitPanel; //导入依赖的package包/类
public SubSetSelectorDraggable(String caption, List<ET> options) {
availableLayout = new VerticalLayout();
availableLayout.setMargin(false);
availableLayout.setSpacing(false);
valueLayout = new VerticalLayout();
valueLayout.setMargin(false);
valueLayout.setSpacing(false);
splitPanel = new HorizontalSplitPanel(availableLayout, valueLayout);
splitPanel.setMinSplitPosition(20, Unit.PERCENTAGE);
splitPanel.setMaxSplitPosition(80, Unit.PERCENTAGE);
splitPanel.setCaption(caption);
verticalLayout = new VerticalLayout();
verticalLayout.setHeight(100, Unit.PERCENTAGE);
verticalLayout.addComponentsAndExpand(splitPanel);
availableDragSource = new ArrayList<>();
buttonStyles = new ArrayList<>();
addDropTarget(valueLayout, false);
addDropTarget(availableLayout, true);
setHeight(500, Unit.PIXELS);
setDraggableHeight(45);
valueLayout.setHeight(getDraggableAreaHeight(), Unit.PIXELS);
setStyle();
setItems(options);
}