use of com.vaadin.ui.HorizontalLayout in project Activiti by Activiti.
the class GroupDetailPanel method initGroupDetails.
protected void initGroupDetails() {
Label groupDetailsHeader = new Label(i18nManager.getMessage(Messages.GROUP_HEADER_DETAILS));
groupDetailsHeader.addStyleName(ExplorerLayout.STYLE_H3);
groupDetailsHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
addDetailComponent(groupDetailsHeader);
detailLayout = new HorizontalLayout();
detailLayout.setSpacing(true);
detailLayout.setMargin(true, false, true, false);
addDetailComponent(detailLayout);
populateGroupDetails();
}
use of com.vaadin.ui.HorizontalLayout in project Activiti by Activiti.
the class UserDetailPanel method initUserDetails.
protected void initUserDetails() {
Label userDetailsHeader = new Label(i18nManager.getMessage(Messages.USER_HEADER_DETAILS));
userDetailsHeader.addStyleName(ExplorerLayout.STYLE_H3);
userDetailsHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
addDetailComponent(userDetailsHeader);
// Details: picture and basic info
userDetailsLayout = new HorizontalLayout();
userDetailsLayout.setSpacing(true);
userDetailsLayout.setMargin(false, false, true, false);
addDetailComponent(userDetailsLayout);
populateUserDetails();
}
use of com.vaadin.ui.HorizontalLayout in project Activiti by Activiti.
the class UserDetailPanel method initPageTitle.
protected void initPageTitle() {
HorizontalLayout layout = new HorizontalLayout();
layout.setWidth(100, UNITS_PERCENTAGE);
layout.setSpacing(true);
layout.setMargin(false, false, true, false);
layout.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK);
addDetailComponent(layout);
Embedded userImage = new Embedded(null, Images.USER_50);
layout.addComponent(userImage);
Label userName = new Label(user.getFirstName() + " " + user.getLastName());
userName.setSizeUndefined();
userName.addStyleName(Reindeer.LABEL_H2);
layout.addComponent(userName);
layout.setComponentAlignment(userName, Alignment.MIDDLE_LEFT);
layout.setExpandRatio(userName, 1.0f);
}
use of com.vaadin.ui.HorizontalLayout in project Activiti by Activiti.
the class AdminCompletedInstancesPanel method initDefinitions.
protected void initDefinitions() {
HorizontalLayout definitionsHeader = new HorizontalLayout();
definitionsHeader.setSpacing(true);
definitionsHeader.setWidth(100, UNITS_PERCENTAGE);
definitionsHeader.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
addDetailComponent(definitionsHeader);
initDefinitionTitle(definitionsHeader);
definitionsLayout = new HorizontalLayout();
definitionsLayout.setWidth(100, UNITS_PERCENTAGE);
addDetailComponent(definitionsLayout);
initDefinitionsTable();
}
use of com.vaadin.ui.HorizontalLayout in project Activiti by Activiti.
the class AdminCompletedInstancesPanel method initPageTitle.
protected void initPageTitle() {
HorizontalLayout layout = new HorizontalLayout();
layout.setWidth(100, UNITS_PERCENTAGE);
layout.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK);
layout.setSpacing(true);
layout.setMargin(false, false, true, false);
addDetailComponent(layout);
Embedded groupImage = new Embedded(null, Images.PROCESS_50);
layout.addComponent(groupImage);
Label groupName = new Label(i18nManager.getMessage(Messages.ADMIN_COMPLETED_TITLE));
groupName.setSizeUndefined();
groupName.addStyleName(Reindeer.LABEL_H2);
layout.addComponent(groupName);
layout.setComponentAlignment(groupName, Alignment.MIDDLE_LEFT);
layout.setExpandRatio(groupName, 1.0f);
}
Aggregations