Top Inners Fields Constructors Methods
org.controlsfx.control

pack-priv abstract Class CheckBitSetModelBase<T>

extends Object
implements IndexedCheckModel<T>
Class Inheritance
All Implemented Interfaces
org.controlsfx.control.IndexedCheckModel, org.controlsfx.control.CheckModel
Known Direct Subclasses
org.controlsfx.control.CheckComboBox.CheckComboBoxBitSetCheckModel, org.controlsfx.control.CheckListView.CheckListViewBitSetCheckModel
Imports
impl.org.controlsfx.collections.MappingChange, .NonIterableChange, .ReadOnlyUnbackedObservableList, javafx.beans.property.BooleanProperty, .SimpleBooleanProperty, javafx.collections.ListChangeListener, .ObservableList, java.util.Arrays, .BitSet, .Collections, .List, .Map, java.util.concurrent.atomic.AtomicBoolean, java.util.stream.Collectors

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final BitSet
private final CheckBitSetModelBase<T>.BitSetReadOnlyUnbackedObservableList
private final ReadOnlyUnbackedObservableList<T>
private final Map<T, BooleanProperty>
itemBooleanMap

* Internal properties * *

private AtomicBoolean

Constructor Summary

AccessConstructor and Description
pack-priv
CheckBitSetModelBase(final Map<T, BooleanProperty> itemBooleanMap)

* Constructors * *

Method Summary

Modifier and TypeMethod and Description
public void
check(int index)

Implements org.controlsfx.control.IndexedCheckModel.check.

Checks the item in the given index in the control.

public void
check(T item)

Implements org.controlsfx.control.CheckModel.check.

Checks the given item in the control.

public void
checkAll()

Implements org.controlsfx.control.CheckModel.checkAll.

Checks all items in the control

public void
checkIndices(int... indices)

Implements org.controlsfx.control.IndexedCheckModel.checkIndices.

Checks the given indices in the control

public void
clearCheck(T item)

Implements org.controlsfx.control.CheckModel.clearCheck.

Unchecks the given item in the control

public void
clearCheck(int index)

Implements org.controlsfx.control.IndexedCheckModel.clearCheck.

Unchecks the given index in the control

public void
clearChecks()

Implements org.controlsfx.control.CheckModel.clearChecks.

Unchecks all items in the control

private static ListChangeListener.Change<Integer>
createRangeChange(final ObservableList<Integer> list, final List<Integer> addedItems, boolean splitChanges)

public ObservableList<Integer>
getCheckedIndices()

Implements org.controlsfx.control.IndexedCheckModel.getCheckedIndices.

Returns a read-only list of the currently checked indices in the CheckBox.

public ObservableList<T>
getCheckedItems()

Implements org.controlsfx.control.CheckModel.getCheckedItems.

Returns a read-only list of the currently checked items in the CheckBox.

public abstract T
getItem(int index)

Redeclares org.controlsfx.control.IndexedCheckModel.getItem.

* Abstract API * *

pack-priv BooleanProperty
public abstract int
getItemCount()

Redeclares org.controlsfx.control.CheckModel.getItemCount.

Returns the count of items in the control.

public abstract int
getItemIndex(T item)

Redeclares org.controlsfx.control.IndexedCheckModel.getItemIndex.

Returns the index of the given item.

public boolean
isChecked(T item)

Implements org.controlsfx.control.CheckModel.isChecked.

Returns true if the given item is checked in the control.

public boolean
isChecked(int index)

Implements org.controlsfx.control.IndexedCheckModel.isChecked.

Returns true if the given index represents an item that is checked in the control.

public boolean
isEmpty()

Implements org.controlsfx.control.CheckModel.isEmpty.

Returns true if there are no checked items in the control.

public void
toggleCheckState(T item)

Implements org.controlsfx.control.CheckModel.toggleCheckState.

Toggles the check state for the given item in the control.

public void
toggleCheckState(int index)

Implements org.controlsfx.control.IndexedCheckModel.toggleCheckState.

Toggles the check state of the item in the given index of the control.

private void
updateBooleanProperty(T item, boolean value)

protected void
updateMap()

