Search in sources :

Example 11 with CssLayout

use of com.vaadin.ui.CssLayout in project cuba by cuba-platform.

the class WindowBreadCrumbs method createEnclosingLayout.

protected Layout createEnclosingLayout() {
    Layout enclosingLayout = new CssLayout();
    enclosingLayout.setPrimaryStyleName("c-breadcrumbs-container");
    return enclosingLayout;
}
Also used : CssLayout(com.vaadin.ui.CssLayout) CssLayout(com.vaadin.ui.CssLayout) Layout(com.vaadin.ui.Layout)

Example 12 with CssLayout

use of com.vaadin.ui.CssLayout in project cuba by cuba-platform.

the class WindowBreadCrumbs method createLogoLayout.

protected Layout createLogoLayout() {
    CssLayout logoLayout = new CssLayout();
    logoLayout.setPrimaryStyleName("c-breadcrumbs-logo");
    return logoLayout;
}
Also used : CssLayout(com.vaadin.ui.CssLayout)

Example 13 with CssLayout

use of com.vaadin.ui.CssLayout in project cia by Hack23.

the class RowUtil method createRowItem.

/**
 * Creates the row item.
 *
 * @param row         the row
 * @param button      the button
 * @param description the description
 */
public static void createRowItem(final ResponsiveRow row, final Button button, final String description) {
    final CssLayout layout = new CssLayout();
    layout.addStyleName("v-layout-content-overview-panel-level2");
    Responsive.makeResponsive(layout);
    layout.setSizeUndefined();
    button.addStyleName(ITEMBOX);
    button.addStyleName(TITLE);
    Responsive.makeResponsive(button);
    button.setWidth(100, Unit.PERCENTAGE);
    layout.addComponent(button);
    final Label descriptionLabel = new Label(description);
    descriptionLabel.addStyleName(ITEMBOX);
    Responsive.makeResponsive(descriptionLabel);
    descriptionLabel.setWidth(100, Unit.PERCENTAGE);
    layout.addComponent(descriptionLabel);
    row.addColumn().withDisplayRules(DISPLAY_SIZE_XS_DEVICE, DISPLAYS_SIZE_XM_DEVICE, DISPLAY_SIZE_MD_DEVICE, DISPLAY_SIZE_LG_DEVICE).withComponent(layout);
}
Also used : CssLayout(com.vaadin.ui.CssLayout) Label(com.vaadin.ui.Label)

Example 14 with CssLayout

use of com.vaadin.ui.CssLayout in project cia by Hack23.

the class RowUtil method createRowComponent.

/**
 * Creates the row component.
 *
 * @param row         the row
 * @param component   the component
 * @param description the description
 */
public static void createRowComponent(final ResponsiveRow row, final Component component, final String description) {
    final CssLayout layout = new CssLayout();
    layout.addStyleName(".v-layout-content-pagemode-panel-level2");
    Responsive.makeResponsive(layout);
    layout.setSizeUndefined();
    final Label descriptionLabel = new Label(description);
    descriptionLabel.addStyleName(ITEMBOX);
    Responsive.makeResponsive(descriptionLabel);
    descriptionLabel.setWidth(100, Unit.PERCENTAGE);
    layout.addComponent(descriptionLabel);
    component.addStyleName(ITEMBOX);
    component.addStyleName(TITLE);
    Responsive.makeResponsive(component);
    component.setWidth(100, Unit.PERCENTAGE);
    layout.addComponent(component);
    row.addColumn().withDisplayRules(DISPLAY_SIZE_XS_DEVICE, DISPLAYS_SIZE_XM_DEVICE, DISPLAY_SIZE_MD_DEVICE, DISPLAY_SIZE_LG_DEVICE).withComponent(layout);
}
Also used : CssLayout(com.vaadin.ui.CssLayout) Label(com.vaadin.ui.Label)

Example 15 with CssLayout

use of com.vaadin.ui.CssLayout in project Activiti by Activiti.

the class MainLayout method initFooter.

protected void initFooter() {
    footer = new CssLayout();
    footer.setWidth(100, UNITS_PERCENTAGE);
    footer.addStyleName(ExplorerLayout.STYLE_MAIN_FOOTER);
    addComponent(footer);
    Label footerLabel = new Label();
    footerLabel.setContentMode(Label.CONTENT_XHTML);
    footerLabel.setValue(i18nManager.getMessage(Messages.FOOTER_MESSAGE));
    footerLabel.setWidth(100, UNITS_PERCENTAGE);
    footer.addComponent(footerLabel);
}
Also used : CssLayout(com.vaadin.ui.CssLayout) Label(com.vaadin.ui.Label)

Aggregations

CssLayout (com.vaadin.ui.CssLayout)28 Label (com.vaadin.ui.Label)10 Button (com.vaadin.ui.Button)8 ClickEvent (com.vaadin.ui.Button.ClickEvent)4 ClickListener (com.vaadin.ui.Button.ClickListener)4 Component (com.vaadin.ui.Component)4 VerticalLayout (com.vaadin.ui.VerticalLayout)4 HorizontalLayout (com.vaadin.ui.HorizontalLayout)3 TextField (com.vaadin.ui.TextField)3 LayoutClickEvent (com.vaadin.event.LayoutEvents.LayoutClickEvent)2 LayoutClickListener (com.vaadin.event.LayoutEvents.LayoutClickListener)2 ValoTheme (com.vaadin.ui.themes.ValoTheme)2 PrettyTimeLabel (org.activiti.explorer.ui.custom.PrettyTimeLabel)2 ClaimTaskClickListener (org.activiti.explorer.ui.task.listener.ClaimTaskClickListener)2 Subscription (com.haulmont.bali.events.Subscription)1 Instance (com.haulmont.chile.core.model.Instance)1 Entity (com.haulmont.cuba.core.entity.Entity)1 TokenList (com.haulmont.cuba.gui.components.TokenList)1 ValueSource (com.haulmont.cuba.gui.components.data.ValueSource)1 WebAbstractComponent (com.haulmont.cuba.web.gui.components.WebAbstractComponent)1