本文整理汇总了Java中com.haulmont.cuba.web.toolkit.ui.CubaVerticalActionsLayout类的典型用法代码示例。如果您正苦于以下问题:Java CubaVerticalActionsLayout类的具体用法?Java CubaVerticalActionsLayout怎么用?Java CubaVerticalActionsLayout使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CubaVerticalActionsLayout类属于com.haulmont.cuba.web.toolkit.ui包,在下文中一共展示了CubaVerticalActionsLayout类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createLayout
import com.haulmont.cuba.web.toolkit.ui.CubaVerticalActionsLayout; //导入依赖的package包/类
@Override
protected ComponentContainer createLayout() {
rootLayout = new CubaVerticalActionsLayout();
rootLayout.setStyleName("c-lookup-window-wrapper");
rootLayout.setSizeFull();
rootLayout.setSpacing(true);
container = new VerticalLayout();
container.setStyleName(C_WINDOW_LAYOUT);
container.setSizeFull();
rootLayout.addComponent(container);
rootLayout.setExpandRatio(container, 1);
return rootLayout;
}
示例2: WebScrollBoxLayout
import com.haulmont.cuba.web.toolkit.ui.CubaVerticalActionsLayout; //导入依赖的package包/类
public WebScrollBoxLayout() {
component = new CubaScrollBoxLayout();
component.setWidth("100%");
component.setPrimaryStyleName(SCROLLBOX_STYLENAME);
CubaVerticalActionsLayout content = new CubaVerticalActionsLayout();
content.setWidth("100%");
content.setStyleName(SCROLLBOX_CONTENT_STYLENAME);
component.addComponent(content);
getContent().setMargin(false);
}
示例3: WebGroupBox
import com.haulmont.cuba.web.toolkit.ui.CubaVerticalActionsLayout; //导入依赖的package包/类
public WebGroupBox() {
component = new CubaGroupBox();
component.addStyleName(GROUPBOX_PANEL_STYLENAME);
component.setExpandChangeHandler(this::fireExpandStateChange);
CubaVerticalActionsLayout container = new CubaVerticalActionsLayout();
container.setStyleName("c-groupbox-inner");
component.setContent(container);
}
示例4: updateSummaryColumn
import com.haulmont.cuba.web.toolkit.ui.CubaVerticalActionsLayout; //导入依赖的package包/类
protected void updateSummaryColumn() {
summaryBox.removeAll();
CubaVerticalActionsLayout summaryLayout = (CubaVerticalActionsLayout) WebComponentsHelper.unwrap(summaryBox);
CubaVerticalActionsLayout summaryCaptionVbox = new CubaVerticalActionsLayout();
summaryCaptionVbox.setHeight("30px");
summaryCaptionVbox.setWidth("100%");
com.vaadin.ui.Label summaryCaption = new com.vaadin.ui.Label();
summaryCaption.setContentMode(ContentMode.HTML);
summaryCaption.setValue(getMessage("label.summaryCaption"));
summaryCaption.setWidthUndefined();
summaryCaptionVbox.addComponent(summaryCaption);
summaryCaptionVbox.setComponentAlignment(summaryCaption, com.vaadin.ui.Alignment.MIDDLE_CENTER);
summaryLayout.addComponent(summaryCaptionVbox);
FactAndPlan[] summariesByWeeks = calculateSummariesByWeeks();
FactAndPlan summaryForMonth = new FactAndPlan();
for (int i = 1; i < summariesByWeeks.length; i++) {
com.vaadin.ui.Label hourLabel = new com.vaadin.ui.Label();
hourLabel.setContentMode(ContentMode.HTML);
FactAndPlan summaryForTheWeek = summariesByWeeks[i];
if (summaryForTheWeek == null) {
summaryForTheWeek = new FactAndPlan();
}
if (summaryForTheWeek.isMatch()) {
hourLabel.setValue(formatMessage("label.hoursSummary",
summaryForTheWeek.fact.getHours(), summaryForTheWeek.fact.getMinutes()));
} else {
hourLabel.setValue(formatMessage("label.hoursSummaryNotMatch",
summaryForTheWeek.fact.getHours(), summaryForTheWeek.fact.getMinutes(),
summaryForTheWeek.plan.getHours(), summaryForTheWeek.plan.getMinutes()));
hourLabel.addStyleName("overtime");
}
hourLabel.setWidthUndefined();
summaryLayout.addComponent(hourLabel);
summaryLayout.setExpandRatio(hourLabel, 1);
summaryLayout.setComponentAlignment(hourLabel, com.vaadin.ui.Alignment.MIDDLE_CENTER);
summaryForMonth.fact.add(summaryForTheWeek.fact);
summaryForMonth.plan.add(summaryForTheWeek.plan);
}
if (summaryForMonth.isMatch()) {
monthSummary.setValue(formatMessage("label.monthSummaryFormat",
summaryForMonth.fact.getHours(), summaryForMonth.fact.getMinutes()));
monthSummary.setStyleName("month-summary");
} else {
monthSummary.setValue(formatMessage("label.monthSummaryFormatNotMatch",
summaryForMonth.fact.getHours(), summaryForMonth.fact.getMinutes(),
summaryForMonth.plan.getHours(), summaryForMonth.plan.getMinutes()));
monthSummary.setStyleName("month-summary-overtime");
}
}
示例5: WebVBoxLayout
import com.haulmont.cuba.web.toolkit.ui.CubaVerticalActionsLayout; //导入依赖的package包/类
public WebVBoxLayout() {
component = new CubaVerticalActionsLayout();
component.setWidth(100, Sizeable.Unit.PERCENTAGE);
}