Package org.gnome.gtk
Class Calendar.Builder<B extends Calendar.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.gnome.gtk.Widget.Builder<B>
org.gnome.gtk.Calendar.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- Enclosing class:
Calendar
public static class Calendar.Builder<B extends Calendar.Builder<B>>
extends Widget.Builder<B>
implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theCalendarobject.Emitted when the user selects a day.onNextMonth(Calendar.NextMonthCallback handler) Emitted when the user switches to the next month.onNextYear(Calendar.NextYearCallback handler) Emitted when user switches to the next year.onPrevMonth(Calendar.PrevMonthCallback handler) Emitted when the user switches to the previous month.onPrevYear(Calendar.PrevYearCallback handler) Emitted when user switches to the previous year.The selected date.setDay(int day) Deprecated.This property will be removed in GTK 5.setMonth(int month) Deprecated.This property will be removed in GTK 5.setShowDayNames(boolean showDayNames) Determines whether day names are displayed.setShowHeading(boolean showHeading) Determines whether a heading is displayed.setShowWeekNumbers(boolean showWeekNumbers) Determines whether week numbers are displayed.setYear(int year) Deprecated.This property will be removed in GTK 5.Methods inherited from class org.gnome.gtk.Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRoleMethods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theCalendarobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toCalendar.- Overrides:
buildin classWidget.Builder<B extends Calendar.Builder<B>>- Returns:
- a new instance of
Calendarwith the properties that were set in the Builder object.
-
setDate
-
setDay
Deprecated.This property will be removed in GTK 5. UseCalendar:dateinstead.The selected day (as a number between 1 and 31).- Parameters:
day- the value for thedayproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMonth
Deprecated.This property will be removed in GTK 5. UseCalendar:dateinstead.The selected month (as a number between 0 and 11).This property gets initially set to the current month.
- Parameters:
month- the value for themonthproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setShowDayNames
Determines whether day names are displayed.- Parameters:
showDayNames- the value for theshow-day-namesproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setShowHeading
Determines whether a heading is displayed.- Parameters:
showHeading- the value for theshow-headingproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setShowWeekNumbers
Determines whether week numbers are displayed.- Parameters:
showWeekNumbers- the value for theshow-week-numbersproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setYear
Deprecated.This property will be removed in GTK 5. UseCalendar:dateinstead.The selected year.This property gets initially set to the current year.
- Parameters:
year- the value for theyearproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
onDaySelected
Emitted when the user selects a day.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onNextMonth
Emitted when the user switches to the next month.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onNextYear
Emitted when user switches to the next year.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onPrevMonth
Emitted when the user switches to the previous month.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onPrevYear
Emitted when user switches to the previous year.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-