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 TypeMethodDescriptionvoid
protected void
protected void
fireStateChanged
(int index, int state) get
(int index) getList()
int
getSize()
int
getState
(int index) Get the tristate value for this object.iterator()
void
void
void
setState
(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, wait
Methods 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:
getSize
in interfaceTristateListModel<T>
-
get
- Specified by:
get
in interfaceTristateListModel<T>
-
getState
public int getState(int index) Description copied from interface:TristateListModel
Get the tristate value for this object.- Specified by:
getState
in interfaceTristateListModel<T>
- See Also:
-
TristateCheckBox.STATE_SELECTED
TristateCheckBox.STATE_UNSELECTED
TristateCheckBox.STATE_MIXED
-
setState
public void setState(int index, int state) Description copied from interface:TristateListModel
Sets the state for the given object- Specified by:
setState
in interfaceTristateListModel<T>
-
addModelListener
- Specified by:
addModelListener
in interfaceTristateListModel<T>
-
removeModelListener
- Specified by:
removeModelListener
in interfaceTristateListModel<T>
-
fireElementsChanged
protected void fireElementsChanged() -
fireStateChanged
protected void fireStateChanged(int index, int state)
-