本文整理汇总了Java中org.vaadin.viritin.layouts.MMarginInfo类的典型用法代码示例。如果您正苦于以下问题:Java MMarginInfo类的具体用法?Java MMarginInfo怎么用?Java MMarginInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MMarginInfo类属于org.vaadin.viritin.layouts包,在下文中一共展示了MMarginInfo类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: enter
import org.vaadin.viritin.layouts.MMarginInfo; //导入依赖的package包/类
@Override
public void enter(ViewChangeListener.ViewChangeEvent viewChangeEvent) {
removeAllComponents();
setMargin(new MMarginInfo(false, true));
add(new Header("Employee analysis").setHeaderLevel(2));
List<Employee> employeeData = service.findAll();
add(ageDistribution(employeeData));
add(salaryDistribution(employeeData));
//final Component funnel = createStatusFunnel(employeeData);
final Component gender = genderDistribution(employeeData);
//if (ScreenSize.getScreenSize() == ScreenSize.SMALL) {
//addComponents(funnel, gender);
addComponents(gender);
// } else {
// //addComponent(new MHorizontalLayout(funnel, gender).withFullWidth());
// }
}
示例2: createContent
import org.vaadin.viritin.layouts.MMarginInfo; //导入依赖的package包/类
@Override
protected Component createContent() {
return new MVerticalLayout(
getToolbar(),
new MHorizontalLayout(
new MFormLayout(
name,
number,
email,
birthDate,
sendChristmasCard
).withMargin(false),
groupsGrid
),
addresses
).withMargin(new MMarginInfo(false, true));
}
示例3: createContent
import org.vaadin.viritin.layouts.MMarginInfo; //导入依赖的package包/类
@Override
protected Component createContent() {
return new MVerticalLayout(
new MFormLayout(
name
).withMargin(false),
getToolbar()
).withMargin(new MMarginInfo(false, true));
}
示例4: createContent
import org.vaadin.viritin.layouts.MMarginInfo; //导入依赖的package包/类
@Override
protected Component createContent() {
return new MVerticalLayout(
new MFormLayout(
newButton(),
new MHorizontalLayout(initials, middleName).
withCaption("Name"),
lastName
).withMargin(false).withFullWidth(),
getToolbar()
).withMargin(new MMarginInfo(false, true)).withFullWidth();
}
示例5: ProjectActivityComponent
import org.vaadin.viritin.layouts.MMarginInfo; //导入依赖的package包/类
public ProjectActivityComponent(String type, Integer extraTypeId) {
withMargin(false).withStyleName("activity-comp").withFullWidth();
this.type = type;
this.groupFormatter = AuditLogRegistry.getFieldGroupFormatterOfType(type);
headerLbl = new ELabel(UserUIContext.getMessage(GenericI18Enum.OPT_CHANGE_HISTORY, 0));
final OptionGroup sortDirection = new OptionGroup();
sortDirection.addStyleName("sortDirection");
String oldestFirstDirection = UserUIContext.getMessage(GenericI18Enum.OPT_OLDEST_FIRST);
final String newestFirstDirection = UserUIContext.getMessage(GenericI18Enum.OPT_NEWEST_FIRST);
sortDirection.addItems(newestFirstDirection, oldestFirstDirection);
sortDirection.setValue(newestFirstDirection);
sortDirection.addValueChangeListener(valueChangeEvent -> {
Object value = sortDirection.getValue();
isAscending = newestFirstDirection.equals(value);
displayActivities();
});
MHorizontalLayout headerPanel = new MHorizontalLayout().withMargin(true).withStyleName(WebThemes.FORM_SECTION)
.withFullWidth().with(headerLbl, sortDirection).withAlign(headerLbl, Alignment.MIDDLE_LEFT)
.withAlign(sortDirection, Alignment.MIDDLE_RIGHT);
commentBox = new ProjectCommentInput(this, type, extraTypeId);
activityBox = new MVerticalLayout().withMargin(new MMarginInfo(true, true, true, false));
this.with(headerPanel, commentBox, activityBox);
commentService = AppContextUtil.getSpringBean(CommentService.class);
auditLogService = AppContextUtil.getSpringBean(AuditLogService.class);
}
示例6: MainSettingsForm
import org.vaadin.viritin.layouts.MMarginInfo; //导入依赖的package包/类
public MainSettingsForm() {
super("Основные настройки", lookup(UserSettingsService.class).loadMainSettings());
setSizeFull();
setMargin(new MMarginInfo(false, false, true, false));
}