Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
HBox
org.gnu.gnome.DateEdit
public class DateEdit
extends HBox
Constructor Summary | |
| |
|
Method Summary | |
void |
|
boolean |
|
static DateEdit |
|
Class |
|
EventType |
|
Date | |
Date |
|
boolean |
|
static Type |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public DateEdit(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Construct a new DateEdit from a handle to a native resource.
public DateEdit(java.util.Date date, boolean timeDisplay, boolean use24fmt)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Creates a new DateEdit control initialized to the given 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.
public void addListener(DateEditListener listener)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Register an object to handle DateEdit events.
- See Also:
DateEditListener
public boolean get24HourFormat()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Returns true if the control shows the time in the 24 hour format.
- Returns:
- True if time is being shown in the 24 hour format. Flase if the time is being shown in the 12 hour format.
public static DateEdit getDateEdit(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Internal static factory method to be used by Java-Gnome only.
public Class getEventListenerClass(String signal)
public EventType getEventType(String signal)
public Date getInitialTime()
public Date getTime()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Get the date/time indicated in the DateEdit control.
- Returns:
- the date/time.
public boolean getTimeDisplay()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Returns true if the control shows the time as well as date.
- Returns:
- True if time is being shown. Flase if the date only is being shown.
public static Type getType()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.
public void removeListener(DateEditListener listener)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Removes a listener
- See Also:
addListener(DateEditListener)
public void set24HourFormat(boolean enabled)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Change the way the time display is formated.
- Parameters:
enabled
- True if time should be shown in 24 hour format. Flase if the date should be shown in 12 hour format.
public void setPopupRange(int lowHour, int upHour)
public void setTime(Date date)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Set the date/time indicated in the DateEdit control.
- Parameters:
date
- The date/time to display.
public void setTimeDisplay(boolean enabled)
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Enabled/Disable the functionallity which shows time as well as date.
- Parameters:
enabled
- True if time should be shown. Flase if the date only should be shown.