/** * @{inheritedDoc} */ @Override public VLViewComponentXML getToolbarConfiguration() { Optional<VLViewComponentXML> bottomActions = configuration.getComponentById(BOTTOM_ACTIONS); VLViewComponentXML config = bottomActions.orElse(null); return config; }
/** * @{inheritedDoc} */ @Override public VLViewComponentXML getToolbarConfiguration() { return configuration.getComponentById("Actions").orElse(null); }
/** * @{inheritedDoc} */ @Override public VLViewComponentXML getToolbarConfiguration() { return configuration.getComponentById("Actions").orElse(null); }
/** * @{inheritedDoc} */ @Override public VLViewComponentXML getToolbarConfiguration() { return configuration.getComponentById("Actions").orElse(null); }
/** * @{inheritedDoc} */ @Override public VLViewComponentXML getToolbarConfiguration() { return configuration.getComponentById("Actions").orElse(null); }
/** * @param controller * @param modifiableToolbarHolder */ public void buildFrom(AbstractViewController controller, IToolbarHolder toolbarHolder) { this.controller = controller; this.toolbarHolder = toolbarHolder; this.configuration = toolbarHolder.getToolbarConfiguration(); // load subconfigrations this.ellypsisMenuConfiguration = configuration.getComponentById(ELLYPSISMENUACTIONS).orElse(null); this.modifyMenuConfiguration = configuration.getComponentById(MODIFYMENUACTIONS).orElse(null); this.rootMenuconfiguration = configuration.getComponentById(ROOTMENUACTIONS).orElse(null); }
protected void buildNoContentPane() { if (noContentPaneConfiguration == null) { noContentPaneConfiguration = getRootComponent().getComponentById("NoContentPane").orElse(null); } } }
/** * @{inheritedDoc} */ @Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { contentCfg = configuration.getComponentById("Content").orElse(null); NodeHelper.styleClassSetAll(this, contentCfg); }
/** * Read property mandatory from config of attribute * * @param attrConfig * @return */ public boolean isAttributeMandatory() { final VLViewComponentXML displayConfig = getComponentById("ValidationConfig").orElse(null); if (displayConfig != null) { return displayConfig.getBooleanProperty(XMLConstants.MANDATORY, false); } return false; }
/** * @{inheritedDoc} */ @Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { footerCfg = configuration.getComponentById("Footer").orElse(null); NodeHelper.styleClassSetAll(this, footerCfg); }
protected void buildHeaderEllipsysActions() { final VLViewComponentXML headerActions = blocConfig.getComponentById("HeaderEllipsysActions").orElse(null); if (headerActions != null) { final Node button = ToolbarUtils.ellipsisVActionsButton(headerActions, controller, null); internalLayout.getChildren().add(button); } }
public static void setOnAction(VLViewComponentXML component, ButtonBase buttonbase, AbstractViewController controller, OperationData item, Function<Object, Object> callback) { buttonbase.setOnAction(ev -> { final Optional<VLViewComponentXML> actionComponent = component.getComponentById(HANDLER_ID); actionComponent.ifPresent(e -> setButtonActions(controller, e, buttonbase, ev, item, callback)); }); }
public static void setOnAction(VLViewComponentXML component, ButtonBase buttonbase, AbstractViewController controller, OperationData item) { buttonbase.setOnAction(ev->{ final Optional<VLViewComponentXML> actionComponent = component.getComponentById(HANDLER_ID); actionComponent.ifPresent(e -> setButtonActions(controller, e, buttonbase, ev, item)); }); }
/** * @{inheritedDoc} */ @Override public Node present(IEmaginController controller, VLViewComponentXML configuration, Object item) { action.addEventFilter(ActionEvent.ACTION, ev -> { final Optional<VLViewComponentXML> actionComponent = configuration.getComponentById("Handler"); actionComponent.ifPresent(e -> setButtonActions((AbstractViewController) controller, e, item)); }); return action; }
@Override public Node process(IEmaginController controller, VLViewComponentXML contentCfg) { VLViewComponentXML noContentPaneConfig = contentCfg.getComponentById("NoContentPane").orElse(null); if (noContentPaneConfig != null) { INoContentPane nccp = NoContentPaneHelper.buildFrom((AbstractViewController) controller, noContentPaneConfig); return nccp.getDisplay(); } return new StackPane(); } }
public void buildHeader() { headerConfiguration = rootConfiguration.getComponentById("Header").orElse(null); String headerImpl = "ListViewPaneHeader"; if (headerConfiguration != null) { headerImpl = headerConfiguration.getPropertyValue("headerImpl", "ListViewPaneHeader"); header = (IBuildable) Services.getBean(headerImpl); header.buildFrom(controller, headerConfiguration); } }
public void buildTabs(VLViewComponentXML rootComponent) { VLViewComponentXML detailsViewTabs = rootComponent.getComponentById("DetailsViewTabs").orElse(null); if (detailsViewTabs != null && detailsViewTabs.hasSubComponent()) { for (VLViewComponentXML tabGroupConfig : detailsViewTabs.getSubcomponents()) { buildTabGroup(tabGroupConfig); } } // select first tab selectTab(0); }
protected void buildHeader() { VLViewComponentXML rootComp = controller.getRootComponent(); VLViewComponentXML header = rootComp.getComponentById("Header").orElse(null); if (header != null && header.hasSubComponent()) { List<IBuildable> buildables = ComponentUtils.resolveAndGenerate(controller, header.getSubcomponents()); for(IBuildable e: buildables) { maximizedMenu.getChildren().add(0, e.getDisplay()); } } }
protected void buildFooter() { VLViewComponentXML rootComp = controller.getRootComponent(); VLViewComponentXML footer = rootComp.getComponentById("Footer").orElse(null); maximizedMenu.getChildren().addAll(NodeHelper.verticalSpacer()); if (footer != null && footer.hasSubComponent()) { List<IBuildable> buildables = ComponentUtils.resolveAndGenerate(controller, footer.getSubcomponents()); for(IBuildable e: buildables) { maximizedMenu.getChildren().add(e.getDisplay()); } } }
/** * @{inheritedDoc} */ @Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { headerCfg = configuration.getComponentById(HEADER).orElse(null); if ((headerCfg != null) && StringUtils.isNotBlank(headerCfg.getPropertyValue(XMLConstants.TITLE))) { String title = headerCfg.getPropertyValue(XMLConstants.TITLE); this.title.setText(controller.getLocalised(title)); } NodeHelper.styleClassSetAll(this, headerCfg); NodeHelper.styleClassAddAll(title, headerCfg, "titleStyleClass"); }