Class TabOverview.Builder<B extends TabOverview.Builder<B>>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
- Enclosing class:
TabOverview
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theTabOverview
object.onCreateTab
(TabOverview.CreateTabCallback handler) Emitted when a tab needs to be created;This signal is emitted when content is dropped onto a tab.This signal is emitted when the dropped content is preloaded.The child widget.setEnableNewTab
(boolean enableNewTab) Whether to enable new tab button.setEnableSearch
(boolean enableSearch) Whether to enable search in tabs.setExtraDragPreload
(boolean extraDragPreload) Whether the drop data should be preloaded on hover.setInverted
(boolean inverted) Whether thumbnails use inverted layout.setOpen
(boolean open) Whether the overview is open.setSecondaryMenu
(MenuModel secondaryMenu) The secondary menu model.setShowEndTitleButtons
(boolean showEndTitleButtons) Whether to show end title buttons in the overview's header bar.setShowStartTitleButtons
(boolean showStartTitleButtons) Whether to show start title buttons in the overview's header bar.The tab view the overview 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 theTabOverview
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 toTabOverview
.- Overrides:
build
in classWidget.Builder<B extends TabOverview.Builder<B>>
- Returns:
- a new instance of
TabOverview
with the properties that were set in the Builder object.
-
setChild
-
setEnableNewTab
Whether to enable new tab button.Connect to the
TabOverview::create-tab
signal to use it.- Parameters:
enableNewTab
- the value for theenable-new-tab
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setEnableSearch
Whether to enable search in tabs.Search matches tab titles and tooltips, as well as keywords, set via
TabPage:keyword
. Use keywords to search in e.g. page URLs in a web browser.During search, tab reordering and drag-n-drop are disabled.
Use
TabOverview:search-active
to check out if search is currently active.- Parameters:
enableSearch
- the value for theenable-search
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 thumbnails use inverted layout.If set to
TRUE
, thumbnails will have the close or unpin buttons at the beginning and the indicator at the end rather than the other way around.- Parameters:
inverted
- the value for theinverted
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setOpen
Whether the overview is open.- Parameters:
open
- the value for theopen
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSecondaryMenu
-
setShowEndTitleButtons
Whether to show end title buttons in the overview's header bar.See
HeaderBar:show-start-title-buttons
for the other side.- Parameters:
showEndTitleButtons
- the value for theshow-end-title-buttons
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setShowStartTitleButtons
Whether to show start title buttons in the overview's header bar.See
HeaderBar:show-end-title-buttons
for the other side.- Parameters:
showStartTitleButtons
- the value for theshow-start-title-buttons
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setView
-
onCreateTab
Emitted when a tab needs to be created;This can happen after the new tab button has been pressed, see
TabOverview:enable-new-tab
.The signal handler is expected to create a new page in the corresponding
TabView
and return it.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onExtraDragDrop
This signal is emitted when content is dropped onto a tab.The content must be of one of the types set up via
TabOverview.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,
TabOverview:extra-drag-preload
must be set toTRUE
.The content must be of one of the types set up via
TabOverview.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:
-