List of usage examples for com.vaadin.ui Panel setStyleName
@Override public void setStyleName(String style)
From source file:org.escidoc.browser.ui.maincontent.ContextView.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%"); resourcePropertiesPanel.setStyleName(Runo.PANEL_LIGHT); // vlResourceProperties vlResourceProperties = buildVlResourceProperties(); resourcePropertiesPanel.setContent(vlResourceProperties); return resourcePropertiesPanel; }
From source file:org.escidoc.browser.ui.maincontent.FolderView.java
License:Open Source License
private Panel buildMembersPanel() { // common part: create layout Panel metaViewsPanel = new Panel(); metaViewsPanel.setImmediate(false);//from w w w.j a v a2 s. com metaViewsPanel.setWidth("100.0%"); // metaViewsPanel.setHeight("100.0%"); metaViewsPanel.setStyleName(Runo.PANEL_LIGHT); FolderChildrenVH folderChildrenView = new FolderChildrenVH(folderController, resourceProxy, repositories); folderChildrenView.buildTable(); metaViewsPanel.setContent(folderChildrenView); return metaViewsPanel; }
From source file:org.escidoc.browser.ui.maincontent.FolderView.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("120px"); resourcePropertiesPanel.setStyleName(Runo.PANEL_LIGHT); // vlResourceProperties VerticalLayout vlResourceProperties = buildVlResourceProperties(); resourcePropertiesPanel.setContent(vlResourceProperties); return resourcePropertiesPanel; }
From source file:org.escidoc.browser.ui.maincontent.ItemView.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 final VerticalLayout vlDirectMember = new ItemContent(repositories, resourceProxy, router, controller); vlDirectMember.setImmediate(false);// w ww .j ava 2 s . c om vlDirectMember.setWidth("100.0%"); vlDirectMember.setMargin(false); directMembersPanel.setContent(vlDirectMember); return directMembersPanel; }
From source file:org.escidoc.browser.ui.maincontent.OrgUnitMetadataRecordsView.java
License:Open Source License
public Panel asPanel() { final Panel panel = new Panel(); panel.setSizeFull();/* w ww .j av a 2 s. com*/ panel.setStyleName(Runo.PANEL_LIGHT); VerticalLayout vl = new VerticalLayout(); vl.setImmediate(false); vl.setWidth("100.0%"); vl.setHeight("100.0%"); vl.setMargin(false); vl.addComponent(buildMetaDataTab()); panel.setContent(vl); return panel; }
From source file:org.escidoc.browser.ui.maincontent.OrgUnitView.java
License:Open Source License
private Panel buildMetaViewsPanel() { Panel mdView = new Panel(); mdView.setImmediate(false);/* w w w .ja v a 2 s. co m*/ mdView.setWidth("100.0%"); // mdView.setHeight("300px"); mdView.setStyleName(Runo.PANEL_LIGHT); mdView.setContent(buildHlMetaViews()); return mdView; }
From source file:org.escidoc.browser.ui.maincontent.ParentsView.java
License:Open Source License
public Panel asPanel() { final Panel pnlmetadataRecs = new Panel(); pnlmetadataRecs.setSizeFull();/* w w w. ja v a 2 s . c o m*/ pnlmetadataRecs.setStyleName(Runo.PANEL_LIGHT); VerticalLayout vl = new VerticalLayout(); vl.setImmediate(false); vl.setWidth("100.0%"); vl.setHeight("100.0%"); vl.setMargin(false); vl.addComponent(buildParentsList()); pnlmetadataRecs.setContent(vl); return pnlmetadataRecs; }
From source file:org.escidoc.browser.ui.maincontent.ParentsView.java
License:Open Source License
@SuppressWarnings("serial") private Component buildParentsList() { // ViewConstants.PARENTS final Panel panel = new Panel(); panel.setSizeFull();// ww w . j ava 2 s .co m panel.setStyleName(Runo.PANEL_LIGHT); VerticalLayout vl = new VerticalLayout(); vl.setSizeFull(); final CssLayout cssLayout = new CssLayout(); cssLayout.setHeight("20px"); buildPanelHeader(cssLayout, ViewConstants.PARENTS); ThemeResource ICON = new ThemeResource("images/assets/plus.png"); Button btnAdd = new Button(); btnAdd.setStyleName(BaseTheme.BUTTON_LINK); btnAdd.addStyleName("floatright paddingtop3"); btnAdd.setWidth("20px"); btnAdd.setIcon(ICON); btnAdd.addListener(new Button.ClickListener() { @Override public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { final Window subwindow = new Window("Manage Organizational Unit Parents"); subwindow.setModal(true); subwindow.setWidth("650px"); VerticalLayout layout = (VerticalLayout) subwindow.getContent(); layout.setMargin(true); layout.setSpacing(true); try { subwindow.addComponent(new OrgUnitParentEditView(orgUnitProxy, orgUnitProxy.getParentList(), router, orgUnitController)); } catch (EscidocClientException e) { orgUnitController.showError(e); } Button close = new Button("Close", new Button.ClickListener() { @Override public void buttonClick(@SuppressWarnings("unused") com.vaadin.ui.Button.ClickEvent event) { (subwindow.getParent()).removeWindow(subwindow); } }); layout.addComponent(close); layout.setComponentAlignment(close, Alignment.TOP_RIGHT); mainWindow.addWindow(subwindow); } }); cssLayout.addComponent(btnAdd); vl.addComponent(cssLayout); List<ResourceModel> l = orgUnitProxy.getParentList(); OUParentTableVH parentTable = new OUParentTableVH(orgUnitProxy, router, orgUnitController); parentTable.buildTable(); vl.addComponent(parentTable); vl.setExpandRatio(parentTable, 9f); // TODO here comes table panel.setContent(vl); return panel; }
From source file:org.escidoc.browser.ui.useraccount.UserAccountView.java
License:Open Source License
private static Panel createContentPanel() { Panel contentPanel = new Panel(); contentPanel.setStyleName(Runo.PANEL_LIGHT); contentPanel.setImmediate(false);/*from w ww .j a v a 2 s .c o m*/ contentPanel.setWidth("100.0%"); contentPanel.setHeight("100.0%"); return contentPanel; }
From source file:org.escidoc.browser.ui.view.helpers.ItemPropertiesVH.java
License:Open Source License
private Panel buildLeftPropertiesPnl() { final Panel pnlPropertiesLeft = new Panel(); pnlPropertiesLeft.setWidth("40%"); pnlPropertiesLeft.setHeight("60px"); pnlPropertiesLeft.setStyleName(ViewConstants.FLOAT_LEFT); pnlPropertiesLeft.addStyleName(Runo.PANEL_LIGHT); pnlPropertiesLeft.getLayout().setMargin(false); return pnlPropertiesLeft; }