public class VPopupCalendar extends VTextualDate implements Field, com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>, SubPartAware
com.vaadin.client.ui.VCalendarPanel and then pass
set it by calling the setCalendarPanel(VCalendarPanel panel)
method.com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
VCalendarPanel |
calendar
For internal use only.
|
com.google.gwt.user.client.ui.Button |
calendarToggle
For internal use only.
|
boolean |
parsable
For internal use only.
|
VOverlay |
popup
For internal use only.
|
ATTR_INPUTPROMPT, formatStr, inputPrompt, lenient, textCLASSNAME, client, currentLocale, currentResolution, dts, enabled, immediate, paintableId, readonly, RESOLUTION_DAY, RESOLUTION_HOUR, RESOLUTION_MIN, RESOLUTION_MONTH, RESOLUTION_SEC, RESOLUTION_YEAR, showISOWeekNumbers| Constructor and Description |
|---|
VPopupCalendar() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindAriaCaption(com.google.gwt.user.client.Element captionElement)
Called to bind the provided caption (label in HTML speak) element to the
main input element of the Widget.
|
void |
buildDate()
For internal use only.
|
protected void |
buildDate(boolean forceValid)
Update the text field contents from the date.
|
void |
closeCalendarPanel()
Closes the open popup panel
|
String |
getDescriptionForAssistiveDevices()
Get the description that explains the usage of the Widget for users of
assistive devices.
|
protected int |
getOpenCalenderPanelKey()
Get the key code that opens the calendar panel.
|
com.google.gwt.user.client.Element |
getSubPartElement(String subPart)
Locates an element inside a component using the identifier provided in
subPart. |
String |
getSubPartName(com.google.gwt.user.client.Element subElement)
Provides an identifier that identifies the element within the component.
|
boolean |
isTextFieldEnabled()
Checks whether the text field is enabled.
|
protected void |
onAttach() |
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event) |
protected void |
onDetach() |
void |
openCalendarPanel()
Opens the calendar panel popup
|
void |
setDescriptionForAssistiveDevices(String descriptionForAssistiveDevices)
Set a description that explains the usage of the Widget for users of
assistive devices.
|
void |
setEnabled(boolean enabled) |
void |
setFocus(boolean focus)
Sets focus to Calendar panel.
|
void |
setFocusedDate(Date selectedDate)
Sets the content of a special field for assistive devices, so that they
can recognize the change and inform the user (reading out in case of
screen reader)
|
void |
setRangeEnd(Date rangeEnd)
Sets the end range for this component.
|
void |
setRangeStart(Date rangeStart)
Sets the start range for this component.
|
void |
setStyleName(String style) |
void |
setStylePrimaryName(String style) |
void |
setTextFieldEnabled(boolean textFieldEnabled)
Sets the state of the text field of this component.
|
void |
setTextFieldTabIndex()
Set correct tab index for disabled text field in IE as the value set in
setTextFieldEnabled(...) gets overridden in
TextualDateConnection.updateFromUIDL(...)
|
protected void |
updateStyleNames() |
protected void |
updateTextFieldEnabled() |
void |
updateValue(Date newDate) |
focus, getFormatString, getText, onChange, onKeyDown, setAriaInvalid, setAriaRequired, setPrompting, setTextgetClient, getCurrentDate, getCurrentLocale, getCurrentResolution, getDate, getDateTimeService, getId, getMilliseconds, getTime, isEnabled, isImmediate, isReadonly, isShowISOWeekNumbers, resolutionToString, setCurrentDate, setCurrentLocale, setCurrentResolution, setDate, setImmediate, setMilliseconds, setReadonly, setShowISOWeekNumbersadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removeforEach, spliteratorpublic final com.google.gwt.user.client.ui.Button calendarToggle
public VCalendarPanel calendar
public final VOverlay popup
public boolean parsable
protected void onAttach()
onAttach in class com.google.gwt.user.client.ui.Widgetprotected void onDetach()
onDetach in class com.google.gwt.user.client.ui.Widgetpublic void updateValue(Date newDate)
public boolean isTextFieldEnabled()
setTextFieldEnabled(boolean)public void setTextFieldEnabled(boolean textFieldEnabled)
http://dev.vaadin.com/ticket/6790.state - protected void updateTextFieldEnabled()
public void setTextFieldTabIndex()
public void bindAriaCaption(com.google.gwt.user.client.Element captionElement)
HandlesAriaCaptionbindAriaCaption in interface HandlesAriaCaptionbindAriaCaption in class VTextualDatecaptionElement - Element of the captionpublic void setStyleName(String style)
setStyleName in class com.google.gwt.user.client.ui.UIObjectpublic void setStylePrimaryName(String style)
setStylePrimaryName in class com.google.gwt.user.client.ui.UIObjectprotected void updateStyleNames()
updateStyleNames in class VTextualDatepublic void openCalendarPanel()
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerpublic void onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event)
onClose in interface com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>public void setFocus(boolean focus)
focus - public void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledsetEnabled in class VTextualDatepublic void setFocusedDate(Date selectedDate)
selectedDate - Date that is currently selectedpublic void buildDate()
buildDate in class VTextualDateVTextualDate.buildDate()protected void buildDate(boolean forceValid)
buildDate().forceValid - true to force the text field to be updated, false to only
update if the parsable flag is true.public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetprotected int getOpenCalenderPanelKey()
public void closeCalendarPanel()
public com.google.gwt.user.client.Element getSubPartElement(String subPart)
SubPartAwaresubPart. The subPart identifier is component specific and
may be any string of characters, numbers, space characters and brackets.getSubPartElement in interface SubPartAwaregetSubPartElement in class VTextualDatesubPart - The identifier for the element inside the componentpublic String getSubPartName(com.google.gwt.user.client.Element subElement)
SubPartAwaresubElement is a part of the component and must never be null.
Note!
getSubPartElement(getSubPartName(element)) == element is not
always true. A component can choose to provide a more generic
identifier for any given element if the results of all interactions with
subElement are the same as interactions with the element
identified by the return value. For example a button can return an
identifier for the root element even though a DIV inside the button was
passed as subElement because interactions with the DIV and the
root button element produce the same result.
getSubPartName in interface SubPartAwaregetSubPartName in class VTextualDatesubElement - The element the identifier string should uniquely identifysubElement or null
if no identifier could be provided.public void setDescriptionForAssistiveDevices(String descriptionForAssistiveDevices)
descriptionForAssistiveDevices - String with the descriptionpublic String getDescriptionForAssistiveDevices()
public void setRangeStart(Date rangeStart)
startDate - - the allowed range's start datepublic void setRangeEnd(Date rangeEnd)
endDate - - the allowed range's end dateCopyright © 2016 Vaadin Ltd. All rights reserved.