* Private implementation * *

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

checkedIndicesback to summary
private final BitSet checkedIndices
checkedIndicesListback to summary
private final CheckBitSetModelBase<T>.BitSetReadOnlyUnbackedObservableList checkedIndicesList
checkedItemsListback to summary
private final ReadOnlyUnbackedObservableList<T> checkedItemsList
itemBooleanMapback to summary
private final Map<T, BooleanProperty> itemBooleanMap

* Internal properties * *

listenerFlagback to summary
private AtomicBoolean listenerFlag

Constructor Detail

CheckBitSetModelBaseback to summary
pack-priv CheckBitSetModelBase(final Map<T, BooleanProperty> itemBooleanMap)

* Constructors * *

Method Detail

checkback to summary
public void check(int index)

Implements org.controlsfx.control.IndexedCheckModel.check.

Doc from org.controlsfx.control.IndexedCheckModel.check.

Checks the item in the given index in the control.

Annotations
@Override
checkback to summary
public void check(T item)

Implements org.controlsfx.control.CheckModel.check.

Doc from org.controlsfx.control.CheckModel.check.

Checks the given item in the control.

Annotations
@Override
checkAllback to summary
public void checkAll()

Implements org.controlsfx.control.CheckModel.checkAll.

Doc from org.controlsfx.control.CheckModel.checkAll.

Checks all items in the control

Annotations
@Override
checkIndicesback to summary
public void checkIndices(int... indices)

Implements org.controlsfx.control.IndexedCheckModel.checkIndices.

Doc from org.controlsfx.control.IndexedCheckModel.checkIndices.

Checks the given indices in the control

Annotations
@Override
clearCheckback to summary
public void clearCheck(T item)

Implements org.controlsfx.control.CheckModel.clearCheck.

Doc from org.controlsfx.control.CheckModel.clearCheck.

Unchecks the given item in the control

Annotations
@Override
clearCheckback to summary
public void clearCheck(int index)

Implements org.controlsfx.control.IndexedCheckModel.clearCheck.

Doc from org.controlsfx.control.IndexedCheckModel.clearCheck.

Unchecks the given index in the control

Annotations
@Override
clearChecksback to summary
public void clearChecks()

Implements org.controlsfx.control.CheckModel.clearChecks.

Doc from org.controlsfx.control.CheckModel.clearChecks.

Unchecks all items in the control

Annotations
@Override
createRangeChangeback to summary
private static ListChangeListener.Change<Integer> createRangeChange(final ObservableList<Integer> list, final List<Integer> addedItems, boolean splitChanges)
getCheckedIndicesback to summary
public ObservableList<Integer> getCheckedIndices()

Implements org.controlsfx.control.IndexedCheckModel.getCheckedIndices.

Returns a read-only list of the currently checked indices in the CheckBox.

Annotations
@Override
getCheckedItemsback to summary
public ObservableList<T> getCheckedItems()

Implements org.controlsfx.control.CheckModel.getCheckedItems.

Returns a read-only list of the currently checked items in the CheckBox.

Annotations
@Override
getItemback to summary
public abstract T getItem(int index)

Redeclares org.controlsfx.control.IndexedCheckModel.getItem.

* Abstract API * *

Annotations
@Override
getItemBooleanPropertyback to summary
pack-priv BooleanProperty getItemBooleanProperty(T item)
getItemCountback to summary
public abstract int getItemCount()

Redeclares org.controlsfx.control.CheckModel.getItemCount.

Doc from org.controlsfx.control.CheckModel.getItemCount.

Returns the count of items in the control.

Annotations
@Override
getItemIndexback to summary
public abstract int getItemIndex(T item)

Redeclares org.controlsfx.control.IndexedCheckModel.getItemIndex.

Doc from org.controlsfx.control.IndexedCheckModel.getItemIndex.

Returns the index of the given item.

Annotations
@Override
isCheckedback to summary
public boolean isChecked(T item)

Implements org.controlsfx.control.CheckModel.isChecked.

Doc from org.controlsfx.control.CheckModel.isChecked.

Returns true if the given item is checked in the control.

