|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Calendar
public class Calendar
A Calendar is a widget that displays a calendar one month at a time.
Constructor Summary | |
---|---|
Calendar()
Create a new Calendar object with the current date selected. |
|
Calendar(org.gnu.glib.Handle handle)
Construct a calendar using a handle to a native resource. |
Method Summary | |
---|---|
void |
addListener(CalendarListener listener)
Register an object to handle calendar events. |
void |
clearMarks()
Remove all visual marks. |
void |
freeze()
Deprecated. |
static Calendar |
getCalendar(org.gnu.glib.Handle handle)
Internal static factory method to be used by Java-Gnome only. |
java.util.Calendar |
getDate()
Deprecated. the form returning java.util.Calendar is deprecated and will be replaced. Use getYearMonthDay() as a workaround
until libgtk-java 2.10, when getDate() will return an int[3]
instead. |
CalendarDisplayOptions |
getDisplayOptions()
Gets the display options (whether to display the heading and the month headings. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
EventType |
getEventType(java.lang.String signal)
|
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
int[] |
getYearMonthDay()
Gets the selected date from a Calendar. |
void |
markDay(int day)
Places a visual marker on a particular day. |
void |
removeListener(CalendarListener listener)
Removes a listener |
void |
selectDay(int day)
Selects a day from the current month. |
void |
selectMonth(int month,
int year)
Shifts the calendar to a different month. |
void |
setDisplayOptions(CalendarDisplayOptions displayOptions)
Sets the display options (whether to display the heading and the month headings. |
void |
thaw()
Deprecated. |
void |
unmarkDay(int day)
Removes the visual marker from a particular day. |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Calendar()
public Calendar(org.gnu.glib.Handle handle)
Method Detail |
---|
public static Calendar getCalendar(org.gnu.glib.Handle handle)
public void selectMonth(int month, int year)
month
- The month to select. This value is zero based.year
- The year the month is in.public void selectDay(int day)
day
- A day number between 1 and 31, or 0 to unselect the currently
selected day.public void markDay(int day)
day
- The day number to mark between 1 and 31.public void unmarkDay(int day)
day
- The day number to unmark between 1 and 31.public void clearMarks()
public void setDisplayOptions(CalendarDisplayOptions displayOptions)
displayOptions
- The options to set.public CalendarDisplayOptions getDisplayOptions()
public java.util.Calendar getDate()
getYearMonthDay()
as a workaround
until libgtk-java 2.10, when getDate() will return an int[3]
instead.
public int[] getYearMonthDay()
public void freeze()
thaw()
method.
public void thaw()
freeze()
are displayed.
public void addListener(CalendarListener listener)
CalendarListener
public void removeListener(CalendarListener listener)
addListener(CalendarListener)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Widget
public EventType getEventType(java.lang.String signal)
getEventType
in class Widget
public static Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |