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;
}
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;
}
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);
}
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);
}
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);
}
Aggregations