the text shown in a label next to the text input area
function that returns the target value
function to change the target value
Optional
textField: HTMLInputElementthe text field to use; if not provided, then a text input field is created.
Private
columns_The number of columns (characters) shown in the text field.
Private
firstTrue when first click in field after gaining focus.
Private
getter_function that returns the current target value
function that returns the current target value
Private
label_the name shown in a label next to the textField
Private
lastThe last value that the text field was set to, used to detect when user has intentionally changed the value.
Private
setter_function to change the target value
function to change the target value
Private
textthe text field showing the double value
Private
value_The value of the target as last seen by this control;
Private
doPrivate
formatPrivate
gainReturns the value of this control (which should match the target value if observe is being called).
the value of this control
Notifies 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
Sets the width of the text input field (number of characters).
the width of the text input field
this object for chaining setters
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.
Private
validateGenerated using TypeDoc
A user interface control for displaying and editing the text value of an object. Synchronizes with the target object's string value by executing specified
getter
andsetter
functions. Creates (or uses an existing) text input element to display and edit the text.Because this is an Observer, you can connect it to a Subject; when the Subject broadcasts events, this will update the value it displays.