A Calendar is a widget that displays a calendar one month at a time.
clearMarks
public void clearMarks()
Remove all visual marks.
freeze
public void freeze()
Locks the display of the Calendar until it is thawed
with the thaw()
method.
getDate
public java.util.Calendar getDate()
Gets the selected date from a Calendar.
- A Calendar object that represents the date selected
in the widget.
getDisplayOptions
public CalendarDisplayOptions getDisplayOptions()
Gets the display options (whether to display the heading and the
month headings.
getEventListenerClass
public Class getEventListenerClass(String signal)
- getEventListenerClass in interface Widget
getEventType
public EventType getEventType(String signal)
- getEventType in interface Widget
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Widget
gtk_calendar_clear_marks
protected static final void gtk_calendar_clear_marks(Handle calendar)
gtk_calendar_freeze
protected static final void gtk_calendar_freeze(Handle calendar)
gtk_calendar_get_date
protected static final void gtk_calendar_get_date(Handle calendar,
int[] year,
int[] month,
int[] day)
gtk_calendar_get_display_options
protected static final int gtk_calendar_get_display_options(Handle calendar)
gtk_calendar_get_type
protected static final int gtk_calendar_get_type()
gtk_calendar_mark_day
protected static final int gtk_calendar_mark_day(Handle calendar,
int day)
gtk_calendar_new
protected static final Handle gtk_calendar_new()
gtk_calendar_select_day
protected static final void gtk_calendar_select_day(Handle calendar,
int day)
gtk_calendar_select_month
protected static final int gtk_calendar_select_month(Handle calendar,
int month,
int year)
gtk_calendar_set_display_options
protected static final void gtk_calendar_set_display_options(Handle calendar,
int flags)
gtk_calendar_thaw
protected static final void gtk_calendar_thaw(Handle calendar)
gtk_calendar_unmark_day
protected static final int gtk_calendar_unmark_day(Handle calendar,
int day)
markDay
public void markDay(int day)
Places a visual marker on a particular day.
day
- The day number to mark between 1 and 31.
selectDay
public void selectDay(int day)
Selects a day from the current month.
day
- A day number between 1 and 31, or 0 to unselect the
currently selected day.
selectMonth
public void selectMonth(int month,
int year)
Shifts the calendar to a different month.
month
- The month to select. This value is zero based.year
- The year the month is in.
setDisplayOptions
public void setDisplayOptions(CalendarDisplayOptions displayOptions)
Sets the display options (whether to display the heading and the
month headings.
displayOptions
- The options to set.
thaw
public void thaw()
Defrosts a Calendar. All changes made since the last
freeze()
are displayed.
unmarkDay
public void unmarkDay(int day)
Removes the visual marker from a particular day.
day
- The day number to unmark between 1 and 31.