/** * Returns the list of segments (the model). * * @return the list of segments shown by the bar */ public final ObservableList<T> getSegments() { return segments.get(); }
/** * Returns the list of currently selected locations. * * @return the list of selected locations */ public final ObservableList<Location> getSelectedLocations() { return selectedLocations.get(); }
/** * Returns the list of locations shown by the map. * * @return the list of locations */ public final ObservableList<Location> getLocations() { return locations.get(); }
/** * Returns the list of countries that will be shown by the map. * * @return the list of countries shown by the map */ public final ObservableList<Country> getCountries() { return countries.get(); }
/** * Returns the list of currently selected countries. * * @return the list of selected countries */ public final ObservableList<Country> getSelectedCountries() { return selectedCountries.get(); }
@Override public E get(int i) { return delegate.get(i); }
public ObservableList getItems() { return items.get(); }
@Override public ObservableList<E> get() { return delegate.get(); }
public ObservableList<OpenPatricianSpinnerOptionDataModel> getOptions() { return options.get(); }
public ObservableList<String> getStyleClass() { return styleClass.get(); }
public ObservableList<V> getSelection() { return selection.get(); }
/** * Removes the element at the given index from the current selection. * * @param index * The index of the element to be removed. * * @return Returns the current field to allow for chaining. */ public MultiSelectionField<V> deselect(int index) { if (index < items.size() && selection.contains(items.get(index))) { selection.remove(items.get(index)); } return this; }
/** * Adds the element at the given index to the current selection. * * @param index * The index of the element to be selected. * * @return Returns the current field to allow for chaining. */ public MultiSelectionField<V> select(int index) { if (index < items.size() && index > -1 && !selection.contains(items.get(index))) { selection.add(items.get(index)); } return this; }
@Override public void extractValues(ListProperty<?> originalValue, ValueExtractor.ValueReceiver receiver) { for ( int i = 0; i < originalValue.size(); i++ ) { receiver.indexedValue( NodeImpl.LIST_ELEMENT_NODE_NAME, i, originalValue.get( i ) ); } } }
/** * @return the root directories */ public final ObservableList<@NonNull DirItem> getRootDirectories() { return this.rootDirectoriesProperty().get(); }
/** * @return the root directories */ public final ObservableList<@NonNull DirItem> getRootDirectories() { return this.rootDirectoriesProperty().get(); }
/** * Retrieve the mapping value for the selected index. * @return selected mapped value. */ public String getSelectedValue() { return options.get(getSelectedIndex()).getValue(); }
/** * @return the root directories */ public final ObservableList<@NonNull DirItem> getRootDirectories() { return this.rootDirectoriesProperty().get(); }
/** * @return the root directories */ public final ObservableList<@NonNull DirItem> getRootDirectories() { return this.rootDirectoriesProperty().get(); }
private void listenToValues() { segments.get().addListener(weakSumListener); getSegments().forEach(segment -> { // first remove then add listener to ensure listener is only added once segment.valueProperty().removeListener(weakSumListener); segment.valueProperty().addListener(weakSumListener); }); }