Home | Trees | Indices | Help |
|
---|
|
object --+ | util.IEventListener --+ | terminal.paintable.IPaintable --+ | object --+ | | | terminal.variable_owner.IVariableOwner --+ | object --+ | | | terminal.sizeable.ISizeable --+ | component.IComponent --+ | object --+ | | | event.method_event_source.IMethodEventSource --+ | abstract_component.AbstractComponent --+ | object --+ | | | data.buffered.IBuffered --+ | | | object --+ | | | | | data.validatable.IValidatable --+ | | | data.buffered.IBufferedValidatable --+ | | | object --+ | | | | | data.property.IValueChangeNotifier --+ | | | object --+ | | | | | data.property.IValueChangeListener --+ | | | object --+ | | | | | data.property.IViewer --+ | | | | | data.property.IEditor --+ | | | object --+ | | | | | util.IEventListener --+ | | | | | terminal.paintable.IPaintable --+ | | | | | object --+ | | | | | | | terminal.variable_owner.IVariableOwner --+ | | | | | object --+ | | | | | | | terminal.sizeable.ISizeable --+ | | | | | component.IComponent --+ | | | | | component.IFocusable --+ | | | field.IField --+ | object --+ | | | event.action.IShortcutNotifier --+ | object --+ | | | data.property.IReadOnlyStatusChangeNotifier --+ | object --+ | | | data.property.IReadOnlyStatusChangeListener --+ | abstract_field.AbstractField --+ | object --+ | | | event.field_events.IBlurNotifier --+ | object --+ | | | event.field_events.IFocusNotifier --+ | object --+ | | | event.field_events.ITextChangeNotifier --+ | AbstractTextField
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Constructs a new IComponent.
|
Paints any needed component-specific things to the given UIDL stream. The more general paint method handles all general attributes common to all components, and it calls this method to paint any component-specific attributes to the UIDL stream.
|
Gets the formatted string value. Sets the field value by using the assigned format.
See Also: setFormat Deprecated: |
Gets the current value of the field. This is the visible, modified and possible invalid value the user have entered to the field. In the read-through mode, the abstract buffer is also updated and validation is performed. Note that the object returned is compatible with getType(). For example, if the type is String, this returns Strings even when the underlying datasource is of some other type. In order to access the datasources native type, use getPropertyDatasource().getValue() instead. Note that when you extend AbstractField, you must reimplement this method if datasource.getValue() is not assignable to class returned by getType() AND getType() is not String. In case of Strings, getValue() calls datasource.toString() instead of datasource.getValue().
|
Called when one or more variables handled by the implementing class are changed.
|
|
Gets the null-string representation. The null-valued strings are represented on the user interface by replacing the null value with this string. If the null representation is set null (not 'null' string), painting null value throws exception. The default value is string 'null'.
See Also:
|
Is setting nulls with null-string representation allowed. If this property is true, writing null-representation string to text field always sets the field value to real null. If this property is false, null setting is not made, but the null values are maintained. Maintenance of null-values is made by only converting the textfield contents to real null, if the text field matches the null-string representation and the current value of the field is null. By default this setting is false
See Also:
|
Sets the null-string representation. The null-valued strings are represented on the user interface by replacing the null value with this string. If the null representation is set null (not 'null' string), painting null value throws exception. The default value is string 'null'
See Also:
|
Sets the null conversion mode. If this property is true, writing null-representation string to text field always sets the field value to real null. If this property is false, null setting is not made, but the null values are maintained. Maintenance of null-values is made by only converting the textfield contents to real null, if the text field matches the null-string representation and the current value of the field is null. By default this setting is false.
See Also:
|
Gets the value formatter of TextField.
Deprecated:
replaced by |
Gets the value formatter of TextField.
Deprecated:
replaced by |
Is the field empty? In general, "empty" state is same as null. As an exception, TextField also treats empty string as "empty".
|
Returns the maximum number of characters in the field. Value -1 is considered unlimited. Terminal may however have some technical limits.
|
Sets the maximum number of characters in the field. Value -1 is considered unlimited. Terminal may however have some technical limits.
|
Gets the number of columns in the editor. If the number of columns is set 0, the actual number of displayed columns is determined implicitly by the adapter.
|
Sets the number of columns in the editor. If the number of columns is set 0, the actual number of displayed columns is determined implicitly by the adapter.
|
Gets the current input prompt.
See Also: setInputPrompt |
Sets the internal field value. This is purely used by AbstractField to change the internal IField value. It does not trigger valuechange events. It can be overridden by the inheriting classes to update all dependent variables.
|
Sets the value of the field.
|
Sets the mode how the TextField triggers TextChangeEvents.
See Also: TextChangeEventMode |
|
Registers a new (generic) component event listener for the component: class Listening(CustomComponent, IListener): # Stored for determining the source of an event ok = None status = None # For displaying info about the event def __init__(self): layout = VerticalLayout() # Some miscellaneous component name = TextField("Say it all here") name.addListener(self) name.setImmediate(true) layout.addComponent(name) # Handle button clicks as generic events instead # of Button.ClickEvent events ok = new Button("OK") ok.addListener(self) layout.addComponent(ok) # For displaying information about an event status = new Label("") layout.addComponent(status) setCompositionRoot(layout) def componentEvent(event): # Act according to the source of the event if (event.getSource() == ok): getWindow().showNotification("Click!") status.setValue("Event from " + event.getSource().__class__.__name__ + ": " + event.__class__.__name__) listening = Listening() layout.addComponent(listening)
|
|
Removes a previously registered component event listener from this component.
|
|
The text change timeout modifies how often text change events are communicated to the application when getTextChangeEventMode is TextChangeEventMode.LAZY or TextChangeEventMode.TIMEOUT.
See Also: getTextChangeEventMode |
Gets the timeout used to fire TextChangeEvents when the getTextChangeEventMode is TextChangeEventMode.LAZY or TextChangeEventMode.TIMEOUT.
|
Gets the current (or the last known) text content in the field. Note the text returned by this method is not necessary the same that is returned by the getValue method. The value is updated when the terminal fires a value change event via e.g. blurring the field or by pressing enter. The value returned by this method is updated also on TextChangeEvents. Due to this high dependency to the terminal implementation this method is (at least at this point) not published.
|
Sets the range of text to be selected. As a side effect the field will become focused.
|
Sets the cursor position in the field. As a side effect the field will become focused.
|
Returns the last known cursor position of the field. Note that due to the client server nature or the GWT terminal, Muntjac
cannot provide the exact value of the cursor position in most situations.
The value is updated only when the client side terminal communicates to
TextField, like on
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jun 10 22:40:24 2015 | http://epydoc.sourceforge.net |