@Override public ObservableList<Issue> getIssues() { return FXCollections.unmodifiableObservableList(issues); } }
/** * Creates a new ChoiceBoxItem. * <p> * The default choice will either be the first choice alternative, or the * alternative matching the current value of the property (if such as * alternative exists). Alternatives will get their name by calling toString() * on the objects in the list of alternatives * <p> * The property will bind to the ChoiceBox.valueProperty(). * * @param label the label text * @param value the property * @param alternatives list of alternatives in the choice box * @param tooltip the tooltip * @param decorator the editor decorator */ public ChoiceBoxItem( String label, Property<T> value, ObservableList<T> alternatives, String tooltip, UnaryOperator<Node> decorator) { super(label, tooltip, decorator); this.currentValue = value; this.alternatives = FXCollections.unmodifiableObservableList(alternatives); }
/** * Creates a new {@link PropertySheet} which will render a collection of * properties. * * @param properties the list of properties to render */ public PropertySheet(ObservableList<PropertyEditor.Item> properties) { requireNonNull(properties); this.properties = FXCollections.unmodifiableObservableList(properties); layout = new PropertyLayout(properties); setCenter(layout); this.properties.addListener((ListChangeListener.Change<? extends PropertyEditor.Item> c) -> { while (c.next()) { if (c.wasRemoved() && properties.isEmpty()) { layout.remove(); layout = new PropertyLayout(properties); setCenter(layout); } else if (c.wasAdded()) { c.getAddedSubList().stream() .forEachOrdered(i -> layout.addItem(i)); } } }); } }
/** * @return read only view of observable save files */ public ObservableList<SaveFile> saveFiles() { return FXCollections.unmodifiableObservableList(saveFiles); }
/** * @return The currently loaded tweets. */ public ObservableList<Status> loadedTweets() { return FXCollections.unmodifiableObservableList(loadedTweets); }
public ObservableList<ViewHistoryDefinition<?>> getControllerHistory() { return FXCollections.unmodifiableObservableList(controllerHistory); }
/** * Creates a new ChoiceBoxItem. * <p> * The default choice will either be the first choice alternative, or the * alternative matching the current value of the property (if such as * alternative exists). Alternatives will get their name by calling toString() * on the objects in the list of alternatives * <p> * The property will bind to the ChoiceBox.valueProperty(). * * @param label the label text * @param value the property * @param alternatives list of alternatives in the choice box * @param tooltip the tooltip * @param decorator the editor decorator */ public ChoiceBoxItem( String label, Property<T> value, ObservableList<T> alternatives, String tooltip, UnaryOperator<Node> decorator) { super(label, tooltip, decorator); this.currentValue = value; this.alternatives = FXCollections.unmodifiableObservableList(alternatives); }
@Autowired public CreditsService(final ObjectMapper objectMapper) { this.creditedWorks = unmodifiableObservableList(observableList(loadCreditsFiles( objectMapper, new PathMatchingResourcePatternResolver() ))); }
@Override public ObservableList<Node> getChildrenUnmodifiable() { if (skin != null) { return FXCollections.unmodifiableObservableList(skin.getChildren()); } else { return super.getChildrenUnmodifiable(); } } }
@Override public ObservableList<?> getDependencies() { return (dependencies.length == 1)? FXCollections.singletonObservableList(dependencies[0]) : FXCollections.unmodifiableObservableList(FXCollections.observableArrayList(dependencies)); } };
/** * Creates a new {@link PropertySheet} which will render a collection of * properties. * * @param properties the list of properties to render */ public PropertySheet(ObservableList<PropertyEditor.Item> properties) { requireNonNull(properties); this.properties = FXCollections.unmodifiableObservableList(properties); layout = new PropertyLayout(properties); setCenter(layout); this.properties.addListener((ListChangeListener.Change<? extends PropertyEditor.Item> c) -> { while (c.next()) { if (c.wasRemoved() && properties.isEmpty()) { layout.remove(); layout = new PropertyLayout(properties); setCenter(layout); } else if (c.wasAdded()) { c.getAddedSubList().stream() .forEachOrdered(i -> layout.addItem(i)); } } }); } }