public WebVBoxLayout() { component = new CubaVerticalActionsLayout(); component.setWidth(100, Sizeable.Unit.PERCENTAGE); }
protected AbstractOrderedLayout createLayout() { CubaVerticalActionsLayout layout = new CubaVerticalActionsLayout(); layout.setStyleName(C_WINDOW_LAYOUT); layout.setSizeFull(); layout.addActionHandler(actionsHolder); return layout; }
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); }
public CubaGroupBox() { registerRpc((CubaGroupBoxServerRpc) expanded -> { if (getState().collapsable) { setExpanded(expanded, true); } }); Layout content = new CubaVerticalActionsLayout(); setContent(content); setWidth(100, Unit.PERCENTAGE); }
public WebScrollBoxLayout() { component = new CubaScrollBoxLayout(); component.setWidth(100, Sizeable.Unit.PERCENTAGE); component.setPrimaryStyleName(SCROLLBOX_STYLENAME); CubaVerticalActionsLayout content = new CubaVerticalActionsLayout(); content.setWidth(100, Sizeable.Unit.PERCENTAGE); content.setStyleName(SCROLLBOX_CONTENT_STYLENAME); component.addComponent(content); getContent().setMargin(false); }
protected CubaVerticalActionsLayout createFoldersPaneLayout(Component foldersPane, Label foldersLabel) { CubaVerticalActionsLayout layout = new CubaVerticalActionsLayout(); layout.setMargin(true); layout.setSpacing(true); layout.setSizeFull(); if (foldersLabel != null) addFoldersLabel(layout, foldersLabel); layout.addComponent(foldersPane); layout.setExpandRatio(foldersPane, 1); layout.addShortcutListener( new ShortcutListenerDelegate("apply" + foldersPane.getCubaId(), ShortcutAction.KeyCode.ENTER, null) .withHandler((sender, target) -> { if (sender == layout) { handleFoldersPaneShortcutAction(foldersPane); } })); return layout; }
newContent = new CubaVerticalActionsLayout(); } else if (orientation == Orientation.HORIZONTAL && !(component.getContent() instanceof CubaHorizontalActionsLayout)) { newContent = new CubaHorizontalActionsLayout();
newContent = new CubaVerticalActionsLayout(); newContent.setWidth(100, Sizeable.Unit.PERCENTAGE); } else if (orientation == Orientation.HORIZONTAL && !(getContent() instanceof CubaHorizontalActionsLayout)) {