Class AbstractChangeable
java.lang.Object
com.inductiveautomation.ignition.common.util.AbstractChangeable
- All Implemented Interfaces:
Changeable
- Direct Known Subclasses:
AbstractReportActionConfig,BrowsableLibrary,BrowsableSelectionModel,ChartStatusContext,ClientStepRegistry,ComponentSelection,DesignerComponentStoreBridgeImpl,EditablePageConfig,GalleryModel,GradientParams,PipelineBlockModel,ReportSchedule,RMUndoer,SampleData,Segment,StyleAttributeEditor,SymbolStateConfig,SymbolThemeConfig
Convenience base-class for any object that wants to manage change listeners
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChangeEventOnly oneChangeEventis needed per model instance since the event's only (read-only) state is the source property.protected EventListenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aChangeListenerto the model.protected voidRuns eachChangeListener'sstateChangedmethod.Returns an array of all theChangeListeners added to thisDefaultColorSelectionModelwithaddChangeListener.voidRemoves aChangeListenerfrom the model.
-
Field Details
-
changeEvent
Only oneChangeEventis needed per model instance since the event's only (read-only) state is the source property. The source of events generated here is always "this". -
listenerList
-
-
Constructor Details
-
AbstractChangeable
public AbstractChangeable()
-
-
Method Details
-
addChangeListener
Adds aChangeListenerto the model.- Specified by:
addChangeListenerin interfaceChangeable- Parameters:
l- theChangeListenerto be added
-
removeChangeListener
Removes aChangeListenerfrom the model.- Specified by:
removeChangeListenerin interfaceChangeable- Parameters:
l- theChangeListenerto be removed
-
getChangeListeners
Returns an array of all theChangeListeners added to thisDefaultColorSelectionModelwithaddChangeListener.- Returns:
- all of the
ChangeListeners added, or an empty array if no listeners have been added - Since:
- 1.4
-
fireStateChanged
protected void fireStateChanged()Runs eachChangeListener'sstateChangedmethod.- See Also:
-