Class DefaultTristateListModel<T>
java.lang.Object
com.inductiveautomation.ignition.designer.gui.tristate.DefaultTristateListModel<T>
- All Implemented Interfaces:
TristateListModel<T>,Iterable<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
list
-
states
protected int[] states
-
-
Constructor Details
-
DefaultTristateListModel
public DefaultTristateListModel() -
DefaultTristateListModel
-
-
Method Details
-
getList
-
setList
-
iterator
-
getSize
public int getSize()- Specified by:
getSizein interfaceTristateListModel<T>
-
get
- Specified by:
getin interfaceTristateListModel<T>
-
getState
public int getState(int index) Description copied from interface:TristateListModelGet the tristate value for this object.- Specified by:
getStatein interfaceTristateListModel<T>- See Also:
-
TristateCheckBox.STATE_SELECTEDTristateCheckBox.STATE_UNSELECTEDTristateCheckBox.STATE_MIXED
-
setState
public void setState(int index, int state) Description copied from interface:TristateListModelSets the state for the given object- Specified by:
setStatein interfaceTristateListModel<T>
-
addModelListener
- Specified by:
addModelListenerin interfaceTristateListModel<T>
-
removeModelListener
- Specified by:
removeModelListenerin interfaceTristateListModel<T>
-
fireElementsChanged
protected void fireElementsChanged() -
fireStateChanged
protected void fireStateChanged(int index, int state)
-