List of usage examples for com.vaadin.ui Embedded setVisible
@Override public void setVisible(boolean visible)
From source file:com.foc.vaadin.gui.layouts.FVTableWrapperLayout.java
License:Apache License
public void adjustTableEditingToolsVisiblity() { boolean isEditable = getTableTreeDelegate() != null ? getTableTreeDelegate().isEditable() : false; if (Globals.isValo()) { Embedded addEmbedded = valo_GetAddEmbedded(isEditable); if (addEmbedded != null) { addEmbedded.setVisible(getTableTreeDelegate().isAddEnabled(isEditable)); }/*from w ww. ja va 2 s . com*/ Embedded openEmbedded = valo_GetOpenEmbedded(isEditable); if (openEmbedded != null) { openEmbedded.setVisible(getTableTreeDelegate().isOpenEnabled(isEditable)); } Embedded deleteEmbedded = valo_GetDeleteEmbedded(isEditable); if (deleteEmbedded != null) { deleteEmbedded.setVisible(getTableTreeDelegate().isDeleteEnabled(isEditable)); } Embedded duplicateEmbedded = valo_GetDuplicateEmbedded(); if (duplicateEmbedded != null) { duplicateEmbedded.setVisible(getTableTreeDelegate().isDuplicateEnabled()); } } else { if (getAddButton() != null) { getAddButton().setVisible(getTableTreeDelegate().isAddEnabled(isEditable)); } if (getOpenButton() != null) { getOpenButton().setVisible(getTableTreeDelegate().isOpenEnabled(isEditable)); } if (getDeleteButton() != null) { getDeleteButton().setVisible(getTableTreeDelegate().isDeleteEnabled(isEditable)); } if (getDuplicateButton() != null) { getDuplicateButton().setVisible(getTableTreeDelegate().isDuplicateEnabled()); } } // if(getTableStatusStyleButton() != null){ //// getTableStatusStyleButton().setVisible(getTableTreeDelegate().isTableStatusStyleEnabled()); // getTableStatusStyleButton().setVisible(true); // } // if(getTransactionFilterButton() != null){ //// getTableStatusStyleButton().setVisible(getTableTreeDelegate().isTableStatusStyleEnabled()); // getTableStatusStyleButton().setVisible(true); // } }
From source file:edu.nps.moves.mmowgli.modules.userprofile.UserProfileMyIdeasPanel2.java
License:Open Source License
HorizontalLayout makeCheckRow(Button butt) { HorizontalLayout hl = new HorizontalLayout(); hl.setSizeUndefined();//from w ww . ja va 2 s . com hl.addStyleName("m-userprofile-linkbuttons"); hl.setMargin(false); hl.setSpacing(false); if (checkMarkRes == null) checkMarkRes = Mmowgli2UI.getGlobals().getMediaLocator().getCheckMark12px(); Embedded embedded = new Embedded(null, checkMarkRes); embedded.setWidth("12px"); if (butt == buildsButt) embedded.setVisible(false); hl.addComponent(embedded); hl.addComponent(butt); hl.setExpandRatio(butt, 1.0f); return hl; }