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 --+ | DateField
A date editor component that can be bound to any IProperty that is compatible with
datetime
.
Since DateField
extends AbstractField
it
implements the IBuffered interface.
A DateField
is in write-through mode by default, so AbstractField.setWriteThrough
must be called to
enable buffering.
Version: 1.1.2
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
CLIENT_WIDGET = None hash(x) |
|||
RESOLUTION_MSEC = 0
|
|||
RESOLUTION_SEC = 1
|
|||
RESOLUTION_MIN = 2
|
|||
RESOLUTION_HOUR = 3
|
|||
RESOLUTION_DAY = 4
|
|||
RESOLUTION_MONTH = 5
|
|||
RESOLUTION_YEAR = 6
|
|||
_largestModifiable = 6
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Constructs an new
|
|
|
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.
|
Returns true if the error indicator be hidden when painting the component even when there are errors. This is a mostly internal method, but can be overridden in subclasses e.g. if the error indicator should also be shown for empty fields in some cases.
|
Called when one or more variables handled by the implementing class are changed.
|
This method is called to handle a non-empty date string from the
client if the client could not parse it as a By default, a This can be overridden to handle conversions, to return null (equivalent to empty input), to throw an exception or to fire an event.
|
|
Sets the value of the field.
|
Sets the DateField datasource. Datasource type must assignable to Date.
See Also:
|
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 resolution of the
|
Returns new instance calendar used in Date conversions. Returns new clone of the calendar object initialized using the the current date (if available) If this is no calendar is assigned the
See Also:
|
Sets formatting used by some component implementations. By default it is encouraged to used default formatting defined by Locale.
See Also:
|
Returns a format string used to format date value on client side or
null if default formatting from
|
Specifies whether or not date/time interpretation in component is to be lenient.
See Also: isLenient |
Returns whether date/time interpretation is to be lenient.
See Also: setLenient |
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.
|
|
Checks whether ISO 8601 week numbers are shown in the date selector.
|
Sets the visibility of ISO 8601 week numbers in the date selector. ISO 8601 defines that a week always starts with a Monday so the week numbers are only shown if this is the case.
|
Tests the current value against registered validators if the field is not empty. Note that DateField is considered empty (value == null) and invalid if it contains text typed in by the user that couldn't be parsed into a Date value.
See Also:
|
Checks the validity of the IValidatable by validating the field with all attached validators except when the field is empty. An empty field is invalid if it is required and valid otherwise. The "required" validation is a built-in validation feature. If the field is required, but empty, validation will throw an EmptyValueException with the error message set with setRequiredError().
|
Return the error message that is shown if the user inputted value
can't be parsed into a datetime object. If handleUnparsableDateString is overridden and it throws a
custom exception, the message returned by
See Also: setParseErrorMessage |
Sets the default error message used if the DateField cannot parse the text input by user to a datetime field. Note that if the handleUnparsableDateString method is overridden, the localized message from its exception is used.
|
Sets the time zone used by this date field. The time zone is used to convert the absolute time in a Date object to a logical time displayed in the selector and to convert the select time back to a datetime object. If no time zone has been set, the current default time zone returned
by @see getTimeZone()
|
Gets the time zone used by this field. The time zone is used to convert the absolute time in a Date object to a logical time displayed in the selector and to convert the select time back to a datetime object. If {@code null} is returned, the current default time zone returned by
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jul 6 13:40:56 2013 | http://epydoc.sourceforge.net |