public void setCode(String code) { codeArea.clear(); codeArea.replaceText(0, 0, code); codeArea.showParagraphAtTop(0); resetDividerPosition(); }
public static <T extends Node> Optional<T> showAndWaitDialog(Window window, AppData appData, GseContext context, Class<T> filter, Class<?>... otherFilters) { return showAndWaitDialog(new TreeModelImpl(appData), window, appData, context, (node, treeModel) -> testNode(node, filter, otherFilters)); }
@Override public Node getMenuGraphic(ProjectFile file) { return Glyph.createAwesomeFont('\uf044').size("1.1em"); }
@Override public Node getMenuGraphic(ContingencyStore store) { return Glyph.createAwesomeFont('\uf0e7'); }
@Override public Node getMenuGraphic(ProjectFile file) { return new Glyph("NetworkExplorerFont", '\ue804'); }
@Override public void select(int start, int end) { selectRange(start, end); showParagraphAtTop(getCurrentParagraph()); }
private void accepTransferDrag(Folder folder, boolean s) { success = s; if (getCounter() >= 1) { GseAlerts.showDraggingError(); } else if (getCounter() < 1) { Project monfichier = (Project) dragAndDropMove.getSource(); monfichier.moveTo(folder); success = true; } }
public static <T extends Node> Optional<T> showAndWaitDialog(Window window, AppData appData, GseContext context, BiPredicate<Node, TreeModel<Node, File, Folder>> filter) { return showAndWaitDialog(new TreeModelImpl(appData), window, appData, context, filter); }
@Override public BooleanBinding okProperty() { return nameTextField.okProperty(); }
@Override public Optional<ProjectFolder> showCreateFolderDialog(Window window, ProjectFolder parent) { return NewFolderPane.showAndWaitDialog(window, parent); } }
public NodeSelectionPane(AppData data, String label, boolean mandatory, Window window, GseContext context, Class<T> filter, Class<?>... otherFilters) { super(label, () -> NodeChooser.showAndWaitDialog(window, data, context, filter, otherFilters), mandatory, context); } }
@Override public Node getContent() { nameTextField.setText(""); return this; }
public ObservableValue<String> codeProperty() { return codeArea.textProperty(); }
@Override public Node getMenuGraphic(SecurityAnalysisRunner runner) { return Glyph.createAwesomeFont('\uf132'); }
public static <T extends Node> Optional<T> showAndWaitDialog(Window window, AppData appData, GseContext context, Class<T> filter, Set<String> openedProjectsList, Class<?>... otherFilters) { return showAndWaitDialog(new TreeModelImpl(appData), window, appData, context, (node, treeModel) -> testNode(node, filter, otherFilters), openedProjectsList); }
public static Glyph createZocial(char c) { return new Glyph("zocial", c); } }
@Override public Optional<Folder> showCreateFolderDialog(Window window, Folder parent) { return NewFolderPane.showAndWaitDialog(window, parent); } }
public ProjectNodeSelectionPane(Project project, String label, boolean mandatory, Window window, GseContext context, Class<T> filter, Class<?>... otherFilters) { super(label, () -> NodeChooser.showAndWaitDialog(project, window, context, filter, otherFilters), mandatory, context); } }