|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFlexTable
com.vaadin.client.ui.FocusableFlexTable
com.vaadin.client.ui.VCalendarPanel
public class VCalendarPanel
| Nested Class Summary | |
|---|---|
static interface |
VCalendarPanel.FocusChangeListener
FocusChangeListener is notified when the panel changes its _focused_ value. |
class |
VCalendarPanel.FocusedDate
Helper class to inform the screen reader that the user changed the selected date. |
static interface |
VCalendarPanel.FocusOutListener
Blur listener that listens to blur event from the panel |
static interface |
VCalendarPanel.SubmitListener
|
static interface |
VCalendarPanel.TimeChangeListener
Dispatches an event when the panel when time is changed |
class |
VCalendarPanel.VTime
TimeSelector is a widget consisting of list boxes that modifie the Date object that is given for. |
| Constructor Summary | |
|---|---|
VCalendarPanel()
|
|
| Method Summary | |
|---|---|
protected int |
getBackwardKey()
The key that selects the previous day in the calendar. |
protected int |
getCloseKey()
Returns the key that closes the popup window if this is a VPopopCalendar. |
java.util.Date |
getDate()
|
protected int |
getForwardKey()
The key that selects the next day in the calendar. |
protected int |
getNextKey()
The key that selects the next week in the calendar. |
protected int |
getPreviousKey()
The key that selects the previous week in the calendar. |
protected int |
getResetKey()
Returns the reset key which will reset the calendar to the previous selection. |
com.vaadin.shared.ui.datefield.Resolution |
getResolution()
|
protected int |
getSelectKey()
Returns the select key which selects the value. |
VCalendarPanel.SubmitListener |
getSubmitListener()
Returns the submit listener that listens to selection made from the 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. |
protected boolean |
handleNavigation(int keycode,
boolean ctrl,
boolean shift)
Handles the keyboard navigation |
protected boolean |
handleNavigationDayMode(int keycode,
boolean ctrl,
boolean shift)
Handle keyboard navigation what the resolution is set to DAY |
protected boolean |
handleNavigationMonthMode(int keycode,
boolean ctrl,
boolean shift)
Handle the keyboard navigation when the resolution is set to MONTH |
protected boolean |
handleNavigationYearMode(int keycode,
boolean ctrl,
boolean shift)
Handles the keyboard navigation when the resolution is set to years. |
boolean |
isShowISOWeekNumbers()
Returns whether ISO 8601 week numbers should be shown in the value selector or not. |
void |
onBlur(BlurEvent event)
|
protected void |
onDetach()
|
void |
onFocus(FocusEvent event)
|
void |
onKeyDown(KeyDownEvent event)
|
void |
onKeyPress(KeyPressEvent event)
|
void |
onMouseDown(MouseDownEvent event)
|
void |
onMouseOut(MouseOutEvent event)
|
void |
onMouseUp(MouseUpEvent event)
|
protected boolean |
onTabOut(
If true should be returned if the panel will not be used after this event. |
protected boolean |
onValueChange()
|
void |
renderCalendar()
Updates the calendar and text field with the selected dates. |
void |
renderCalendar(boolean updateDate)
For internal use only. |
void |
setDate(java.util.Date currentDate)
Sets the data of the Panel. |
void |
setDateTimeService(DateTimeService dateTimeService)
|
void |
setFocusChangeListener(VCalendarPanel.FocusChangeListener listener)
The given FocusChangeListener is notified when the focused date changes by user either clicking on a new date or by using the keyboard. |
void |
setFocusOutListener(VCalendarPanel.FocusOutListener listener)
A focus out listener is triggered when the panel loosed focus. |
void |
setParentField(VDateField parent)
|
void |
setRangeEnd(java.util.Date newRangeEnd)
Sets the end range for this component. |
void |
setRangeStart(java.util.Date newRangeStart)
Sets the start range for this component. |
void |
setResolution(com.vaadin.shared.ui.datefield.Resolution resolution)
|
void |
setShowISOWeekNumbers(boolean showISOWeekNumbers)
|
void |
setStyleName(java.lang.String style)
|
void |
setStylePrimaryName(java.lang.String style)
|
void |
setSubmitListener(VCalendarPanel.SubmitListener submitListener)
The submit listener is called when the user selects a value from the calender either by clicking the day or selects it by keyboard. |
void |
setTimeChangeListener(VCalendarPanel.TimeChangeListener listener)
The time change listener is triggered when the user changes the time. |
| Methods inherited from class com.vaadin.client.ui.FocusableFlexTable |
|---|
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, focus, setFocus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VCalendarPanel()
| Method Detail |
|---|
public void setParentField(VDateField parent)
protected boolean onValueChange()
public com.vaadin.shared.ui.datefield.Resolution getResolution()
public void setResolution(com.vaadin.shared.ui.datefield.Resolution resolution)
public void setStyleName(java.lang.String style)
public void setStylePrimaryName(java.lang.String style)
public void setDateTimeService(DateTimeService dateTimeService)
public boolean isShowISOWeekNumbers()
public void setShowISOWeekNumbers(boolean showISOWeekNumbers)
public void renderCalendar()
public void renderCalendar(boolean updateDate)
updateDate - The value false prevents setting the selected date of the
calendar based on focusedDate. That can be used when only the
resolution of the calendar is changed and no date has been
selected.public void onKeyDown(KeyDownEvent event)
public void onKeyPress(KeyPressEvent event)
protected boolean handleNavigationYearMode(int keycode,
boolean ctrl,
boolean shift)
keycode - The keycode to processctrl - Is ctrl pressed?shift - is shift pressed
protected boolean handleNavigationMonthMode(int keycode,
boolean ctrl,
boolean shift)
keycode - The keycode to handlectrl - Was the ctrl key pressed?shift - Was the shift key pressed?
protected boolean handleNavigationDayMode(int keycode,
boolean ctrl,
boolean shift)
keycode - The keycode to handlectrl - Was the ctrl key pressed?shift - Was the shift key pressed?
protected boolean handleNavigation(int keycode,
boolean ctrl,
boolean shift)
keycode - The key code that was pressedctrl - Was the ctrl key pressedshift - Was the shift key pressed
protected int getResetKey()
protected int getSelectKey()
protected int getCloseKey()
protected int getForwardKey()
protected int getBackwardKey()
protected int getNextKey()
protected int getPreviousKey()
public void onMouseOut(MouseOutEvent event)
public void onMouseDown(MouseDownEvent event)
public void onMouseUp(MouseUpEvent event)
public void setDate(java.util.Date currentDate)
currentDate - The date to setpublic java.util.Date getDate()
protected boolean onTabOut(event)
event -
public void setFocusOutListener(VCalendarPanel.FocusOutListener listener)
listener - The listener to triggerpublic void setSubmitListener(VCalendarPanel.SubmitListener submitListener)
submitListener - The listener to triggerpublic void setFocusChangeListener(VCalendarPanel.FocusChangeListener listener)
listener - The FocusChangeListener to be notifiedpublic void setTimeChangeListener(VCalendarPanel.TimeChangeListener listener)
listener - public VCalendarPanel.SubmitListener getSubmitListener()
public void onBlur(BlurEvent event)
public void onFocus(FocusEvent event)
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 SubPartAwaresubElement - The element the identifier string should uniquely identify
subElement or null
if no identifier could be provided.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 SubPartAwaresubPart - The identifier for the element inside the component
protected void onDetach()
public void setRangeStart(java.util.Date newRangeStart)
startDate - - the allowed range's start datepublic void setRangeEnd(java.util.Date newRangeEnd)
endDate - - the allowed range's end date
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||