|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFlowPanel
com.vaadin.client.ui.VDateField
com.vaadin.client.ui.VTextualDate
com.vaadin.client.ui.VPopupCalendar
public class VPopupCalendar
Represents a date selection component with a text field and a popup date
selector.
Note: To change the keyboard assignments used in the popup dialog you
should extend com.vaadin.client.ui.VCalendarPanel and then pass
set it by calling the setCalendarPanel(VCalendarPanel panel)
method.
| Field Summary | |
|---|---|
VCalendarPanel |
calendar
For internal use only. |
Button |
calendarToggle
For internal use only. |
boolean |
parsable
For internal use only. |
VOverlay |
popup
For internal use only. |
| Fields inherited from class com.vaadin.client.ui.VTextualDate |
|---|
ATTR_INPUTPROMPT, formatStr, inputPrompt, lenient, text |
| Fields inherited from class com.vaadin.client.ui.VDateField |
|---|
CLASSNAME, client, currentLocale, currentResolution, dts, enabled, immediate, paintableId, readonly, RESOLUTION_DAY, RESOLUTION_HOUR, RESOLUTION_MIN, RESOLUTION_MONTH, RESOLUTION_SEC, RESOLUTION_YEAR, showISOWeekNumbers |
| Constructor Summary | |
|---|---|
VPopupCalendar()
|
|
| Method Summary | |
|---|---|
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 |
java.lang.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(java.lang.String subPart)
Locates an element inside a component using the identifier provided in subPart. |
java.lang.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(ClickEvent event)
|
void |
onClose(com.google.gwt.event.logical.shared.CloseEvent<PopupPanel> event)
|
protected void |
onDetach()
|
void |
openCalendarPanel()
Opens the calendar panel popup |
void |
setDescriptionForAssistiveDevices(java.lang.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(java.util.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(java.util.Date rangeEnd)
Sets the end range for this component. |
void |
setRangeStart(java.util.Date rangeStart)
Sets the start range for this component. |
void |
setStyleName(java.lang.String style)
|
void |
setStylePrimaryName(java.lang.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(java.util.Date newDate)
|
| Methods inherited from class com.vaadin.client.ui.VTextualDate |
|---|
focus, getFormatString, getText, onChange, onKeyDown, setAriaInvalid, setAriaRequired, setPrompting, setText |
| Methods inherited from class com.vaadin.client.ui.VDateField |
|---|
getClient, getCurrentDate, getCurrentLocale, getCurrentResolution, getDate, getDateTimeService, getId, getMilliseconds, getTime, isEnabled, isImmediate, isReadonly, isShowISOWeekNumbers, resolutionToString, setCurrentDate, setCurrentLocale, setCurrentResolution, setDate, setImmediate, setMilliseconds, setReadonly, setShowISOWeekNumbers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.logical.shared.CloseHandler |
|---|
onClose |
| Field Detail |
|---|
public final Button calendarToggle
public VCalendarPanel calendar
public final VOverlay popup
public boolean parsable
| Constructor Detail |
|---|
public VPopupCalendar()
| Method Detail |
|---|
protected void onAttach()
protected void onDetach()
public void updateValue(java.util.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)
HandlesAriaCaption
bindAriaCaption in interface HandlesAriaCaptionbindAriaCaption in class VTextualDatecaptionElement - Element of the captionpublic void setStyleName(java.lang.String style)
public void setStylePrimaryName(java.lang.String style)
protected void updateStyleNames()
updateStyleNames in class VTextualDatepublic void openCalendarPanel()
public void onClick(ClickEvent event)
public void onClose(com.google.gwt.event.logical.shared.CloseEvent<PopupPanel> event)
public void setFocus(boolean focus)
focus - public void setEnabled(boolean enabled)
setEnabled in class VTextualDatepublic void setFocusedDate(java.util.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)
protected int getOpenCalenderPanelKey()
public void closeCalendarPanel()
public com.google.gwt.user.client.Element getSubPartElement(java.lang.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 component
public java.lang.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 identify
subElement or null
if no identifier could be provided.public void setDescriptionForAssistiveDevices(java.lang.String descriptionForAssistiveDevices)
descriptionForAssistiveDevices - String with the descriptionpublic java.lang.String getDescriptionForAssistiveDevices()
public void setRangeStart(java.util.Date rangeStart)
startDate - - the allowed range's start datepublic void setRangeEnd(java.util.Date rangeEnd)
endDate - - the allowed range's end date
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||