com.vaadin.ui
Class PopupDateField
java.lang.Object
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractField
com.vaadin.ui.DateField
com.vaadin.ui.PopupDateField
- All Implemented Interfaces:
- Buffered, BufferedValidatable, Property, Property.Editor, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer, Validatable, Action.ShortcutNotifier, FieldEvents.BlurNotifier, FieldEvents.FocusNotifier, MethodEventSource, Paintable, Sizeable, VariableOwner, Component, Component.Focusable, Field, Serializable, EventListener
public class PopupDateField
- extends DateField
A date entry component, which displays the actual date selector as a popup.
- Since:
- 5.0
- Version:
- 6.8.18
- Author:
- Vaadin Ltd.
- See Also:
DateField
,
InlineDateField
,
Serialized Form
Method Summary |
String |
getInputPrompt()
Gets the current input prompt. |
void |
paintContent(PaintTarget target)
Paints any needed component-specific things to the given UIDL stream. |
void |
setInputPrompt(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. |
Methods inherited from class com.vaadin.ui.DateField |
addListener, addListener, changeVariables, getDateFormat, getParseErrorMessage, getResolution, getTimeZone, getType, handleUnparsableDateString, isLenient, isShowISOWeekNumbers, isValid, removeListener, removeListener, setDateFormat, setInternalValue, setLenient, setParseErrorMessage, setPropertyDataSource, setResolution, setShowISOWeekNumbers, setTimeZone, setValue, shouldHideErrors, validate |
Methods inherited from class com.vaadin.ui.AbstractField |
addListener, addListener, addShortcutListener, addValidator, attach, commit, constructField, detach, discard, fireReadOnlyStatusChange, fireValueChange, focus, getActionManager, getErrorMessage, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, getValue, isEmpty, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isReadThrough, isRequired, isValidationVisible, isWriteThrough, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeShortcutListener, removeValidator, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setReadOnly, setReadThrough, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, setWriteThrough, toString, valueChange |
Methods inherited from class com.vaadin.ui.AbstractComponent |
addListener, addListener, addListener, addListener, addListener, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setErrorHandler, setHeight, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidth, setWidthUnits |
PopupDateField
public PopupDateField()
PopupDateField
public PopupDateField(Property dataSource)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
PopupDateField
public PopupDateField(String caption,
Date value)
PopupDateField
public PopupDateField(String caption,
Property dataSource)
PopupDateField
public PopupDateField(String caption)
paintContent
public void paintContent(PaintTarget target)
throws PaintException
- Description copied from class:
AbstractComponent
- Paints any needed component-specific things to the given UIDL stream. The
more general
AbstractComponent.paint(PaintTarget)
method handles all general
attributes common to all components, and it calls this method to paint
any component-specific attributes to the UIDL stream.
- 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 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(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
-
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.