當前位置: 首頁>>代碼示例>>Java>>正文


Java CubaVerticalActionsLayout類代碼示例

本文整理匯總了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;
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:17,代碼來源:WebWindow.java

示例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);
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:13,代碼來源:WebScrollBoxLayout.java

示例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);
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:10,代碼來源:WebGroupBox.java

示例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");
    }
}
 
開發者ID:cuba-platform,項目名稱:sample-timesheets,代碼行數:53,代碼來源:CalendarScreen.java

示例5: WebVBoxLayout

import com.haulmont.cuba.web.toolkit.ui.CubaVerticalActionsLayout; //導入依賴的package包/類
public WebVBoxLayout() {
    component = new CubaVerticalActionsLayout();
    component.setWidth(100, Sizeable.Unit.PERCENTAGE);
}
 
開發者ID:cuba-platform,項目名稱:cuba,代碼行數:5,代碼來源:WebVBoxLayout.java


注:本文中的com.haulmont.cuba.web.toolkit.ui.CubaVerticalActionsLayout類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。