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;
}
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();
}
Aggregations