Class StateChangeAction
java.lang.Object
javax.swing.AbstractAction
com.inductiveautomation.ignition.client.util.action.BaseAction
com.inductiveautomation.ignition.client.util.action.StateChangeAction
- All Implemented Interfaces:
- ActionListener,- ItemListener,- ItemSelectable,- Serializable,- Cloneable,- EventListener,- Action
- Direct Known Subclasses:
- PersistentStateChangeAction,- StateChangeAction
Extends BaseAction by adding support for item events like Toggle buttons and Checkbox menu items.
- See Also:
- 
Field SummaryFieldsFields inherited from class javax.swing.AbstractActionchangeSupport, enabledFields inherited from interface javax.swing.ActionACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
- 
Constructor SummaryConstructorsConstructorDescriptionStateChangeAction(String bundleKey) StateChangeAction(String bundleKey, Icon icon) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidObject[]booleanReturns true if the action is selcted.voidvoidsetSelected(boolean newValue) Changes the state of the actionMethods inherited from class com.inductiveautomation.ignition.client.util.action.BaseActioncreate, createButton, createButton, evaluateEnabled, listenTo, listenTo, setBundleKey, setIcon, updateEnabledMethods inherited from class javax.swing.AbstractActionaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.event.ItemListeneritemStateChanged
- 
Field Details- 
selectedprotected boolean selected
 
- 
- 
Constructor Details- 
StateChangeAction
- 
StateChangeAction
 
- 
- 
Method Details- 
isSelectedpublic boolean isSelected()Returns true if the action is selcted.
- 
setSelectedpublic void setSelected(boolean newValue) Changes the state of the action- Parameters:
- newValue- true to set the selection state of the action.
 
- 
addItemListener- Specified by:
- addItemListenerin interface- ItemSelectable
 
- 
getSelectedObjects- Specified by:
- getSelectedObjectsin interface- ItemSelectable
 
- 
removeItemListener- Specified by:
- removeItemListenerin interface- ItemSelectable
 
- 
actionPerformed- Specified by:
- actionPerformedin interface- ActionListener
 
- 
createMenuItem
 
-