com.vaadin.ui
Class PopupDateField
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractField<java.util.Date>
com.vaadin.ui.DateField
com.vaadin.ui.PopupDateField
- All Implemented Interfaces:
- Buffered, BufferedValidatable, Property<java.util.Date>, Property.Editor, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer, Validatable, Action.ShortcutNotifier, ConnectorEventListener, FieldEvents.BlurNotifier, FieldEvents.FocusNotifier, MethodEventSource, ClientConnector, Sizeable, VariableOwner, com.vaadin.shared.Connector, Component, Component.Focusable, Field<java.util.Date>, LegacyComponent, java.io.Serializable, java.util.EventListener
public class PopupDateField
- extends DateField
A date entry component, which displays the actual date selector as a popup.
- Since:
- 5.0
- Author:
- Vaadin Ltd.
- See Also:
DateField
,
InlineDateField
,
Serialized Form
Method Summary |
java.lang.String |
getAssistiveText()
Get the description that explains the usage of the Widget for users of
assistive devices. |
java.lang.String |
getInputPrompt()
Gets the current input prompt. |
protected com.vaadin.shared.ui.datefield.PopupDateFieldState |
getState()
Returns the shared state bean with information to be sent from the server
to the client. |
protected com.vaadin.shared.ui.datefield.PopupDateFieldState |
getState(boolean markAsDirty)
Returns the shared state for this connector. |
boolean |
isTextFieldEnabled()
Checks whether the text field is enabled (default) or not. |
void |
paintContent(PaintTarget target)
Paints the Paintable into a UIDL stream. |
void |
setAssistiveText(java.lang.String description)
Set a description that explains the usage of the Widget for users of
assistive devices. |
void |
setInputPrompt(java.lang.String inputPrompt)
Sets the input prompt - a textual prompt that is displayed when the field
would otherwise be empty, to prompt the user for input. |
void |
setTextFieldEnabled(boolean state)
Enables or disables the text field. |
Methods inherited from class com.vaadin.ui.DateField |
addBlurListener, addFocusListener, addListener, addListener, changeVariables, fireValueChange, getDateFormat, getDateOutOfRangeMessage, getParseErrorMessage, getRangeEnd, getRangeStart, getResolution, getTimeZone, getType, handleUnparsableDateString, isLenient, isShowISOWeekNumbers, readDesign, removeBlurListener, removeFocusListener, removeListener, removeListener, setDateFormat, setDateOutOfRangeMessage, setInternalValue, setLenient, setParseErrorMessage, setRangeEnd, setRangeStart, setResolution, setShowISOWeekNumbers, setTimeZone, setValue, shouldHideErrors, validate, writeDesign |
Methods inherited from class com.vaadin.ui.AbstractField |
addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, attach, beforeClientResponse, clear, commit, detach, discard, fireReadOnlyStatusChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, getValue, isBuffered, isEmpty, isImmediate, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, toString, validate, valueChange |
Methods inherited from class com.vaadin.ui.AbstractComponent |
addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined |
Methods inherited from class com.vaadin.server.AbstractClientConnector |
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.vaadin.ui.Component |
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible |
Methods inherited from interface com.vaadin.server.ClientConnector |
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
Methods inherited from interface com.vaadin.shared.Connector |
getConnectorId |
Methods inherited from interface com.vaadin.server.Sizeable |
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined |
PopupDateField
public PopupDateField()
PopupDateField
public PopupDateField(Property dataSource)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
PopupDateField
public PopupDateField(java.lang.String caption,
java.util.Date value)
PopupDateField
public PopupDateField(java.lang.String caption,
Property dataSource)
PopupDateField
public PopupDateField(java.lang.String caption)
paintContent
public void paintContent(PaintTarget target)
throws PaintException
- Description copied from interface:
LegacyComponent
Paints the Paintable into a UIDL stream. This method creates the UIDL
sequence describing it and outputs it to the given UIDL stream.
It is called when the contents of the component should be painted in
response to the component first being shown or having been altered so
that its visual representation is changed.
- Specified by:
paintContent
in interface LegacyComponent
- Overrides:
paintContent
in class DateField
- Parameters:
target
- the target UIDL stream where the component should paint itself
to.
- Throws:
PaintException
- if the paint operation failed.
getInputPrompt
public java.lang.String getInputPrompt()
- Gets the current input prompt.
- Returns:
- the current input prompt, or null if not enabled
- See Also:
setInputPrompt(String)
setInputPrompt
public void setInputPrompt(java.lang.String inputPrompt)
- Sets the input prompt - a textual prompt that is displayed when the field
would otherwise be empty, to prompt the user for input.
- Parameters:
inputPrompt
-
getState
protected com.vaadin.shared.ui.datefield.PopupDateFieldState getState()
- Description copied from class:
AbstractComponent
- Returns the shared state bean with information to be sent from the server
to the client.
Subclasses should override this method and set any relevant fields of the
state returned by super.getState().
- Overrides:
getState
in class DateField
- Returns:
- updated component shared state
getState
protected com.vaadin.shared.ui.datefield.PopupDateFieldState getState(boolean markAsDirty)
- Description copied from class:
AbstractClientConnector
- Returns the shared state for this connector.
- Overrides:
getState
in class DateField
- Parameters:
markAsDirty
- true if the connector should automatically be marked dirty,
false otherwise
- Returns:
- The shared state for this connector. Never null.
- See Also:
AbstractClientConnector.getState()
isTextFieldEnabled
public boolean isTextFieldEnabled()
- Checks whether the text field is enabled (default) or not.
- Returns:
- true if the text field is enabled, false otherwise.
- See Also:
setTextFieldEnabled(boolean);
setTextFieldEnabled
public void setTextFieldEnabled(boolean state)
- Enables or disables the text field. By default the text field is enabled.
Disabling it causes only the button for date selection to be active, thus
preventing the user from entering invalid dates.
See
http://dev.vaadin.com/ticket/6790
.
- Parameters:
state
- true to enable text field, false to disable it.
setAssistiveText
public void setAssistiveText(java.lang.String description)
- Set a description that explains the usage of the Widget for users of
assistive devices.
- Parameters:
description
- String with the description
getAssistiveText
public java.lang.String getAssistiveText()
- Get the description that explains the usage of the Widget for users of
assistive devices.
- Returns:
- String with the description
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.