Class TabOverview.Builder<B extends TabOverview.Builder<B>>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- Enclosing class:
TabOverview
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theTabOverviewobject.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, 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 theTabOverviewobject. 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:
buildin classWidget.Builder<B extends TabOverview.Builder<B>>- Returns:
- a new instance of
TabOverviewwith the properties that were set in the Builder object.
-
setChild
-
setEnableNewTab
Whether to enable new tab button.Connect to the
TabOverview::create-tabsignal to use it.- Parameters:
enableNewTab- the value for theenable-new-tabproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.3
-
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-activeto check out if search is currently active.- Parameters:
enableSearch- the value for theenable-searchproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.3
-
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 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 theinvertedproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.3
-
setOpen
Whether the overview is open.- Parameters:
open- the value for theopenproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.3
-
setSecondaryMenu
The secondary menu model.Use it to add extra actions, e.g. to open a new window or undo closed tab.
- Parameters:
secondaryMenu- the value for thesecondary-menuproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.3
-
setShowEndTitleButtons
Whether to show end title buttons in the overview's header bar.See
HeaderBar:show-start-title-buttonsfor the other side.- Parameters:
showEndTitleButtons- the value for theshow-end-title-buttonsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.3
-
setShowStartTitleButtons
Whether to show start title buttons in the overview's header bar.See
HeaderBar:show-end-title-buttonsfor the other side.- Parameters:
showStartTitleButtons- the value for theshow-start-title-buttonsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.3
-
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
TabViewand return it.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.3
- 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
Builderinstance is returned, to allow method chaining - Since:
- 1.3
- See Also:
-
onExtraDragValue
This signal is emitted when the dropped content is preloaded.In order for data to be preloaded,
TabOverview:extra-drag-preloadmust 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
Builderinstance is returned, to allow method chaining - Since:
- 1.3
- See Also:
-