the ParameterBoolean to connect to
the HTMLImageElement to show for the 'on' state
the HTMLImageElement to show for the 'off' state
Private
state_The state of the user control (which might not match the state of the target)
Returns the state of this control (which should match the target state when observe is being called).
the state of this control, true
means 'on'
Private
handleNotifies this Observer that a change has occurred in the Subject.
contains information about what has changed in the Subject: typically either a one-time GenericEvent, or a change to the value of a Parameter
Returns a minimal string representation of this object, usually giving just identity information like the class name and name of the object.
For an object whose main purpose is to represent another Printable object, it is
recommended to include the result of calling toStringShort
on that other object.
For example, calling toStringShort()
on a DisplayShape might return something like
this:
DisplayShape{polygon:Polygon{'chain3'}}
a minimal string representation of this object.
Generated using TypeDoc
Creates and manages an HTMLButtonElement that toggles between two images; the state is connected to a ParameterBoolean. The button is assigned classname
icon
for CSS scripting.