Search in sources :

Example 1 with CubaWindowVerticalLayout

use of com.haulmont.cuba.web.widgets.CubaWindowVerticalLayout in project cuba by cuba-platform.

the class WebWindow method createLayout.

protected AbstractOrderedLayout createLayout() {
    CubaWindowVerticalLayout layout = new CubaWindowVerticalLayout();
    layout.setStyleName(C_WINDOW_LAYOUT);
    layout.setSizeFull();
    layout.addActionHandler(actionsHolder);
    return layout;
}
Also used : CubaWindowVerticalLayout(com.haulmont.cuba.web.widgets.CubaWindowVerticalLayout)

Example 2 with CubaWindowVerticalLayout

use of com.haulmont.cuba.web.widgets.CubaWindowVerticalLayout in project cuba by cuba-platform.

the class ScreenDependencyUtils method findWindowVerticalLayout.

protected static Optional<CubaWindowVerticalLayout> findWindowVerticalLayout(FrameOwner frameOwner) {
    Window window = UiControllerUtils.getScreen(frameOwner).getWindow();
    Component vComponent = window.unwrap(Component.class);
    if (vComponent instanceof CubaWindowVerticalLayout) {
        return Optional.of(((CubaWindowVerticalLayout) vComponent));
    }
    return Optional.empty();
}
Also used : Window(com.haulmont.cuba.gui.components.Window) Component(com.vaadin.ui.Component) CubaWindowVerticalLayout(com.haulmont.cuba.web.widgets.CubaWindowVerticalLayout)

Aggregations

CubaWindowVerticalLayout (com.haulmont.cuba.web.widgets.CubaWindowVerticalLayout)2 Window (com.haulmont.cuba.gui.components.Window)1 Component (com.vaadin.ui.Component)1