/** * @{inheritedDoc} */ @Override public Node present(IEmaginController controller, VLViewComponentXML configuration, Object item) { IconUtils.setFontIcon("mdi-more-horiz:20", ellipsis); ellipsis.getStyleClass().add("ep-table-ellipsis-h-actions"); return ellipsis; } }
protected void unsupported() { Label label = new Label("Unsupported content format"); IconUtils.setFontIcon("hws-document-error:80", label); layout.getChildren().add(label); } }
private void paginate(int currentIndex) { pagination.getChildren().clear(); for (int i = 0; i < content.size(); i++) { Label indicator = new Label(); pagination.getChildren().add(indicator); if (currentIndex == i) { IconUtils.setFontIcon("fa-circle:14", indicator); } else { IconUtils.setFontIcon("fa-circle-o:14", indicator); } } }
protected void unsupported() { Label label = new Label("Unsupported content format"); IconUtils.setFontIcon("hws-document-error:80", label); layout.getChildren().add(label); } }
/** * Default Constructor */ public FullTableEditorPane() { getStyleClass().add("ep-full-table-editor-pane"); // header.getStyleClass().add("ep-full-table-editor-pane-header"); IconUtils.setFontIcon("fa-rotate-left:16", closeAction); closeAction.addEventFilter(ActionEvent.ACTION, this::popContent); closeAction.getStyleClass().add("button-transparent"); IconUtils.setFontIcon("fa-angle-double-down:22", minimizeAction); minimizeAction.addEventFilter(ActionEvent.ACTION, this::minimizePushedContent); minimizeAction.getStyleClass().add("button-transparent"); }
private void displayEmptyThumb() { final Label label = new Label(); String thumb = NO_THUMB.concat(":").concat(String.valueOf(getIconSize())); IconUtils.setFontIcon(thumb, label); Platform.runLater(() -> { content.getChildren().add(label); }); }
/** * @{inheritedDoc} */ @Override public Node present(IEmaginController controller, VLViewComponentXML configuration, Object item) { final OperationData opd = (OperationData) item; final String mimetype = (String) opd.getAttributes().get("mimeType"); final Label label = new Label(); IconUtils.setFontIcon(MimeTyPeUtils.getFontIcon(mimetype, "20"), label); return label; } }
private void initMaterialButton() { materialNode = new Button(); IconUtils.setFontIcon("fa-plus-circle:70", materialNode); materialNode.getStyleClass().add("button-material"); controller.getRootStructure().setMaterialNode(materialNode); }
@Override public Node provideIcon(IEmaginController controller, VLViewComponentXML configuration, Object forModel) { OperationData d = (OperationData) forModel; if(d != null) { String ikonli = (String) d.getAttributes().get("ikonli"); if(StringUtils.isNotBlank(ikonli)) { Label icon = new Label(); IconUtils.setFontIcon(ikonli, icon); icon.getGraphic().getStyleClass().add("grey-clear-ikonli"); graphic.getChildren().clear(); graphic.getChildren().add(icon); } } return graphic; }
private void displayThumb() { if (contentInfo.getData() != null) { try { final String mimetype = (String) contentInfo.getData().getAttributes().get("mimeType"); final Label label = new Label(); IconUtils.setFontIcon(MimeTyPeUtils.getFontIcon(mimetype), label); Platform.runLater(() -> { content.getChildren().add(label); }); } catch (final Exception e) { // e.printStackTrace(); displayEmptyThumb(); } } else { displayEmptyThumb(); } }
public static Node headerMessage(String message, String icon) { HBox messagebox = new HBox(); messagebox.setStyle("-fx-spacing: 16;-fx-alignment:CENTER"); Label mss = new Label(message); mss.getStyleClass().add("ep-header-message"); Label ic = new Label(); if(StringUtils.isNotBlank(icon)) { IconUtils.setFontIcon(icon, ic); ic.getGraphic().getStyleClass().add("white-ikonli"); } messagebox.getChildren().addAll(ic, mss); return messagebox; }
/** * @{inheritedDoc} */ @Override public Node present(IEmaginController controller, VLViewComponentXML configuration, Object item) { IconUtils.setFontIcon("fa-sitemap:18", action); action.getStyleClass().addAll("ep-table-forward-to-structure-actions"); action.getGraphic().getStyleClass().addAll("grey-flat-ikonli"); action.addEventFilter(ActionEvent.ACTION, ev -> { final Optional<VLViewComponentXML> actionComponent = configuration.getComponentById("Handler"); actionComponent.ifPresent(e -> setButtonActions((AbstractViewController) controller, e, item)); }); return action; }
/** * Build done button */ private void buildDoneButton() { doneButton.getStyleClass().addAll("button-small", "table-toolbar-action", "ep-button"); doneButton.setOnAction(e -> modifyClicked(controller)); doneButton.setText(controller.getGLocalised("DONE_LABEL").toUpperCase()); IconUtils.setFontIcon("fa-check:16", doneButton); modifyingActionsWrapper.getChildren().addAll(NodeHelper.horizontalSpacer(), doneButton); }
/** * @{inheritedDoc} */ @Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { if (!builded) { super.buildFrom(controller, configuration); IconUtils.setFontIcon("mdi-chevron-right:22", action); graphic.getChildren().addAll(label, NodeHelper.horizontalSpacer(), value, action); graphic.addEventFilter(MouseEvent.MOUSE_CLICKED, this); graphic.getStyleClass().add("hand-hover"); builded = true; graphic.setAlignment(Pos.CENTER_LEFT); value.setAlignment(Pos.CENTER_LEFT); value.getChildren().add(getCurrentValueDisplay()); } }
/** * {@inheritDoc} */ @Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { getChildren().add(pane); getStyleClass().add("simple-forward-editor-header-external-wrapper"); pane.getStyleClass().add("simple-forward-editor-header"); backButton.getStyleClass().addAll("rounded-primary-button-button", "transparent-focus"); doneDutton.getStyleClass().addAll("rounded-primary-button-button", "transparent-focus"); backButton.setText(controller.getGLocalised("BACK_LABEL")); doneDutton.setText(controller.getGLocalised("DONE_LABEL")); IconUtils.setFontIcon("fa-long-arrow-left:10", backButton); IconUtils.setFontIcon("fa-check:10", doneDutton); pane.getChildren().addAll(backButton, NodeHelper.horizontalSpacer(), doneDutton); backButton.setOnAction(e -> onCancel()); doneDutton.setOnAction(e -> onOk()); }
private void buildNonFloatingRightActionsButton() { popOverFloatingPane.managedProperty().bind(popOverFloatingPane.visibleProperty()); showRightPaneButton.managedProperty().bind(showRightPaneButton.visibleProperty()); hideRightPaneButton.managedProperty().bind(hideRightPaneButton.visibleProperty()); showRightPaneButton.visibleProperty().bind(Bindings.not(hideRightPaneButton.visibleProperty())); IconUtils.setFontIcon("fa-angle-double-left:20", showRightPaneButton); showRightPaneButton.getGraphic().getStyleClass().add("grey-ikonli"); showRightPaneButton.getStyleClass().add("transparent-focus"); showRightPaneButton.setOnAction(e -> { openRightPane(); }); IconUtils.setFontIcon("fa-angle-double-right:20", hideRightPaneButton); hideRightPaneButton.getGraphic().getStyleClass().add("grey-ikonli"); hideRightPaneButton.getStyleClass().add("transparent-focus"); hideRightPaneButton.setOnAction(e -> { closeRightPane(); }); }
/** * Build the modify button. */ private void buildModifyButton() { modifyButton.getStyleClass().addAll("table-toolbar-action", "ep-button"); modifyButton.setOnAction(e -> modifyClicked(controller)); modifyButton.setText(controller.getGLocalised("EDIT_LABEL").toUpperCase()); IconUtils.setFontIcon("gmi-more-horiz:18", modifyButton); allOverWrapper.getChildren().add(modifyButton); if (selectable.get()) { //thickButton.setOnAction(e -> thickClicked()); //modifyingActionsWrapper.getChildren().add(0, thickButton); } NodeHelper.setHgrow(modifyingActionsWrapper); modifyingActionsWrapper.visibleProperty().bind(((IModifiableToolbarHolder) toolbarHolder).modifyingProperty()); modifyingActionsWrapper.managedProperty().bind(modifyingActionsWrapper.visibleProperty()); rootContainer.getChildren().add(modifyingActionsWrapper); }
/** * @return */ protected ButtonBase getPinOrCloseButton() { Hyperlink button = new Hyperlink(); IconUtils.setFontIcon("mdi-close:22", button); button.getGraphic().getStyleClass().addAll("red-ikonli", "transparent-focus"); button.setContentDisplay(ContentDisplay.GRAPHIC_ONLY); button.setOnAction(e -> { CloseMenuEvent closeMenuEvent = new CloseMenuEvent(MenuPos.TERNARY_MENU); dispatchEvent(closeMenuEvent); }); return button; } }
private void buildNonFloatingRightActionsButton() { popOverFloatingPane.managedProperty().bind(popOverFloatingPane.visibleProperty()); showRightPaneButton.managedProperty().bind(showRightPaneButton.visibleProperty()); hideRightPaneButton.managedProperty().bind(hideRightPaneButton.visibleProperty()); showRightPaneButton.visibleProperty().bind(Bindings.not(hideRightPaneButton.visibleProperty())); IconUtils.setFontIcon("fa-angle-double-left:20", showRightPaneButton); showRightPaneButton.setOnAction(e -> { openRightPane(); }); IconUtils.setFontIcon("fa-angle-double-right:20", hideRightPaneButton); hideRightPaneButton.setOnAction(e -> { closeRightPane(); }); }
/** * Constructor */ public AdminStaticIconPresenter() { graphic.minHeightProperty().bind(graphic.prefHeightProperty()); graphic.minWidthProperty().bind(graphic.prefWidthProperty()); graphic.maxHeightProperty().bind(graphic.prefHeightProperty()); graphic.maxWidthProperty().bind(graphic.prefWidthProperty()); graphic.setPrefWidth(42); graphic.setPrefHeight(42); Label icon = new Label(); IconUtils.setFontIcon("fa-gears:30", icon); icon.getGraphic().getStyleClass().add("grey-clear-ikonli"); graphic.setAlignment(Pos.CENTER); graphic.getChildren().add(icon); graphic.setStyle("-fx-background-color:-grey-color-50;-fx-border-radius:10;" + "-fx-background-radius:10;"); }