org.gnu.gnome
public class DateEdit extends HBox
Constructor Summary | |
---|---|
DateEdit(Date date, boolean timeDisplay, boolean use24fmt)
Creates a new DateEdit control initialized to the given date.
| |
DateEdit(Handle 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.
|
static DateEdit | getDateEdit(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
Date | getInitialTime() |
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(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.
|
Parameters: 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.
See Also: DateEditListener
Returns: True if time is being shown in the 24 hour format. Flase if the time is being shown in the 12 hour format.
Returns: the date/time.
Returns: True if time is being shown. Flase if the date only is being shown.
See Also: addListener
Parameters: enabled True if time should be shown in 24 hour format. Flase if the date should be shown in 12 hour format.
Parameters: date The date/time to display.
Parameters: enabled True if time should be shown. Flase if the date only should be shown.