@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; }
/** * {@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; }
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; 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())); } }
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"))) {
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();
Node cell = presenter.getIdentityPresenter().provideIdentityOf(controller, configuration, model); if (cell != null) { mainLabelContainer.getChildren().clear();
Node cell = presenter.getIdentityPresenter().provideIdentityOf((IEmaginController) controller, configuration, model); if (cell != null) { mainLabelContainer.getChildren().clear();