/** * Resolve the model with the given identifier. * * @param controller * @param id * @return VLViewComponentXML */ public static Optional<VLViewComponentXML> resolveOptionalModel(AbstractViewController controller, String id) { VLViewComponentXML componentXML = resolveModel(controller, id); if (componentXML == null) { return Optional.empty(); } return Optional.of(componentXML); }
/** * @{inheritedDoc} */ @Override public void initFromConfiguration(IEmaginController controller, VLViewComponentXML listConfiguration) { dataKey = listConfiguration.getPropertyValue("dataKey"); rootData = ComponentUtils.resolveModel((AbstractViewController) controller, dataKey); }
protected Node buildGroup(AbstractViewController controller, VLViewComponentXML groupConfig) { Node actionNode = null; // The action node String actionNodeId = groupConfig.getPropertyValue("actionNode"); VLViewComponentXML resolved = ComponentUtils.resolveModel(controller, actionNodeId); VBox wrapper = new VBox(); if (resolved != null) { actionNode = ComponentUtils.build(controller, resolved).getDisplay(); if (actionNode != null) { wrapper.getChildren().addAll(actionNode); } } return wrapper; }
VLViewComponentXML rightActions = ComponentUtils.resolveModel((AbstractViewController) controller, "CellRightActions"); if (rightActions != null) { Node actions = ViewActionFactory.viewActions((AbstractViewController) controller, rightActions, forData);
VLViewComponentXML rightActions = ComponentUtils.resolveModel((AbstractViewController) controller, "CellRightActions"); if (rightActions != null) { Node actions = ViewActionFactory.viewActions((AbstractViewController) controller, rightActions, forData);
VLViewComponentXML rightActions = ComponentUtils.resolveModel((AbstractViewController) controller, "CellRightActions"); if (rightActions != null) { Node actions = ViewActionFactory.viewActions((AbstractViewController) controller, rightActions, forData);
VLViewComponentXML rightActions = ComponentUtils.resolveModel((AbstractViewController) controller, "CellRightActions"); if (rightActions != null) { Node actions = ViewActionFactory.viewActions((AbstractViewController) controller, rightActions, forData); VLViewComponentXML moreActions = ComponentUtils.resolveModel((AbstractViewController) controller, "CellMiddleActions"); if (moreActions != null) { Node actions = ViewActionFactory.viewActions((AbstractViewController) controller, moreActions, forData);
VLViewComponentXML rightActions = ComponentUtils.resolveModel((AbstractViewController) controller, "CellRightActions"); if (rightActions != null) { Node actions = ViewActionFactory.viewActions((AbstractViewController) controller, rightActions, forData);
if ((mtButtonCfg != null) && mtButtonCfg.hasSubComponent()) { VLViewComponentXML mtButtonCfgRef = mtButtonCfg.getSubcomponents().get(0); VLViewComponentXML resolved = ComponentUtils.resolveModel((AbstractViewController) controller, mtButtonCfgRef.getReference()); if (resolved != null) { Node button = ComponentUtils.buildMaterialButton((AbstractViewController) controller, resolved);
final VLViewComponentXML rightActions = ComponentUtils.resolveModel((AbstractViewController) controller, "CellRightActions"); rightActionsContainer.managedProperty().bind(Bindings.isNotEmpty(rightActionsContainer.getChildren())); if (rightActions != null) { final VLViewComponentXML moreActions = ComponentUtils.resolveModel((AbstractViewController) controller, "CellMiddleActions"); quickActionsContainer.managedProperty().bind(Bindings.isNotEmpty(quickActionsContainer.getChildren())); if (moreActions != null) {
protected Node buildGroup(AbstractViewController controller, VLViewComponentXML groupConfig) { Label message = new Label(); message.setWrapText(true); message.getStyleClass().addAll(labelStyleClass.split(",")); String lbl = groupConfig.getPropertyValue("message"); if(StringUtils.isNotBlank(lbl)) { String msg = controller.getLocalised(lbl); message.setText(msg); } IconUtils.setIcon(message, groupConfig); message.setContentDisplay(ContentDisplay.TOP); Node actionNode = null; // The action node String actionNodeId = groupConfig.getPropertyValue("actionNode"); VLViewComponentXML resolved = ComponentUtils.resolveModel(controller, actionNodeId); VBox wrapper = new VBox(); wrapper.getChildren().addAll(message); wrapper.getStyleClass().add("no-content-pane-group"); if (resolved != null) { actionNode = ComponentUtils.build(controller, resolved).getDisplay(); if (actionNode != null) { wrapper.getChildren().addAll(actionNode); } } return wrapper; }
VLViewComponentXML rightActions = ComponentUtils.resolveModel(controller, "CellRightActions"); if (rightActions != null) { Node actions = ViewActionFactory.viewActions(controller, rightActions, model); VLViewComponentXML moreActions = ComponentUtils.resolveModel(controller, "CellMiddleActions"); if (moreActions != null) { Node actions = ViewActionFactory.viewActions(controller, moreActions, model);