@Override public Node getDisplayIdentity() { if(identityPresenter != null) { Node node = identityPresenter.provideIdentityOf(this, getRootComponent()); return node; } OperationData data = getOpData(); Label identity = new Label("Structure of " + data.getMasterAttributes().get("name")); identity.setStyle("-fx-text-fill:white;-fx-font-size:12px;"); return identity; }
/** * @{inheritedDoc} */ @Override public String getIdentity() { if (presenter.getIdentityPresenter() != null) { final String identity = presenter.getIdentityPresenter().identityOf(controller, configuration); return identity; } return null; }
/** * {@inheritDoc} */ @Override public Node getHeaderIdentity() { ModelIdentityPresenter realpresenter = null; if (presenter.getHeaderIdentityProvider() != null) { realpresenter = presenter.getHeaderIdentityProvider(); } if (realpresenter == null) { realpresenter = presenter.getIdentityPresenter(); } if (realpresenter != null) { final Node identity = realpresenter.provideIdentityOf(controller, configuration); return identity; } return null; }
/** * @{inheritedDoc} */ @Override public String getIdentity() { if (presenter.getIdentityPresenter() != null) { String identity = presenter.getIdentityPresenter().identityOf((IEmaginController) controller, configuration); return identity; } return null; }
Node cell = identityPresenter.provideIdentityOf(controller, configuration, forData); if (cell != null) { if (StringUtils.isNotBlank(extraParameters.get("mainLabelStyleClass"))) {
/** * @{inheritedDoc} */ @Override public String getIdentity() { if (presenter.getIdentityPresenter() != null) { String identity = presenter.getIdentityPresenter().identityOf((IEmaginController) controller, configuration); return identity; } return null; }
/** * @{inheritedDoc} */ @Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { this.configuration = configuration; this.controller = (AbstractViewController) controller; if (presenter.getIconPresenter() != null) { Node icon = presenter.getIconPresenter().provideIcon(controller, configuration); iconContainer.getChildren().add(icon); } if (presenter.getLocationPresenter() != null) { Node location = presenter.getLocationPresenter().provideCurrentLocationOf(controller, configuration); locationContainer.getChildren().add(location); } if (presenter.getIdentityPresenter() != null) { Node identity = presenter.getIdentityPresenter().provideIdentityOf(controller, configuration); identityContainer.getChildren().add(identity); } // build header actions VLViewComponentXML actionsConfig = configuration.getComponentById("HeaderActions").orElse(null); if (actionsConfig != null) { Optional<AbstractToolbar> optional = ToolbarUtils.buildToolbar((AbstractViewController) controller, this); optional.ifPresent(t -> actionsContainer.getChildren().add(t.getDisplay())); } }
/** * @{inheritedDoc} */ @Override public Node provideIcon(IEmaginController controller, VLViewComponentXML configuration, Object forModel) { final StackPane graphic = new StackPane(); graphic.setAlignment(Pos.CENTER); graphic.getChildren().addAll(label); label.getStyleClass().add("item-initial-circle-icon-label"); if (getIdentityPresenter() != null) { String allidentity = getIdentityPresenter().identityOf(controller, configuration, forModel); String processInitialFromIdentity = processInitialFromIdentity(allidentity, controller, configuration); if (StringUtils.isNotBlank(processInitialFromIdentity)) { label.setText(processInitialFromIdentity); } } else { label.setText("AN0".substring(0, getCaractersToDisplay())); } processColoration(graphic); return graphic; }
Node cell = identityPresenter.provideIdentityOf(controller, configuration, forData); if (cell != null) { if (StringUtils.isNotBlank(extraParameters.get("mainLabelStyleClass"))) {
/** * @{inheritedDoc} */ @Override public void build(IInputComponentWrapper inputComponentWrapper) { super.build(inputComponentWrapper); String identityProvider = configuration.getPropertyValue(XMLConstants.IDENTITY_PROVIDER); if (StringUtils.isNotBlank(identityProvider)) { ModelIdentityPresenter provider = (ModelIdentityPresenter) Services.getBean(identityProvider); String identity = provider.identityOf((IEmaginController) controller, configuration); label.setText(identity); } // static style String styleClass = configuration.getPropertyValue(XMLConstants.STYLE_CLASS); if (StringUtils.isNotBlank(styleClass)) { String[] styles = styleClass.split(REGEX); label.getStyleClass().addAll(styles); } // dynamic styles String dynamicStyleClass = configuration.getPropertyValue(XMLConstants.STYLE_PROVIDER); if (StringUtils.isNotBlank(dynamicStyleClass)) { String[] styles = dynamicStyleClass.split(REGEX); label.getStyleClass().addAll(styles); } }
Node cell = identityPresenter.provideIdentityOf(controller, configuration, forData); if (cell != null) { if (StringUtils.isNotBlank(extraParameters.get("mainLabelStyleClass"))) {
/** * @{inheritedDoc} */ @Override public Node provideIcon(IEmaginController controller, VLViewComponentXML configuration) { final StackPane graphic = new StackPane(); graphic.setAlignment(Pos.CENTER); graphic.getChildren().addAll(label); label.getStyleClass().add("item-initial-circle-icon-label"); if (getIdentityPresenter() != null) { String allidentity = getIdentityPresenter().identityOf(controller, configuration); String processInitialFromIdentity = processInitialFromIdentity(allidentity, controller, configuration); if (StringUtils.isNotBlank(processInitialFromIdentity)) { label.setText(processInitialFromIdentity); } processColoration(graphic); } return graphic; }
Node cell = identityPresenter.provideIdentityOf(controller, configuration, forData); if (cell != null) { if (StringUtils.isNotBlank(extraParameters.get("mainLabelStyleClass"))) {
/** * @{inheritedDoc} */ @Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { this.configuration = configuration; this.controller = (AbstractViewController) controller; NodeHelper.loadFXML(getFXMLLocation(), this); if (presenter.getIconPresenter() != null) { // Node icon = presenter.getIconPresenter().provideIcon(controller, // configuration); // iconContainer.getChildren().add(icon); } if (presenter.getLocationPresenter() != null) { Node location = presenter.getLocationPresenter().provideCurrentLocationOf(controller, configuration); locationContainer.getChildren().add(location); } if (presenter.getIdentityPresenter() != null) { Node identity = presenter.getIdentityPresenter().provideIdentityOf(controller, configuration); identityContainer.getChildren().add(identity); } // build actions VLViewComponentXML actionsConfig = configuration.getComponentById("Actions").orElse(null); if (actionsConfig != null) { Optional<AbstractToolbar> optional = ToolbarUtils.buildToolbar((AbstractViewController) controller, this); optional.ifPresent(t -> actionsContainer.getChildren().add(t.getDisplay())); } init(); }
Node cell = identityPresenter.provideIdentityOf(controller, configuration, forData); if (cell != null) { if (StringUtils.isNotBlank(extraParameters.get("mainLabelStyleClass"))) {
Node cell = identityPresenter.provideIdentityOf(controller, configuration, forData); if (cell != null) { if (StringUtils.isNotBlank(extraParameters.get("mainLabelStyleClass"))) {
/** * @{inheritedDoc} */ @Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { this.configuration = configuration; this.controller = (AbstractViewController) controller; identityContainer.managedProperty().bind(Bindings.isNotEmpty(identityContainer.getChildren())); if (presenter.getIdentityPresenter() != null) { final Node identity = presenter.getIdentityPresenter().provideIdentityOf(controller, configuration); identityContainer.getChildren().add(identity); } // set icon container to null to hide this iconContainer.managedProperty().bind(Bindings.isNotEmpty(iconContainer.getChildren())); if (presenter.getIconPresenter() != null) { final Node icon = presenter.getIconPresenter().provideIcon(controller, configuration); iconContainer.getChildren().add(icon); } // build actions final VLViewComponentXML actionsConfig = configuration.getComponentById("HeaderActions").orElse(null); if (actionsConfig != null) { // !! TODO CORRECT THIS // BUILD WITH WRONG CONFIGURATION FILE, /* * Optional<AbstractToolbar> optional = ToolbarUtils.buildToolbar(controller, this); * optional.ifPresent(t -> actionsContainer.getChildren().add(t.getDisplay())); */ } }
final Node cell = identityPresenter.provideIdentityOf(controller, configuration, forData); if (cell != null) { if (StringUtils.isNotBlank(extraParameters.get("mainLabelStyleClass"))) {
Node cell = presenter.getIdentityPresenter().provideIdentityOf((IEmaginController) controller, configuration, userData); if (cell != null) { mainLabelContainer.getChildren().clear();
Node cell = presenter.getIdentityPresenter().provideIdentityOf((IEmaginController) controller, configuration, model); if (cell != null) { mainLabelContainer.getChildren().clear();