| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final MultipleSelectionModelBase | |
| pack-priv ListChangeListener. | |
| private final ObservableListBase |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clearAndSelect(int row)
Implements abstract javafx. A method that clears any selection prior to setting the selection to the given index. |
| public void | clearSelection(int index)
Implements abstract javafx. This method will clear the selection of the item in the given index. |
| public void | clearSelection()
Implements abstract javafx. Clears the selection model of all selected indices. |
| private void | doShift(Pair<Integer, Integer> shiftPair, final Callback<MultipleSelectionModelBase.
|
| protected abstract void | |
| protected abstract int | |
| protected abstract int | Returns: the number of items in the data model that underpins the controlReturns the number of items in the data model that underpins the control. |
| protected abstract T | Returns: Returns null if the index is out of bounds, or an element of type T that is related to the given index.The index of the item that is requested from the underlying
data model. index)Returns the item at the given index. |
| public ObservableList | getSelectedIndices()
Implements abstract javafx. Returns a read-only ObservableList of all selected indices. |
| public ObservableList | getSelectedItems()
Implements abstract javafx. Returns a read-only ObservableList of all selected items. |
| pack-priv boolean | |
| public boolean | isEmpty()
Implements abstract javafx. This method is available to test whether there are any selected indices/items. |
| public boolean | isSelected(int index)
Implements abstract javafx. This method tests whether the given index is currently selected in this SelectionModel. |
| private void | |
| public void | select(int row)
Implements abstract javafx. This will select the given index in the selection model, assuming the index is within the valid range (i.e. greater than or equal to zero, and less than the total number of items in the underlying data model). |
| public void | select(T obj)
Implements abstract javafx. This method will attempt to select the index that contains the given object. |
| public void | selectAll()
Implements abstract javafx. Convenience method to select all available indices. |
| public void | selectFirst()
Implements abstract javafx. This method will attempt to select the first index in the control. |
| public void | selectIndices(int row, int... rows)
Implements abstract javafx. This method allows for one or more selections to be set at the same time. |
| public void | selectLast()
Implements abstract javafx. This method will attempt to select the last index in the control. |
| public void | selectNext()
Implements abstract javafx. This method will attempt to select the index directly after the current focused index. |
| public void | selectPrevious()
Implements abstract javafx. This method will attempt to select the index directly before the current focused index. |
| pack-priv void | shiftSelection(int position, int shift, final Callback<MultipleSelectionModelBase.
|
| pack-priv void | shiftSelection(List<Pair<Integer, Integer>> shifts, final Callback<MultipleSelectionModelBase.
|
| pack-priv void | |
| pack-priv void |
| selectedIndices | back to summary |
|---|---|
| pack-priv final MultipleSelectionModelBase<T>. | |
| selectedItemChange | back to summary |
|---|---|
| pack-priv ListChangeListener. | |
| selectedItems | back to summary |
|---|---|
| private final ObservableListBase<T> selectedItems | |
| MultipleSelectionModelBase | back to summary |
|---|---|
| public MultipleSelectionModelBase() | |
| clearAndSelect | back to summary |
|---|---|
| public void clearAndSelect(int row) Implements abstract javafx. Doc from javafx. A method that clears any selection prior to setting the selection to the
given index. The purpose of this method is to avoid having to call
| |
| clearSelection | back to summary |
|---|---|
| public void clearSelection(int index) Implements abstract javafx. Doc from javafx. This method will clear the selection of the item in the given index. If the given index is not selected, nothing will happen.
| |
| clearSelection | back to summary |
|---|---|
| public void clearSelection() Implements abstract javafx. Doc from javafx. Clears the selection model of all selected indices.
| |
| doShift | back to summary |
|---|---|
| private void doShift(Pair<Integer, Integer> shiftPair, final Callback<MultipleSelectionModelBase. | |
| focus | back to summary |
|---|---|
| protected abstract void focus(int index) Focuses the item at the given index.
| |
| getFocusedIndex | back to summary |
|---|---|
| protected abstract int getFocusedIndex() Gets the index of the focused item.
| |
| getItemCount | back to summary |
|---|---|
| protected abstract int getItemCount() Returns the number of items in the data model that underpins the control.
An example would be that a ListView selection model would likely return
| |
| getModelItem | back to summary |
|---|---|
| protected abstract T getModelItem(int index) Returns the item at the given index. An example using ListView would be
| |
| getSelectedIndices | back to summary |
|---|---|
| public ObservableList Implements abstract javafx. Doc from javafx. Returns a read-only ObservableList of all selected indices. The
ObservableList will be updated by the selection model to always reflect
changes in selection. This can be observed by adding a
| |
| getSelectedItems | back to summary |
|---|---|
| public ObservableList Implements abstract javafx. Doc from javafx. Returns a read-only ObservableList of all selected items. The
ObservableList will be updated further by the selection model to always reflect
changes in selection. This can be observed by adding a
| |
| isAtomic | back to summary |
|---|---|
| pack-priv boolean isAtomic() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements abstract javafx. Doc from javafx. This method is available to test whether there are any selected indices/items. It will return true if there are no selected items, and false if there are.
| |
| isSelected | back to summary |
|---|---|
| public boolean isSelected(int index) Implements abstract javafx. Doc from javafx. This method tests whether the given index is currently selected in this SelectionModel.
| |
| quietClearSelection | back to summary |
|---|---|
| private void quietClearSelection() | |
| select | back to summary |
|---|---|
| public void select(int row) Implements abstract javafx. Doc from javafx. This will select the given index in the selection model, assuming the index is within the valid range (i.e. greater than or equal to zero, and less than the total number of items in the underlying data model). If there is already one or more indices selected in this model, calling
this method will not clear these selections - to do so it is
necessary to first call If the index is already selected, it will not be selected again, or
unselected. However, if multiple selection is implemented, then calling
select on an already selected index will have the effect of making the index
the new selected index (as returned by
| |
| select | back to summary |
|---|---|
| public void select(T obj) Implements abstract javafx. Doc from javafx. This method will attempt to select the index that contains the given object. It will iterate through the underlying data model until it finds an item whose value is equal to the given object. At this point it will stop iterating - this means that this method will not select multiple indices.
| |
| selectAll | back to summary |
|---|---|
| public void selectAll() Implements abstract javafx. Doc from javafx. Convenience method to select all available indices.
| |
| selectFirst | back to summary |
|---|---|
| public void selectFirst() Implements abstract javafx. Doc from javafx. This method will attempt to select the first index in the control. If clearSelection is not called first, this method will have the result of selecting the first index, whilst retaining the selection of any other currently selected indices. If the first index is already selected, calling this method will have no result, and no selection event will take place.
| |
| selectIndices | back to summary |
|---|---|
| public void selectIndices(int row, int... rows) Implements abstract javafx. Doc from javafx. This method allows for one or more selections to be set at the same time. It will ignore any value that is not within the valid range (i.e. greater than or equal to zero, and less than the total number of items in the underlying data model). Any duplication of indices will be ignored. If there is already one or more indices selected in this model, calling this method will not clear these selections - to do so it is necessary to first call clearSelection. The last valid value given will become the selected index / selected item.
| |
| selectLast | back to summary |
|---|---|
| public void selectLast() Implements abstract javafx. Doc from javafx. This method will attempt to select the last index in the control. If clearSelection is not called first, this method will have the result of selecting the last index, whilst retaining the selection of any other currently selected indices. If the last index is already selected, calling this method will have no result, and no selection event will take place.
| |
| selectNext | back to summary |
|---|---|
| public void selectNext() Implements abstract javafx. Doc from javafx. This method will attempt to select the index directly after the current focused index. If clearSelection is not called first, this method will have the result of selecting the next index, whilst retaining the selection of any other currently selected indices. Calling this method will only succeed if:
If any of these conditions is false, no selection event will take place.
| |
| selectPrevious | back to summary |
|---|---|
| public void selectPrevious() Implements abstract javafx. Doc from javafx. This method will attempt to select the index directly before the current focused index. If clearSelection is not called first, this method will have the result of selecting the previous index, whilst retaining the selection of any other currently selected indices. Calling this method will only succeed if:
If any of these conditions is false, no selection event will take place.
| |
| shiftSelection | back to summary |
|---|---|
| pack-priv void shiftSelection(int position, int shift, final Callback<MultipleSelectionModelBase. | |
| shiftSelection | back to summary |
|---|---|
| pack-priv void shiftSelection(List<Pair<Integer, Integer>> shifts, final Callback<MultipleSelectionModelBase. | |
| startAtomic | back to summary |
|---|---|
| pack-priv void startAtomic() | |
| stopAtomic | back to summary |
|---|---|
| pack-priv void stopAtomic() | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final BitSet | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SelectedIndicesList(BitSet
Bitset to be used. bitset)Constructs a new instance of SelectedIndicesList from the provided BitSet. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public final void | _nextAdd(int from, int to)
Overrides com.
|
| public final void | _nextPermutation(int from, int to, int[] perm)
Overrides com.
|
| public final void | _nextRemove(int idx, List<? extends Integer> removed)
Overrides com.
|
| public final void | _nextRemove(int idx, Integer removed)
Overrides com.
|
| public final void | _nextReplace(int from, int to, List<? extends Integer> removed)
Overrides com.
|
| public final void | _nextSet(int idx, Integer old)
Overrides com.
|
| public final void | |
| public int | |
| public void | clear()
Overrides com. Implements java. Removes all of the elements from this list (optional operation). |
| public void | |
| public boolean | contains(Object o)
Overrides com. Implements java. Returns |
| public Integer | get(int index)
Implements abstract com. Implements java. Returns the element at the specified position in this list. |
| public int | indexOf(Object obj)
Overrides com. Implements java. Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| pack-priv boolean | |
| public boolean | |
| public boolean | |
| private boolean | |
| public void | |
| public void | |
| public void | set(int index, boolean isSet)
Overrides com. Implements java. Replaces the element at the specified position in this list with the specified element (optional operation). |
| public void | |
| public void | set(int index, int... indices)
Overrides com. Implements java. Replaces the element at the specified position in this list with the specified element (optional operation). |
| public int | size()
Implements abstract com. Implements java. Returns number of true bits in BitSet |
| pack-priv void | |
| pack-priv void |
| atomicityCount | back to summary |
|---|---|
| private int atomicityCount | |
| bitset | back to summary |
|---|---|
| private final BitSet bitset | |
| lastGetIndex | back to summary |
|---|---|
| private int lastGetIndex | |
| lastGetValue | back to summary |
|---|---|
| private int lastGetValue | |
| size | back to summary |
|---|---|
| private int size | |
| SelectedIndicesList | back to summary |
|---|---|
| public SelectedIndicesList() Constructs a new instance of SelectedIndicesList | |
| SelectedIndicesList | back to summary |
|---|---|
| public SelectedIndicesList(BitSet bitset) Constructs a new instance of SelectedIndicesList from the provided BitSet. The underlying source BitSet shouldn't be modified once it has been passed to the constructor.
| |
| _beginChange | back to summary |
|---|---|
| public void _beginChange() Overrides com.
| |
| _endChange | back to summary |
|---|---|
| public void _endChange() Overrides com.
| |
| _nextAdd | back to summary |
|---|---|
| public final void _nextAdd(int from, int to) Overrides com.
| |
| _nextPermutation | back to summary |
|---|---|
| public final void _nextPermutation(int from, int to, int[] perm) Overrides com.
| |
| _nextRemove | back to summary |
|---|---|
| public final void _nextRemove(int idx, List<? extends Integer> removed) Overrides com.
| |
| _nextRemove | back to summary |
|---|---|
| public final void _nextRemove(int idx, Integer removed) Overrides com.
| |
| _nextReplace | back to summary |
|---|---|
| public final void _nextReplace(int from, int to, List<? extends Integer> removed) Overrides com.
| |
| _nextSet | back to summary |
|---|---|
| public final void _nextSet(int idx, Integer old) Overrides com.
| |
| _nextUpdate | back to summary |
|---|---|
| public final void _nextUpdate(int pos) Overrides com.
| |
| bitsetSize | back to summary |
|---|---|
| public int bitsetSize() Returns the number of bits reserved in the BitSet | |
| clear | back to summary |
|---|---|
| public void clear() Overrides com. Implements java. Doc from java. Removes all of the elements from this list (optional operation). The list will be empty after this call returns.
| |
| clear | back to summary |
|---|---|
| public void clear(int index) | |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Overrides com. Implements java. Doc from java. Returns
| |
| get | back to summary |
|---|---|
| public Integer get(int index) Implements abstract com. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(Object obj) Overrides com. Implements java. Doc from java. Returns the index of the first occurrence of the specified element
in this list, or -1 if this list does not contain the element.
More formally, returns the lowest index
| |
| isAtomic | back to summary |
|---|---|
| pack-priv boolean isAtomic() | |
| isNotSelected | back to summary |
|---|---|
| public boolean isNotSelected(int index) | |
| isSelected | back to summary |
|---|---|
| public boolean isSelected(int index) | |
| isValidIndex | back to summary |
|---|---|
| private boolean isValidIndex(int index) | |
| reset | back to summary |
|---|---|
| public void reset() | |
| set | back to summary |
|---|---|
| public void set(int index) | |
| set | back to summary |
|---|---|
| public void set(int index, boolean isSet) Overrides com. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element (optional operation). | |
| set | back to summary |
|---|---|
| public void set(int index, int end, boolean isSet) | |
| set | back to summary |
|---|---|
| public void set(int index, int... indices) Overrides com. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element (optional operation). | |
| size | back to summary |
|---|---|
| public int size() Implements abstract com. Implements java. Returns number of true bits in BitSet
| |
| startAtomic | back to summary |
|---|---|
| pack-priv void startAtomic() | |
| stopAtomic | back to summary |
|---|---|
| pack-priv void stopAtomic() | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final boolean | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final int | |
| public final int | |
| public final boolean |
| clearIndex | back to summary |
|---|---|
| private final int clearIndex | |
| selected | back to summary |
|---|---|
| private final boolean selected | |
| setIndex | back to summary |
|---|---|
| private final int setIndex | |
| ShiftParams | back to summary |
|---|---|
| pack-priv ShiftParams(int clearIndex, int setIndex, boolean selected) | |
| getClearIndex | back to summary |
|---|---|
| public final int getClearIndex() | |
| getSetIndex | back to summary |
|---|---|
| public final int getSetIndex() | |
| isSelected | back to summary |
|---|---|
| public final boolean isSelected() | |