Class TabBar.Builder<B extends TabBar.Builder<B>>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
- Enclosing class:
TabBar
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theTabBar
object.This signal is emitted when content is dropped onto a tab.This signal is emitted when the dropped content is preloaded.setAutohide
(boolean autohide) Whether the tabs automatically hide.setEndActionWidget
(Widget endActionWidget) The widget shown after the tabs.setExpandTabs
(boolean expandTabs) Whether tabs expand to full width.setExtraDragPreload
(boolean extraDragPreload) Whether the drop data should be preloaded on hover.setInverted
(boolean inverted) Whether tabs use inverted layout.setStartActionWidget
(Widget startActionWidget) The widget shown before the tabs.The tab view the tab bar controls.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 theTabBar
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 toTabBar
.- Overrides:
build
in classWidget.Builder<B extends TabBar.Builder<B>>
- Returns:
- a new instance of
TabBar
with the properties that were set in the Builder object.
-
setAutohide
Whether the tabs automatically hide.If set to
TRUE
, the tab bar disappears whenTabBar:view
has 0 or 1 tab, no pinned tabs, and no tab is being transferred.See
TabBar:tabs-revealed
.- Parameters:
autohide
- the value for theautohide
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setEndActionWidget
-
setExpandTabs
Whether tabs expand to full width.If set to
TRUE
, the tabs will always vary width filling the whole width when possible, otherwise tabs will always have the minimum possible size.- Parameters:
expandTabs
- the value for theexpand-tabs
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setExtraDragPreload
Whether the drop data should be preloaded on hover.See
Gtk.DropTarget:preload
.- Parameters:
extraDragPreload
- the value for theextra-drag-preload
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setInverted
Whether tabs use inverted layout.If set to
TRUE
, non-pinned tabs will have the close button at the beginning and the indicator at the end rather than the opposite.- Parameters:
inverted
- the value for theinverted
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setStartActionWidget
-
setView
-
onExtraDragDrop
This signal is emitted when content is dropped onto a tab.The content must be of one of the types set up via
TabBar.setupExtraDropTarget(java.util.Set<org.gnome.gdk.DragAction>, org.gnome.glib.Type[])
.See
Gtk.DropTarget::drop
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onExtraDragValue
This signal is emitted when the dropped content is preloaded.In order for data to be preloaded,
TabBar:extra-drag-preload
must be set toTRUE
.The content must be of one of the types set up via
TabBar.setupExtraDropTarget(java.util.Set<org.gnome.gdk.DragAction>, org.gnome.glib.Type[])
.See
Gtk.DropTarget:value
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-