本文整理匯總了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);
}