Node icon = iconPresenter.provideIcon(controller, configuration, forData); if (icon != null) { iconContainer.getChildren().clear();
/** * @{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 icon = iconPresenter.provideIcon(controller, configuration, forData); if (icon != null) { treeItemIconContainer.getChildren().clear();
Node icon = iconPresenter.provideIcon(controller, configuration, forData); if (icon != null) { iconContainer.getChildren().clear();
Node icon = iconPresenter.provideIcon(controller, configuration, forData); if (icon != null) { iconContainer.getChildren().clear();
Node icon = iconPresenter.provideIcon(controller, configuration, forData); if (icon != null) { iconContainer.getChildren().clear();
iconContainer.setVisible(iconPresenter != null); if (iconPresenter != null) { Node icon = iconPresenter.provideIcon(controller, configuration, forData); if (icon != null) { iconContainer.getChildren().clear();
Node icon = iconProvider.provideIcon(controller, configuration); iconContainer.getChildren().add(icon);
/** * @{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 icon = iconPresenter.provideIcon(controller, configuration, forData); if (icon != null) { iconContainer.getChildren().clear();
Node icon = presenter.getIconPresenter().provideIcon((IEmaginController) controller, configuration, userData); if (icon != null) { iconContainer.getChildren().clear();
Node icon = presenter.getIconPresenter().provideIcon((IEmaginController) controller, configuration, model); if (icon != null) { iconContainer.getChildren().clear();
Node icon = presenter.getIconPresenter().provideIcon(controller, configuration, model); if (icon != null) { iconContainer.getChildren().clear();
Node icon = presenter.getIconPresenter().provideIcon((IEmaginController) controller, configuration, model); if (icon != null) { iconContainer.getChildren().clear();