List of usage examples for com.vaadin.ui Panel setHeight
@Override public void setHeight(String height)
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);/*from w w w.ja va 2 s . co m*/ vlDirectMember.setWidth("100.0%"); vlDirectMember.setMargin(false); directMembersPanel.setContent(vlDirectMember); return directMembersPanel; }
From source file:org.escidoc.browser.ui.maincontent.MetadataRecsItem.java
License:Open Source License
private Panel lblAddtionalResources() { final Button btnVersionHistory = new Button("Item Version History", new VersionHistoryClickListener(resourceProxy, mainWindow, repositories)); btnVersionHistory.setStyleName(BaseTheme.BUTTON_LINK); btnVersionHistory.setDescription("Show Version history in a Pop-up"); final Button btnContentRelation = new Button("Item Content Relations", new RelationsClickListener(resourceProxy, repositories, router)); btnContentRelation.setStyleName(BaseTheme.BUTTON_LINK); btnContentRelation.setDescription("Show Version history in a Pop-up"); final Panel pnl = new Panel(); pnl.setHeight("100%"); pnl.addComponent(btnVersionHistory); pnl.addComponent(btnContentRelation); return pnl;//from w w w .ja va 2s . c o m }
From source file:org.escidoc.browser.ui.maincontent.OrgUnitView.java
License:Open Source License
private Panel buildRightPanel() { // common part: create layout Panel rightPanel = new Panel(); rightPanel.setImmediate(false);//w ww . j av a 2 s. c o m rightPanel.setWidth("100.0%"); rightPanel.setHeight("100.0%"); // vlRightPanel rightPanel.setContent(buildVlRightPanel()); return rightPanel; }
From source file:org.escidoc.browser.ui.tools.CreateResourcesView.java
License:Open Source License
private Panel buildContentPanel() { // common part: create layout final Panel contentPanel = new Panel(); contentPanel.setImmediate(false);/*from ww w . j a v a 2 s.c o m*/ contentPanel.setWidth("100.0%"); contentPanel.setHeight("100.0%"); // vlContentPanel final VerticalLayout vlContentPanel = buildVlContentPanel(); contentPanel.setContent(vlContentPanel); return contentPanel; }
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. ja v a2 s. c o m contentPanel.setWidth("100.0%"); contentPanel.setHeight("100.0%"); return contentPanel; }
From source file:org.escidoc.browser.ui.useraccount.UserAccountView.java
License:Open Source License
private Panel buildPanel() { // common part: create layout Panel panel = new Panel(); panel.setImmediate(false);//from w ww. java 2s . co m panel.setWidth("100.0%"); panel.setHeight("100.0%"); try { VerticalLayout verticalLayout = buildVerticalLayout(); buildEditUserForm(verticalLayout); panel.addComponent(verticalLayout); } catch (EscidocClientException e) { router.getMainWindow().showNotification(ViewConstants.ERROR_CREATING_RESOURCE + e.getMessage(), Window.Notification.TYPE_ERROR_MESSAGE); } catch (URISyntaxException e) { router.getMainWindow().showNotification(ViewConstants.ERROR_CREATING_RESOURCE + e.getMessage(), Window.Notification.TYPE_ERROR_MESSAGE); } return panel; }
From source file:org.escidoc.browser.ui.view.helpers.DragnDropHelper.java
License:Open Source License
protected void createDragComponents() throws EscidocClientException { tree = new Tree(); table = new Table("Drag from table to tree"); table.setWidth("100%"); tableDelete = new Table(); initializeTree(new SourceIs(table)); initializeTable(new SourceIs(tree)); Panel pn = new Panel(); pn.setHeight("100%"); VerticalLayout vlTree = new VerticalLayout(); vlTree.addComponent(new Label("Drag from Tree to Table to add new OU")); vlTree.addComponent(tf);//w ww . ja va 2 s .com vlTree.addComponent(tree); HorizontalLayout hl = new HorizontalLayout(); pn.setContent(vlTree); hl.addComponent(pn); VerticalLayout vl = new VerticalLayout(); vl.setWidth("100%"); hl.addComponent(vl); vl.addComponent(table); if (canRemoveOperation()) { initializeDeleteTable(new SourceIs(table)); vl.addComponent(tableDelete); vl.setComponentAlignment(tableDelete, Alignment.TOP_RIGHT); } addComponent(hl); }
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; }
From source file:org.escidoc.browser.ui.view.helpers.ItemPropertiesVH.java
License:Open Source License
private Panel buildRightPnlProperties() { final Panel pnlPropertiesRight = new Panel(); pnlPropertiesRight.setWidth("60%"); pnlPropertiesRight.setHeight("60px"); pnlPropertiesRight.setStyleName(ViewConstants.FLOAT_RIGHT); pnlPropertiesRight.addStyleName(Runo.PANEL_LIGHT); pnlPropertiesRight.getLayout().setMargin(false); return pnlPropertiesRight; }
From source file:org.fossa.rolp.ui.dashboard.KlassenlehrerDashboard.java
License:Open Source License
public KlassenlehrerDashboard(RolpApplication app) { super(app);/* w w w .j a va 2s .c om*/ this.app = app; setCaption(" - KlassenlehrerDashboard - "); setWidth("100%"); setHeight("100%"); buildButtonBatteries(); CustomLayout layout = new CustomLayout("./lehrerDashboards/klassenLehrerDashboardMain"); setContent(layout); CustomLayout headline = new CustomLayout("./lehrerDashboards/headline"); headline.addStyleName("headline"); Embedded logo = new Embedded(null, new ThemeResource(MAINPAGE_PANEL_ANMELDEN_LOGO_PATH)); logo.setType(Embedded.TYPE_IMAGE); logo.setWidth("100px"); logo.setHeight("96px"); headline.addComponent(logo, "logo"); headline.addComponent(headdataEditingPanel, "headdataEditingPanel"); Panel hints = new Panel(); hints.addStyleName("hints"); hinweistext = new Label(); hinweistext.setContentMode(Label.CONTENT_XHTML); hinweistext.setReadOnly(true); hinweistext.setHeight("250px"); hints.setHeight("250px"); hints.setScrollable(true); hints.addComponent(hinweistext); refreshHinweistext(); CustomLayout schuelerListe = new CustomLayout("./lehrerDashboards/liste"); schuelerListe.addStyleName("liste"); schuelerList = getSchuelerList(); schuelerList.setHeight("250px"); schuelerList.setStyleName("list"); schuelerListe.addComponent(schuelerList, "list"); schuelerListe.setHeight("260px"); layout.addComponent(schuelerListe, "liste"); layout.addComponent(headline, "headline"); layout.addComponent(horizontalButtonBattery, "horizontalButtonBattery"); layout.addComponent(verticalButtonBattery, "verticalButtonBattery"); layout.addComponent(hints, "hints"); windowCloseButton.setWidth("100%"); layout.addComponent(windowCloseButton, "windowCloseButton"); // app.getAnimator().animate(horizontalButtonBattery, AnimType.ROLL_DOWN_OPEN_POP).setDuration(500).setDelay(500); }