Package org.gnome.adw
Class ViewSwitcherTitle.Builder<B extends ViewSwitcherTitle.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.adw.ViewSwitcherTitle.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theViewSwitcherTitleobject.Deprecated.See the migration guidesetSubtitle(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, 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 theViewSwitcherTitleobject. 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:
buildin classWidget.Builder<B extends ViewSwitcherTitle.Builder<B>>- Returns:
- a new instance of
ViewSwitcherTitlewith the properties that were set in the Builder object.
-
setStack
Deprecated.The stack the view switcher controls.- Parameters:
stack- the value for thestackproperty- Returns:
- the
Builderinstance 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 thesubtitleproperty- Returns:
- the
Builderinstance 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 thetitleproperty- Returns:
- the
Builderinstance 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-enabledproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-