Class DefaultTristateListModel<T>
java.lang.Object
com.inductiveautomation.ignition.designer.gui.tristate.DefaultTristateListModel<T>
- All Implemented Interfaces:
- TristateListModel<T>,- Iterable<T>
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected voidprotected voidfireStateChanged(int index, int state) get(int index) getList()intgetSize()intgetState(int index) Get the tristate value for this object.iterator()voidvoidvoidsetState(int index, int state) Sets the state for the given objectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Field Details- 
list
- 
statesprotected int[] states
 
- 
- 
Constructor Details- 
DefaultTristateListModelpublic DefaultTristateListModel()
- 
DefaultTristateListModel
 
- 
- 
Method Details- 
getList
- 
setList
- 
iterator
- 
getSizepublic int getSize()- Specified by:
- getSizein interface- TristateListModel<T>
 
- 
get- Specified by:
- getin interface- TristateListModel<T>
 
- 
getStatepublic int getState(int index) Description copied from interface:TristateListModelGet the tristate value for this object.- Specified by:
- getStatein interface- TristateListModel<T>
- See Also:
- 
- TristateCheckBox.STATE_SELECTED
- TristateCheckBox.STATE_UNSELECTED
- TristateCheckBox.STATE_MIXED
 
 
- 
setStatepublic void setState(int index, int state) Description copied from interface:TristateListModelSets the state for the given object- Specified by:
- setStatein interface- TristateListModel<T>
 
- 
addModelListener- Specified by:
- addModelListenerin interface- TristateListModel<T>
 
- 
removeModelListener- Specified by:
- removeModelListenerin interface- TristateListModel<T>
 
- 
fireElementsChangedprotected void fireElementsChanged()
- 
fireStateChangedprotected void fireStateChanged(int index, int state) 
 
-