Search in sources :

Example 11 with VerticalLayout

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);
    }
}
Also used : ArrayList(java.util.ArrayList) TextField(com.vaadin.v7.ui.TextField) VerticalLayout(com.vaadin.v7.ui.VerticalLayout) Component(com.vaadin.ui.Component)

Example 12 with VerticalLayout

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));
}
Also used : Label(com.vaadin.v7.ui.Label) VerticalLayout(com.vaadin.v7.ui.VerticalLayout) Component(com.vaadin.ui.Component)

Example 13 with VerticalLayout

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;
}
Also used : CheckBox(com.vaadin.v7.ui.CheckBox) Label(com.vaadin.v7.ui.Label) VerticalLayout(com.vaadin.v7.ui.VerticalLayout) CmsSite(org.opencms.site.CmsSite)

Example 14 with VerticalLayout

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;
}
Also used : VerticalLayout(com.vaadin.v7.ui.VerticalLayout)

Example 15 with VerticalLayout

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;
}
Also used : VerticalLayout(com.vaadin.v7.ui.VerticalLayout)

Aggregations

VerticalLayout (com.vaadin.v7.ui.VerticalLayout)34 VerticalLayout (com.vaadin.ui.VerticalLayout)25 Button (com.vaadin.ui.Button)22 Label (com.vaadin.ui.Label)18 Label (com.vaadin.v7.ui.Label)17 HorizontalLayout (com.vaadin.ui.HorizontalLayout)16 Window (com.vaadin.ui.Window)12 Component (com.vaadin.ui.Component)11 ValoTheme (com.vaadin.ui.themes.ValoTheme)11 I18nProperties (de.symeda.sormas.api.i18n.I18nProperties)11 VaadinIcons (com.vaadin.icons.VaadinIcons)10 Panel (com.vaadin.ui.Panel)10 TextField (com.vaadin.v7.ui.TextField)10 Strings (de.symeda.sormas.api.i18n.Strings)10 ButtonHelper (de.symeda.sormas.ui.utils.ButtonHelper)10 CssStyles (de.symeda.sormas.ui.utils.CssStyles)10 Captions (de.symeda.sormas.api.i18n.Captions)9 Alignment (com.vaadin.ui.Alignment)8 CheckBox (com.vaadin.v7.ui.CheckBox)8 OptionGroup (com.vaadin.v7.ui.OptionGroup)8