net.pleso.framework.client.ui.controls.calendar
Class CalendarPopup
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
net.pleso.framework.client.ui.controls.calendar.CalendarPopup
- All Implemented Interfaces:
- com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.ChangeListener, com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.PopupListener, com.google.gwt.user.client.ui.SourcesKeyboardEvents
public class CalendarPopup
- extends com.google.gwt.user.client.ui.Composite
- implements com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.ChangeListener, com.google.gwt.user.client.ui.SourcesKeyboardEvents, com.google.gwt.user.client.ui.PopupListener
Widget with textbox for date and button to open calendar.
Using in CalendarDataControl
CSS Styles Rules
- .pf-calendarPopup {widget itself}
- .pf-calendar-icon-html {html with icon of calendar}
Method Summary |
void |
addKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
|
java.lang.String |
getText()
Gets text from date textbox |
void |
onChange(com.google.gwt.user.client.ui.Widget sender)
|
void |
onClick(com.google.gwt.user.client.ui.Widget sender)
|
void |
onPopupClosed(com.google.gwt.user.client.ui.PopupPanel sender,
boolean autoClosed)
|
void |
removeKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
|
void |
setDate(java.util.Date date)
Sets date |
void |
setFocus(boolean focused)
Sets focus into date textbox |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
getElement |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onBrowserEvent, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CalendarPopup
public CalendarPopup()
- Constructor
setDate
public void setDate(java.util.Date date)
- Sets date
- Parameters:
date
- new date
getText
public java.lang.String getText()
- Gets text from date textbox
- Returns:
- text
onClick
public void onClick(com.google.gwt.user.client.ui.Widget sender)
- Specified by:
onClick
in interface com.google.gwt.user.client.ui.ClickListener
onChange
public void onChange(com.google.gwt.user.client.ui.Widget sender)
- Specified by:
onChange
in interface com.google.gwt.user.client.ui.ChangeListener
setFocus
public void setFocus(boolean focused)
- Sets focus into date textbox
- Parameters:
focused
- boolean focus parameter
addKeyboardListener
public void addKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
- Specified by:
addKeyboardListener
in interface com.google.gwt.user.client.ui.SourcesKeyboardEvents
removeKeyboardListener
public void removeKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
- Specified by:
removeKeyboardListener
in interface com.google.gwt.user.client.ui.SourcesKeyboardEvents
onPopupClosed
public void onPopupClosed(com.google.gwt.user.client.ui.PopupPanel sender,
boolean autoClosed)
- Specified by:
onPopupClosed
in interface com.google.gwt.user.client.ui.PopupListener
Copyright © 2006-2007 pleso.net crew All Rights Reserved.