|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.HTMLTable
com.google.gwt.user.client.ui.FlexTable
com.vaadin.terminal.gwt.client.ui.FocusableFlexTable
com.vaadin.terminal.gwt.client.ui.VCalendarPanel
public class VCalendarPanel
| Nested Class Summary | |
|---|---|
static interface |
VCalendarPanel.FocusChangeListener
FocusChangeListener is notified when the panel changes its _focused_ value. |
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. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.FlexTable |
|---|
com.google.gwt.user.client.ui.FlexTable.FlexCellFormatter |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.HTMLTable |
|---|
com.google.gwt.user.client.ui.HTMLTable.Cell, com.google.gwt.user.client.ui.HTMLTable.CellFormatter, com.google.gwt.user.client.ui.HTMLTable.ColumnFormatter, com.google.gwt.user.client.ui.HTMLTable.RowFormatter |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| 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. |
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. |
int |
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(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. |
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(com.google.gwt.event.dom.client.BlurEvent event)
|
protected void |
onDetach()
|
void |
onFocus(com.google.gwt.event.dom.client.FocusEvent event)
|
void |
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
|
void |
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
|
void |
onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
|
void |
onMouseOut(com.google.gwt.event.dom.client.MouseOutEvent event)
|
void |
onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
|
protected boolean |
onTabOut(com.google.gwt.event.dom.client.DomEvent<?> event)
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 |
setDate(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 |
setResolution(int resolution)
|
void |
setShowISOWeekNumbers(boolean showISOWeekNumbers)
|
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.terminal.gwt.client.ui.FocusableFlexTable |
|---|
addBlurHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, focus, setFocus |
| Methods inherited from class com.google.gwt.user.client.ui.FlexTable |
|---|
addCell, getCellCount, getFlexCellFormatter, getRowCount, insertCell, insertRow, prepareCell, prepareRow, removeAllRows, removeCell, removeCells, removeRow |
| Methods inherited from class com.google.gwt.user.client.ui.HTMLTable |
|---|
addClickHandler, addDoubleClickHandler, addTableListener, checkCellBounds, checkRowBounds, clear, clear, clearCell, createCell, getBodyElement, getCellForEvent, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getDOMCellCount, getDOMCellCount, getDOMRowCount, getDOMRowCount, getEventTargetCell, getHTML, getRowFormatter, getText, getWidget, insertCells, internalClearCell, isCellPresent, iterator, onEnsureDebugId, prepareColumn, remove, removeTableListener, setBorderWidth, setCellFormatter, setCellPadding, setCellSpacing, setColumnFormatter, setHTML, setHTML, setRowFormatter, setText, setWidget, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
add, add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public VCalendarPanel()
| Method Detail |
|---|
protected boolean onValueChange()
public int getResolution()
public void setResolution(int resolution)
public void setDateTimeService(DateTimeService dateTimeService)
public boolean isShowISOWeekNumbers()
public void setShowISOWeekNumbers(boolean showISOWeekNumbers)
public void renderCalendar()
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
onKeyDown in interface com.google.gwt.event.dom.client.KeyDownHandlerpublic void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandler
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(com.google.gwt.event.dom.client.MouseOutEvent event)
onMouseOut in interface com.google.gwt.event.dom.client.MouseOutHandlerpublic void onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
onMouseDown in interface com.google.gwt.event.dom.client.MouseDownHandlerpublic void onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
onMouseUp in interface com.google.gwt.event.dom.client.MouseUpHandlerpublic void setDate(Date currentDate)
currentDate - The date to setpublic Date getDate()
protected boolean onTabOut(com.google.gwt.event.dom.client.DomEvent<?> 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(com.google.gwt.event.dom.client.BlurEvent event)
onBlur in interface com.google.gwt.event.dom.client.BlurHandlerpublic void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
onFocus in interface com.google.gwt.event.dom.client.FocusHandlerpublic 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(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()
onDetach in class com.google.gwt.user.client.ui.Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||