com.vaadin.ui.HorizontalSplitPanel Java Examples

The following examples show how to use com.vaadin.ui.HorizontalSplitPanel. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PolicyWorkspace.java    From XACML with MIT License 6 votes vote down vote up
@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;
}
 
Example #2
Source File: ToolEditorUI.java    From chipster with MIT License 5 votes vote down vote up
@Override
protected void init(VaadinRequest request) {
	treeToolEditor = new TreeToolEditor(this);
	toolEditor = new ToolEditor(this);
	textEditor = new TextEditor(this);
	final Panel vLayout = new Panel();
	vSplitPanel = new VerticalSplitPanel();
	vSplitPanel.setSplitPosition(50, Unit.PERCENTAGE);
	vSplitPanel.setImmediate(true);
	vSplitPanel.setLocked(false);
	vSplitPanel.setWidth("100%");
	vLayout.setContent(vSplitPanel);
    setContent(vSplitPanel);
    VerticalLayout vvLayout = new VerticalLayout();
    vvLayout.setSizeFull();
    Label title = new Label("<h2><b>&nbsp;Tool Editor</b></h2>", ContentMode.HTML);

    vvLayout.addComponent(title);
    vvLayout.setComponentAlignment(title, Alignment.TOP_LEFT);
    HorizontalSplitPanel hSplitpPanel = new HorizontalSplitPanel();
    hSplitpPanel.setSizeFull();
    vvLayout.addComponent(hSplitpPanel);

    HorizontalLayout buttonPanel = getButtonPanel();
    vvLayout.addComponent(buttonPanel);
    vvLayout.setComponentAlignment(buttonPanel, Alignment.MIDDLE_CENTER);

    vvLayout.setExpandRatio(hSplitpPanel, 5);
    vvLayout.setComponentAlignment(hSplitpPanel, Alignment.TOP_LEFT);
    vvLayout.setMargin(false);
    vvLayout.setSpacing(false);
    hSplitpPanel.setFirstComponent(treeToolEditor);
    hSplitpPanel.setSecondComponent(toolEditor);
    vSplitPanel.setFirstComponent(vvLayout);
    vSplitPanel.setSecondComponent(textEditor);
    hSplitpPanel.setStyleName("topborder");
}
 
Example #3
Source File: DefaultHorizontalSplitPanelDropHandler.java    From cuba with Apache License 2.0 4 votes vote down vote up
@Override
public Class<HorizontalSplitPanel> getTargetLayoutType() {
    return HorizontalSplitPanel.class;
}