List of usage examples for com.vaadin.ui Panel setStyleName
@Override public void setStyleName(String style)
From source file:org.escidoc.browser.elabsmodul.views.InvestigationView.java
License:Open Source License
/** * This is the inner Right Cell within a Context By default a set of Organizational Unit / Admin Description / * RelatedItem / Resources are bound This Cell is binding the Panel and the Start/Stop button in the Investigation, * through StartInvestigationViewHelper/*from w w w.j a v a 2 s . co m*/ * * @param comptoBind */ @SuppressWarnings("deprecation") private void rightCell(final Component comptoBind) { final Panel rightpnl = new Panel(); rightpnl.setStyleName("floatright"); rightpnl.addStyleName(Runo.PANEL_LIGHT); rightpnl.setSizeFull(); rightpnl.getLayout().setMargin(false); rightpnl.addComponent(comptoBind); new StartInvestigationViewHelper(this, this.controller).createStartButton(rightpnl); directMemberInvestigationContainer.addComponent(rightpnl); directMemberInvestigationContainer.setExpandRatio(rightpnl, 7.0f); }
From source file:org.escidoc.browser.elabsmodul.views.StudyView.java
License:Open Source License
/** * This is the inner Right Cell within a Context By default a set of Organizational Unit / Admin Description / * RelatedItem / Resources are bound/*w w w .j a v a2 s . c o m*/ * * @param comptoBind */ private void rightCell(final Component comptoBind) { final Panel rightpnl = new Panel(); rightpnl.setDescription(RIGHT_PANEL); rightpnl.setStyleName("floatright"); rightpnl.addStyleName(Runo.PANEL_LIGHT); rightpnl.setSizeFull(); VerticalLayout vlRightPnl = new VerticalLayout(); vlRightPnl.setSizeFull(); vlRightPnl.setMargin(false); vlRightPnl.addComponent(comptoBind); rightpnl.setContent(vlRightPnl); this.directMemberExperimentContainer.addComponent(rightpnl); this.directMemberExperimentContainer.setExpandRatio(rightpnl, 7.0f); }
From source file:org.escidoc.browser.elabsmodul.views.StudyView.java
License:Open Source License
private void leftCell() throws EscidocClientException { final Panel leftPanel = new Panel(); leftPanel.setStyleName("directmembers floatleft"); leftPanel.setScrollable(false);//from www . j a va 2 s . co m leftPanel.setSizeFull(); VerticalLayout vlLeftPanel = new VerticalLayout(); vlLeftPanel.setSizeFull(); vlLeftPanel.setMargin(false); leftPanel.setContent(vlLeftPanel); new DirectMember(this.router.getServiceLocation(), this.router, this.containerProxy.getId(), this.router.getMainWindow(), this.router.getRepositories(), leftPanel, ResourceType.CONTAINER.toString()).containerAsTree(); this.directMemberExperimentContainer.addComponent(leftPanel); this.directMemberExperimentContainer.setExpandRatio(leftPanel, 3.0f); }
From source file:org.escidoc.browser.ui.maincontent.ContainerView.java
License:Open Source License
private Panel buildMetaViewsPanel() throws EscidocClientException { // common part: create layout Panel metaViewsPanel = new Panel(); metaViewsPanel.setImmediate(false);// ww w . ja va2s. c om metaViewsPanel.setWidth("100.0%"); metaViewsPanel.setHeight("100.0%"); metaViewsPanel.setStyleName(Runo.PANEL_LIGHT); // hlMetaViews HorizontalLayout hlMetaViews = buildHlMetaViews(); metaViewsPanel.setContent(hlMetaViews); return metaViewsPanel; }
From source file:org.escidoc.browser.ui.maincontent.ContainerView.java
License:Open Source License
private VerticalLayout buildVlLeftPanel() throws EscidocClientException { // common part: create layout VerticalLayout vlLeftPanel = new VerticalLayout(); vlLeftPanel.setImmediate(false);/*from ww w . j ava 2 s. c om*/ vlLeftPanel.setWidth("100.0%"); vlLeftPanel.setHeight("100.0%"); vlLeftPanel.setMargin(false); // directMembersPanel Panel directMembersPanel = buildDirectMembersPanel(); directMembersPanel.setStyleName("directmembers"); vlLeftPanel.addComponent(directMembersPanel); return vlLeftPanel; }
From source file:org.escidoc.browser.ui.maincontent.ContainerView.java
License:Open Source License
private Panel buildDirectMembersPanel() throws EscidocClientException { // common part: create layout Panel directMembersPanel = new Panel(); directMembersPanel.setImmediate(true); directMembersPanel.setSizeFull();//w w w . j a v a2 s . c o m directMembersPanel.setScrollable(true); directMembersPanel.setStyleName(Runo.PANEL_LIGHT); // vlDirectMember VerticalLayout vlDirectMember = new VerticalLayout(); vlDirectMember.setImmediate(true); vlDirectMember.setWidth("100.0%"); vlDirectMember.setHeight("100.0%"); vlDirectMember.setMargin(false); directMembersPanel.setContent(vlDirectMember); new DirectMember(serviceLocation, router, resourceProxy.getId(), mainWindow, repositories, directMembersPanel, ResourceType.CONTAINER.toString()).containerAsTree(); return directMembersPanel; }
From source file:org.escidoc.browser.ui.maincontent.ContainerView.java
License:Open Source License
private Panel buildResourcePropertiesPanel() { // common part: create layout Panel resourcePropertiesPanel = new Panel(); resourcePropertiesPanel.setImmediate(false); resourcePropertiesPanel.setWidth("100.0%"); resourcePropertiesPanel.setHeight("100.0%"); resourcePropertiesPanel.setStyleName(Runo.PANEL_LIGHT); // vlResourceProperties VerticalLayout vlResourceProperties = buildVlResourceProperties(); resourcePropertiesPanel.setContent(vlResourceProperties); return resourcePropertiesPanel; }
From source file:org.escidoc.browser.ui.maincontent.ContainerView.java
License:Open Source License
private static Panel buildLeftPropertiesPnl() { Panel pnlPropertiesLeft = new Panel(); pnlPropertiesLeft.setWidth("40%"); pnlPropertiesLeft.setHeight("60px"); pnlPropertiesLeft.setStyleName("floatleft"); pnlPropertiesLeft.addStyleName(Runo.PANEL_LIGHT); VerticalLayout vl = new VerticalLayout(); vl.setMargin(false);/*from ww w . j a va2 s . c o m*/ pnlPropertiesLeft.setContent(vl); return pnlPropertiesLeft; }
From source file:org.escidoc.browser.ui.maincontent.ContainerView.java
License:Open Source License
private static Panel buildRightPnlProperties() { Panel pnlPropertiesRight = new Panel(); pnlPropertiesRight.setWidth("60%"); pnlPropertiesRight.setHeight("60px"); pnlPropertiesRight.setStyleName("floatright"); pnlPropertiesRight.addStyleName(Runo.PANEL_LIGHT); VerticalLayout vl = new VerticalLayout(); vl.setMargin(false);//from ww w. j a va2s .co m pnlPropertiesRight.setContent(vl); return pnlPropertiesRight; }
From source file:org.escidoc.browser.ui.maincontent.ContextView.java
License:Open Source License
private Panel buildDirectMembersPanel() { // common part: create layout Panel directMembersPanel = new Panel(); directMembersPanel.setImmediate(false); directMembersPanel.setWidth("100.0%"); directMembersPanel.setHeight("100.0%"); directMembersPanel.setStyleName(Runo.PANEL_LIGHT); // vlDirectMember VerticalLayout vlDirectMember = new VerticalLayout(); vlDirectMember.setImmediate(false);/*from w ww. jav a2s . c o m*/ vlDirectMember.setWidth("100.0%"); vlDirectMember.setHeight("100.0%"); vlDirectMember.setMargin(false); directMembersPanel.setContent(vlDirectMember); try { new DirectMember(serviceLocation, router, resourceProxy.getId(), mainWindow, repositories, directMembersPanel, ResourceType.CONTEXT.toString()).contextAsTree(); } catch (EscidocClientException e) { router.getMainWindow().showNotification(ViewConstants.ERROR_DIRECTMEMBERS + e.getLocalizedMessage(), Notification.TYPE_ERROR_MESSAGE); } return directMembersPanel; }