Annotations
@Override
isCheckedback to summary
public boolean isChecked(int index)

Implements org.controlsfx.control.IndexedCheckModel.isChecked.

Doc from org.controlsfx.control.IndexedCheckModel.isChecked.

Returns true if the given index represents an item that is checked in the control.

Annotations
@Override
isEmptyback to summary
public boolean isEmpty()

Implements org.controlsfx.control.CheckModel.isEmpty.

Doc from org.controlsfx.control.CheckModel.isEmpty.

Returns true if there are no checked items in the control.

Annotations
@Override
toggleCheckStateback to summary
public void toggleCheckState(T item)

Implements org.controlsfx.control.CheckModel.toggleCheckState.

Doc from org.controlsfx.control.CheckModel.toggleCheckState.

Toggles the check state for the given item in the control.

Annotations
@Override
toggleCheckStateback to summary
public void toggleCheckState(int index)

Implements org.controlsfx.control.IndexedCheckModel.toggleCheckState.

Doc from org.controlsfx.control.IndexedCheckModel.toggleCheckState.

Toggles the check state of the item in the given index of the control.

Annotations
@Override
updateBooleanPropertyback to summary
private void updateBooleanProperty(T item, boolean value)
updateMapback to summary
protected void updateMap()

* Private implementation * *

org.controlsfx.control back to summary

private Class CheckBitSetModelBase.BitSetReadOnlyUnbackedObservableList

extends ReadOnlyUnbackedObservableList<Integer>
Class Inheritance

* Private implementation * *

Field Summary

Modifier and TypeField and Description
private final BitSet
private int
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public Integer
get(int index)

Implements abstract impl.org.controlsfx.collections.ReadOnlyUnbackedObservableList.get.

Implements java.util.List.get.

Returns the element at the specified position in this list.

public int
indexOf(Object obj)

Overrides impl.org.controlsfx.collections.ReadOnlyUnbackedObservableList.indexOf.

Implements java.util.List.indexOf.

Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.

public void
public int
size()

Implements abstract impl.org.controlsfx.collections.ReadOnlyUnbackedObservableList.size.

Implements java.util.List.size, java.util.Collection.size.

Returns the number of elements in this list.

Inherited from impl.org.controlsfx.collections.ReadOnlyUnbackedObservableList:
addaddaddAlladdAlladdAllcallObserversclearcontainsAllisEmptyiteratorlastIndexOflistIteratorlistIteratorremoveremoveremoveremoveAllremoveAllretainAllretainAllsetsetAllsetAllsubListtoArraytoArraytoString

Field Detail

bitsetback to summary
private final BitSet bitset
lastGetIndexback to summary
private int lastGetIndex
lastGetValueback to summary
private int lastGetValue

Constructor Detail

BitSetReadOnlyUnbackedObservableListback to summary
public BitSetReadOnlyUnbackedObservableList(BitSet bitset)

Method Detail

containsback to summary
public boolean contains(Object o)

Overrides impl.org.controlsfx.collections.ReadOnlyUnbackedObservableList.contains.

Implements java.util.List.contains, java.util.Collection.contains.

Doc from java.util.List.contains.

Returns true if this list contains the specified element. More formally, returns true if and only if this list contains at least one element e such that Objects.equals(o, e).

Annotations
@Override
getback to summary
public Integer get(int index)

Implements abstract impl.org.controlsfx.collections.ReadOnlyUnbackedObservableList.get.

Implements java.util.List.get.

Doc from java.util.List.get.

Returns the element at the specified position in this list.

Annotations
@Override
indexOfback to summary
public int indexOf(Object obj)

Overrides impl.org.controlsfx.collections.ReadOnlyUnbackedObservableList.indexOf.

Implements java.util.List.indexOf.

Doc from java.util.List.indexOf.

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 i such that Objects.equals(o, get(i)), or -1 if there is no such index.

Annotations
@Override
resetback to summary
public void reset()
sizeback to summary
public int size()

Implements abstract impl.org.controlsfx.collections.ReadOnlyUnbackedObservableList.size.

Implements java.util.List.size, java.util.Collection.size.

Doc from java.util.List.size.

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Annotations
@Override