use of com.vaadin.v7.ui.VerticalLayout in project opencms-core by alkacon.
the class A_CmsEditUserGroupRoleDialog method removeExistingTable.
/**
* Check if table exists in given layout. Removes all tables.<p>
*
* @param layout to be cleaned from tables
*/
private void removeExistingTable(VerticalLayout layout) {
List<Component> tobeRemoved = new ArrayList<Component>();
Iterator<Component> it = layout.iterator();
while (it.hasNext()) {
Component comp = it.next();
if ((comp instanceof FixedHeightPanel) | (comp instanceof TextField) | (comp instanceof VerticalLayout)) {
tobeRemoved.add(comp);
}
}
for (Component c : tobeRemoved) {
layout.removeComponent(c);
}
}
use of com.vaadin.v7.ui.VerticalLayout in project opencms-core by alkacon.
the class CmsAccountsApp method openSubView.
/**
* @see org.opencms.ui.apps.A_CmsWorkplaceApp#openSubView(java.lang.String, boolean)
*/
@Override
public void openSubView(String state, boolean updateState) {
if (updateState) {
CmsAppWorkplaceUi.get().changeCurrentAppState(state);
}
Component comp = getComponentForState(state);
updateInfoButton();
if (comp != null) {
VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
comp.setSizeFull();
layout.addComponent(m_table.getEmptyLayout());
layout.addComponent(m_table);
handleSetTable(m_table);
m_splitScreen.setSecondComponent(layout);
} else {
m_splitScreen.setSecondComponent(new Label("Malformed path, tool not available for path: " + state));
handleSetTable(null);
}
m_splitScreen.setSizeFull();
updateSubNav(getSubNavEntries(state));
updateBreadCrumb(getBreadCrumbForState(state));
}
use of com.vaadin.v7.ui.VerticalLayout in project opencms-core by alkacon.
the class CmsDeleteSiteDialog method getContent.
/**
* Creates content of dialog containing CheckBox if resources should be deleted and a messages.<p>
*
* @return vertical layout component.
*/
protected VerticalLayout getContent() {
String message;
if (m_sitesToDelete.size() == 1) {
message = CmsVaadinUtils.getMessageText(Messages.GUI_SITE_CONFIRM_DELETE_SITE_1, m_sitesToDelete.get(0).getTitle());
} else {
message = "";
for (CmsSite site : m_sitesToDelete) {
if (message.length() > 0) {
message += ", ";
}
message += site.getTitle();
}
message = CmsVaadinUtils.getMessageText(Messages.GUI_SITE_CONFIRM_DELETE_SITES_1, message);
}
VerticalLayout layout = new VerticalLayout();
m_deleteResources = new CheckBox();
m_deleteResources.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_SITE_DELETE_RESOURCES_0));
m_deleteResources.setDescription(CmsVaadinUtils.getMessageText(Messages.GUI_SITE_DELETE_RESOURCES_HELP_0));
layout.addComponent(m_deleteResources);
Label label = new Label();
label.setContentMode(ContentMode.HTML);
label.setValue(message);
layout.addComponent(label);
return layout;
}
use of com.vaadin.v7.ui.VerticalLayout in project opencms-core by alkacon.
the class CmsOUTable method getEmptyLayout.
/**
* @see org.opencms.ui.apps.user.I_CmsFilterableTable#getEmptyLayout()
*/
public VerticalLayout getEmptyLayout() {
VerticalLayout layout = new VerticalLayout();
layout.setVisible(false);
return layout;
}
use of com.vaadin.v7.ui.VerticalLayout in project opencms-core by alkacon.
the class CmsRoleTable method getEmptyLayout.
/**
* @see org.opencms.ui.apps.user.I_CmsFilterableTable#getEmptyLayout()
*/
public VerticalLayout getEmptyLayout() {
VerticalLayout layout = new VerticalLayout();
layout.setVisible(false);
return layout;
}
Aggregations