Package org.gnome.gtk
Class Calendar.Builder<B extends Calendar.Builder<B>>
java.lang.Object
io.github.jwharm.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:
BuilderInterface
,Accessible.Builder<B>
- 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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theCalendar
object.Emitted when the user selects a day.onNextMonth
(Calendar.NextMonthCallback handler) Emitted when the user switched to the next month.onNextYear
(Calendar.NextYearCallback handler) Emitted when user switched to the next year.onPrevMonth
(Calendar.PrevMonthCallback handler) Emitted when the user switched to the previous month.onPrevYear
(Calendar.PrevYearCallback handler) Emitted when user switched to the previous year.setDay
(int day) The selected day (as a number between 1 and 31).setMonth
(int month) The selected month (as a number between 0 and 11).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) The selected year.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, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequest
Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRole
Methods inherited from interface io.github.jwharm.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theCalendar
object. 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:
build
in classWidget.Builder<B extends Calendar.Builder<B>>
- Returns:
- a new instance of
Calendar
with the properties that were set in the Builder object.
-
setDay
The selected day (as a number between 1 and 31).- Parameters:
day
- the value for theday
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMonth
The selected month (as a number between 0 and 11).This property gets initially set to the current month.
- Parameters:
month
- the value for themonth
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setShowDayNames
Determines whether day names are displayed.- Parameters:
showDayNames
- the value for theshow-day-names
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setShowHeading
Determines whether a heading is displayed.- Parameters:
showHeading
- the value for theshow-heading
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setShowWeekNumbers
Determines whether week numbers are displayed.- Parameters:
showWeekNumbers
- the value for theshow-week-numbers
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setYear
The selected year.This property gets initially set to the current year.
- Parameters:
year
- the value for theyear
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onDaySelected
Emitted when the user selects a day.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onNextMonth
Emitted when the user switched to the next month.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onNextYear
Emitted when user switched to the next year.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onPrevMonth
Emitted when the user switched to the previous month.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onPrevYear
Emitted when user switched to the previous year.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-