|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.GObject | +--org.gnu.gtk.GtkObject | +--org.gnu.gtk.Widget | +--org.gnu.gtk.Container | +--org.gnu.gtk.Box | +--org.gnu.gtk.HBox | +--org.gnu.gnome.DateEdit
A control which allows the user to select a date.
Constructor Summary | |
DateEdit(java.util.Date date,
boolean timeDisplay,
boolean use24fmt)
Creates a new DateEdit control initialized to the given date. |
|
DateEdit(int handle)
Construct a new DateEdit from a handle to a native resource. |
Method Summary | |
void |
addListener(DateEditListener listener)
Register an object to handle DateEdit events. |
boolean |
get24HourFormat()
Returns true if the control shows the time in the 24 hour format. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
GtkEventType |
getEventType(java.lang.String signal)
|
java.util.Date |
getInitialTime()
|
java.util.Date |
getTime()
Get the date/time indicated in the DateEdit control. |
boolean |
getTimeDisplay()
Returns true if the control shows the time as well as date. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
void |
removeListener(DateEditListener listener)
Removes a listener |
void |
set24HourFormat(boolean enabled)
Change the way the time display is formated. |
void |
setPopupRange(int lowHour,
int upHour)
|
void |
setTime(java.util.Date date)
Set the date/time indicated in the DateEdit control. |
void |
setTimeDisplay(boolean enabled)
Enabled/Disable the functionallity which shows time as well as date. |
Methods inherited from class org.gnu.gtk.Box |
getHomogeneous, getSpacing, packEnd, packEnd, packStart, packStart, reorderChild, setHomogeneous, setSpacing |
Methods inherited from class org.gnu.gtk.Container |
add, addListener, getBorderWidth, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DateEdit(java.util.Date date, boolean timeDisplay, boolean use24fmt)
date
- The date to which the control should be initilized.timeDisplay
- True if the time should be shown. False if the date
only should be shown.use24fmt
- True if the control should display time in the 24 hour
format. False if the 24 hour format should not be used.public DateEdit(int handle)
Method Detail |
public boolean get24HourFormat()
public java.util.Date getInitialTime()
public java.util.Date getTime()
public boolean getTimeDisplay()
public void setPopupRange(int lowHour, int upHour)
public void setTime(java.util.Date date)
date
- The date/time to display.public void set24HourFormat(boolean enabled)
enabled
- True if time should be shown in 24 hour format. Flase if
the date should be shown in 12 hour format.public void setTimeDisplay(boolean enabled)
enabled
- True if time should be shown. Flase if the date only
should be shown.public static Type getType()
public void addListener(DateEditListener listener)
DateEditListener
public void removeListener(DateEditListener listener)
#addListener(DateEditListeners)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Container
public GtkEventType getEventType(java.lang.String signal)
getEventType
in class Container
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |