protected void toggleSidePanel() { if (sidePanel != null) { if (sidePanel.getStyleName().contains(HaloTheme.SIDEMENU_PANEL_OPEN)) { sidePanel.removeStyleName(HaloTheme.SIDEMENU_PANEL_OPEN); } else { sidePanel.addStyleName(HaloTheme.SIDEMENU_PANEL_OPEN); } } }
paramEditComponentCellContent.addStyleName("param-field-layout"); grid.add(paramEditComponentCellContent, nextColumnStart * 2 + 1, row, nextColumnEnd * 2 + 1, row);
public void createParamEditLayout() { if (paramEditComponentLayout == null){ paramEditComponentLayout = uiComponents.create(HBoxLayout.class); paramEditComponentLayout.setSpacing(true); paramEditComponentLayout.setWidthFull(); } paramEditComponent = condition.getParam().createEditComponent(Param.ValueProperty.VALUE); paramEditComponent.addStyleName("param-field"); if (paramEditComponent instanceof Field) { ((Field) paramEditComponent).setRequired(condition.getRequired()); } paramEditComponentLayout.add(paramEditComponent); removeButton = uiComponents.create(LinkButton.class); removeButton.setStyleName("condition-remove-btn"); removeButton.setIcon("icons/item-remove.png"); removeButton.setAlignment(Alignment.MIDDLE_LEFT); removeButton.setVisible(removeButtonVisible); removeButton.setAction(removeButtonAction); paramEditComponentLayout.add(removeButton); if (paramEditComponentExpandRequired(condition)) { paramEditComponentLayout.expand(paramEditComponent); } else { HBoxLayout spring = uiComponents.create(HBoxLayout.class); paramEditComponentLayout.add(spring); paramEditComponentLayout.expand(spring); } }