use of com.vaadin.ui.CssLayout in project Activiti by Activiti.
the class MainLayout method initMain.
protected void initMain() {
main = new CssLayout();
main.setSizeFull();
main.addStyleName(ExplorerLayout.STYLE_MAIN_CONTENT);
addComponent(main);
setExpandRatio(main, 1.0f);
}
use of com.vaadin.ui.CssLayout in project Activiti by Activiti.
the class MainLayout method initHeader.
protected void initHeader() {
header = new CssLayout();
header.addStyleName(ExplorerLayout.STYLE_HEADER);
header.setWidth(100, UNITS_PERCENTAGE);
addComponent(header);
}
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);
}
use of com.vaadin.ui.CssLayout in project Activiti by Activiti.
the class TaskListHeader method initInputField.
protected void initInputField() {
// Csslayout is used to style inputtext as rounded
CssLayout csslayout = new CssLayout();
csslayout.setHeight(24, UNITS_PIXELS);
csslayout.setWidth(100, UNITS_PERCENTAGE);
layout.addComponent(csslayout);
inputField = new TextField();
inputField.setWidth(100, UNITS_PERCENTAGE);
inputField.addStyleName(ExplorerLayout.STYLE_SEARCHBOX);
inputField.setInputPrompt(i18nManager.getMessage(Messages.TASK_CREATE_NEW));
inputField.focus();
csslayout.addComponent(inputField);
layout.setComponentAlignment(csslayout, Alignment.MIDDLE_LEFT);
layout.setExpandRatio(csslayout, 1.0f);
}
Aggregations