Package org.gnome.adw
Class ViewSwitcherTitle.Builder<B extends ViewSwitcherTitle.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.adw.ViewSwitcherTitle.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
- Enclosing class:
ViewSwitcherTitle
public static class ViewSwitcherTitle.Builder<B extends ViewSwitcherTitle.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 theViewSwitcherTitle
object.Deprecated.setSubtitle
(String subtitle) Deprecated.Deprecated.setViewSwitcherEnabled
(boolean viewSwitcherEnabled) Deprecated.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 theViewSwitcherTitle
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 toViewSwitcherTitle
.- Overrides:
build
in classWidget.Builder<B extends ViewSwitcherTitle.Builder<B>>
- Returns:
- a new instance of
ViewSwitcherTitle
with the properties that were set in the Builder object.
-
setStack
Deprecated.The stack the view switcher controls.- Parameters:
stack
- the value for thestack
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSubtitle
Deprecated.The subtitle to display.The subtitle should give the user additional details.
- Parameters:
subtitle
- the value for thesubtitle
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTitle
Deprecated.The title to display.The title typically identifies the current view or content item, and generally does not use the application name.
- Parameters:
title
- the value for thetitle
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setViewSwitcherEnabled
Deprecated.Whether the view switcher is enabled.If it is disabled, the title will be displayed instead. This allows to programmatically hide the view switcher even if it fits in the available space.
This can be used e.g. to ensure the view switcher is hidden below a certain window width, or any other constraint you find suitable.
- Parameters:
viewSwitcherEnabled
- the value for theview-switcher-enabled
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-