|
java-gnome version 4.0.7 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Objectorg.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gtk.Object
org.gnome.gtk.Widget
org.gnome.gtk.Calendar
public class Calendar
Displays a monthly calendar with which users select a date.
| Nested Class Summary | |
|---|---|
static interface |
Calendar.DAY_SELECTED
Signal emitted when the user selects on one of the days showing in the Calendar. |
static interface |
Calendar.DAY_SELECTED_DOUBLE_CLICK
Signal emitted when the user double clicks on one of the days showing in the Calendar. |
| Nested classes/interfaces inherited from class org.gnome.gtk.Widget |
|---|
Widget.BUTTON_PRESS_EVENT, Widget.BUTTON_RELEASE_EVENT, Widget.ENTER_NOTIFY_EVENT, Widget.EXPOSE_EVENT, Widget.FOCUS_IN_EVENT, Widget.FOCUS_OUT_EVENT, Widget.HIDE, Widget.KEY_PRESS_EVENT, Widget.KEY_RELEASE_EVENT, Widget.LEAVE_NOTIFY_EVENT, Widget.UNMAP_EVENT, Widget.VISIBILITY_NOTIFY_EVENT |
| Constructor Summary | |
|---|---|
Calendar()
Creates a new Calendar instance. |
|
| Method Summary | |
|---|---|
void |
connect(Calendar.DAY_SELECTED_DOUBLE_CLICK handler)
Hook up a handler for DAY_SELECTED_DOUBLE_CLICK signals. |
void |
connect(Calendar.DAY_SELECTED handler)
Hook up a handler for DAY_SELECTED signals. |
int |
getDateDay()
Get the day of the date currently selected in this Calendar. |
int |
getDateMonth()
Get the month of the date currently selected in this Calendar. |
int |
getDateYear()
Get the year of the date currently selected in this Calendar. |
CalendarDisplayOptions |
getDisplayOptions()
Returns the Flags object describing the current options enabled in this Calendar. |
void |
selectDay(int day)
Select the day showing on this Calendar. |
void |
selectMonth(int month,
int year)
Change the month (and year) showing on this Calendar. |
void |
setDisplayOptions(CalendarDisplayOptions flags)
Sets the various options which control the details of how this Calendar is to be displayed. |
| Methods inherited from class org.gnome.gtk.Widget |
|---|
activate, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getAllocation, getHasFocus, getParent, getRequisition, getToplevel, getWindow, grabFocus, hide, modifyBackground, modifyText, setCanFocus, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll |
| Methods inherited from class org.freedesktop.bindings.Proxy |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Calendar()
| Method Detail |
|---|
public void connect(Calendar.DAY_SELECTED_DOUBLE_CLICK handler)
DAY_SELECTED_DOUBLE_CLICK signals.
public void connect(Calendar.DAY_SELECTED handler)
DAY_SELECTED signals.
public int getDateDay()
getDateYear() and
getDateMonth() for the other components of the
date.
public int getDateMonth()
getDateYear() and
getDateDay() for the other components of the
date.
1 to 12.public int getDateYear()
getDateMonth() and
getDateDay() for the other components of the
date.
public CalendarDisplayOptions getDisplayOptions()
public void selectDay(int day)
selectMonth() to change the month and
year.
day - should be in the range of 1 to
31. Passing 0 will unselect
the day.
public void selectMonth(int month,
int year)
selectDay() to change the day that is selected.
month - is in the range of 1 (January) to
12 (December).year - a four-digit year.public void setDisplayOptions(CalendarDisplayOptions flags)
CalendarDisplayOptions
for details.
|
![]() java-gnome |
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||