当前位置: 首页>>代码示例>>Java>>正文


Java MMarginInfo类代码示例

本文整理汇总了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());
//        }

    }
 
开发者ID:IBM-Cloud,项目名称:onprem-integration-demo,代码行数:22,代码来源:AnalyzeView.java

示例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));
}
 
开发者ID:mstahv,项目名称:jpa-addressbook,代码行数:18,代码来源:PhoneBookEntryForm.java

示例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));
}
 
开发者ID:mstahv,项目名称:jpa-addressbook,代码行数:10,代码来源:PhoneBookGroupForm.java

示例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();
}
 
开发者ID:viritin,项目名称:viritin,代码行数:13,代码来源:Issue131.java

示例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);
}
 
开发者ID:MyCollab,项目名称:mycollab,代码行数:30,代码来源:ProjectActivityComponent.java

示例6: MainSettingsForm

import org.vaadin.viritin.layouts.MMarginInfo; //导入依赖的package包/类
public MainSettingsForm() {
    super("Основные настройки", lookup(UserSettingsService.class).loadMainSettings());
    setSizeFull();
    setMargin(new MMarginInfo(false, false, true, false));
}
 
开发者ID:ExtaSoft,项目名称:extacrm,代码行数:6,代码来源:MainSettingsForm.java


注:本文中的org.vaadin.viritin.layouts.MMarginInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。