|
Spiffy UI Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTextBox
org.spiffyui.client.widgets.TimePickerTextBox
public class TimePickerTextBox
This widget uses a simple GWT TextBox and attaches the JQuery time picker. When the field gets focus the date picker will become visible.
Constructor Summary | |
---|---|
TimePickerTextBox()
Create a TimePickerTextBox with a random ID. |
|
TimePickerTextBox(java.lang.String id)
Create a TimePickerTextBox with the specified ID. |
Method Summary | |
---|---|
int |
getHours()
Gets the current hours value of the text box |
int |
getMinutes()
Gets the current minutes value of the text box |
boolean |
isEmpty()
Convenience method to determine if the value is empty since the getHours and getMinutes will return -1 for empty as well as unparseable. |
void |
onAttach()
|
void |
onPreviewNativeEvent(NativePreviewEvent event)
|
void |
setDateValue(java.util.Date date)
Sets the value to be the short time of the date |
void |
setDateValueRounded(java.util.Date date)
Sets the value to be the time of the date on the or rounded up to the nearest hour or half hour |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimePickerTextBox()
public TimePickerTextBox(java.lang.String id)
id
- the id for the text boxMethod Detail |
---|
public void onAttach()
public void setDateValue(java.util.Date date)
date
- the date value to setpublic void setDateValueRounded(java.util.Date date)
date
- the date value to setpublic int getHours()
public int getMinutes()
public boolean isEmpty()
public void onPreviewNativeEvent(NativePreviewEvent event)
|
Spiffy UI Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |