Class TabBar.Builder<B extends TabBar.Builder<B>>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- Enclosing class:
TabBar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theTabBarobject.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, 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 theTabBarobject. 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:
buildin classWidget.Builder<B extends TabBar.Builder<B>>- Returns:
- a new instance of
TabBarwith the properties that were set in the Builder object.
-
setAutohide
Whether the tabs automatically hide.If set to
TRUE, the tab bar disappears whenTabBar:viewhas 0 or 1 tab, no pinned tabs, and no tab is being transferred.See
TabBar:tabs-revealed.- Parameters:
autohide- the value for theautohideproperty- Returns:
- the
Builderinstance 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-tabsproperty- Returns:
- the
Builderinstance 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-preloadproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.3
-
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 theinvertedproperty- Returns:
- the
Builderinstance 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
Builderinstance 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-preloadmust 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
Builderinstance is returned, to allow method chaining - Since:
- 1.3
- See Also:
-