Class DefaultTristateListModel<T>
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.gui.tristate.DefaultTristateListModel<T>
 
- 
- All Implemented Interfaces:
- TristateListModel<T>,- java.lang.Iterable<T>
 
 public class DefaultTristateListModel<T> extends java.lang.Object implements TristateListModel<T> 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultTristateListModel()DefaultTristateListModel(java.util.List<T> list)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddModelListener(TristateListModelListener l)protected voidfireElementsChanged()protected voidfireStateChanged(int index, int state)Tget(int index)java.util.List<T>getList()intgetSize()intgetState(int index)Get the tristate value for this object.java.util.Iterator<T>iterator()voidremoveModelListener(TristateListModelListener l)voidsetList(java.util.List<T> list)voidsetState(int index, int state)Sets the state for the given object
 
- 
- 
- 
Field Detail- 
listprotected java.util.List<T> list 
 - 
statesprotected int[] states 
 
- 
 - 
Constructor Detail- 
DefaultTristateListModelpublic DefaultTristateListModel() 
 - 
DefaultTristateListModelpublic DefaultTristateListModel(java.util.List<T> list) 
 
- 
 - 
Method Detail- 
getListpublic java.util.List<T> getList() 
 - 
setListpublic void setList(java.util.List<T> list) 
 - 
iteratorpublic java.util.Iterator<T> iterator() - Specified by:
- iteratorin interface- java.lang.Iterable<T>
 
 - 
getSizepublic int getSize() - Specified by:
- getSizein interface- TristateListModel<T>
 
 - 
getpublic T get(int index) - 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>
 
 - 
addModelListenerpublic void addModelListener(TristateListModelListener l) - Specified by:
- addModelListenerin interface- TristateListModel<T>
 
 - 
removeModelListenerpublic void removeModelListener(TristateListModelListener l) - Specified by:
- removeModelListenerin interface- TristateListModel<T>
 
 - 
fireElementsChangedprotected void fireElementsChanged() 
 - 
fireStateChangedprotected void fireStateChanged(int index, int state)
 
- 
 
-