Package ch.bailu.gtk.adw
Klasse TabPage
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.adw.TabPage
- Alle implementierten Schnittstellen:
PointerInterface
An auxiliary class used by [class@TabView].
https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.TabPage.html
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungImplements interfaceAccessible
.getChild()
Gets the child of @self.static ClassHandler
getIcon()
Gets the icon of @self.boolean
Gets whether the indicator of @self is activatable.Gets the indicator icon of @self.Gets the tooltip of the indicator icon of @self.static int
Gets the search keyword of @self.boolean
Gets whether to live thumbnail is enabled @self.boolean
Gets whether @self is loading.boolean
Gets whether @self needs attention.Gets the parent page of @self.static long
static TypeSystem.TypeSize
boolean
Gets whether @self is pinned.boolean
Gets whether @self is selected.float
Gets the horizontal alignment of the thumbnail for @self.float
Gets the vertical alignment of the thumbnail for @self.getTitle()
Gets the title of @self.Gets the tooltip of @self.static long
static TypeSystem.TypeSize
void
Invalidates thumbnail for @self.void
Sets the icon of @self.void
setIndicatorActivatable
(boolean activatable) Sets whether the indicator of @self is activatable.void
setIndicatorIcon
(Icon indicator_icon) Sets the indicator icon of @self.void
setIndicatorTooltip
(Str tooltip) Sets the tooltip of the indicator icon of @self.void
setIndicatorTooltip
(String tooltip) Sets the tooltip of the indicator icon of @self.void
setKeyword
(Str keyword) Sets the search keyword for @self.void
setKeyword
(String keyword) Sets the search keyword for @self.void
setLiveThumbnail
(boolean live_thumbnail) Sets whether to enable live thumbnail for @self.void
setLoading
(boolean loading) Sets whether @self is loading.void
setNeedsAttention
(boolean needs_attention) Sets whether @self needs attention.void
setThumbnailXalign
(float xalign) Sets the horizontal alignment of the thumbnail for @self.void
setThumbnailYalign
(float yalign) Sets the vertical alignment of the thumbnail for @self.void
[class@TabBar] will display it in the center of the tab unless it's pinned,
and will use it as a tooltip unless [property@TabPage:tooltip] is set.void
[class@TabBar] will display it in the center of the tab unless it's pinned,
and will use it as a tooltip unless [property@TabPage:tooltip] is set.void
setTooltip
(Str tooltip) Sets the tooltip of @self.void
setTooltip
(String tooltip) Sets the tooltip of @self.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
TabPage
-
-
Methodendetails
-
getClassHandler
-
getChild
Gets the child of @self.- Gibt zurück:
- the child of @self
-
getIcon
Gets the icon of @self.- Gibt zurück:
- the icon of @self
-
getIndicatorActivatable
public boolean getIndicatorActivatable()Gets whether the indicator of @self is activatable.- Gibt zurück:
- whether the indicator is activatable
-
getIndicatorIcon
Gets the indicator icon of @self.- Gibt zurück:
- the indicator icon of @self
-
getIndicatorTooltip
Gets the tooltip of the indicator icon of @self.- Gibt zurück:
- the indicator tooltip of @self
-
getKeyword
Gets the search keyword of @self.- Gibt zurück:
- the search keyword of @self
-
getLiveThumbnail
public boolean getLiveThumbnail()Gets whether to live thumbnail is enabled @self.- Gibt zurück:
- whether live thumbnail is enabled
-
getLoading
public boolean getLoading()Gets whether @self is loading.- Gibt zurück:
- whether @self is loading
-
getNeedsAttention
public boolean getNeedsAttention()Gets whether @self needs attention.- Gibt zurück:
- whether @self needs attention
-
getParent
Gets the parent page of @self.
See [method@TabView.add_page] and [method@TabView.close_page].- Gibt zurück:
- the parent page
-
getPinned
public boolean getPinned()Gets whether @self is pinned.
See [method@TabView.set_page_pinned].- Gibt zurück:
- whether @self is pinned
-
getSelected
public boolean getSelected()Gets whether @self is selected.- Gibt zurück:
- whether @self is selected
-
getThumbnailXalign
public float getThumbnailXalign()Gets the horizontal alignment of the thumbnail for @self.- Gibt zurück:
- the horizontal alignment
-
getThumbnailYalign
public float getThumbnailYalign()Gets the vertical alignment of the thumbnail for @self.- Gibt zurück:
- the vertical alignment
-
getTitle
Gets the title of @self.- Gibt zurück:
- the title of @self
-
getTooltip
Gets the tooltip of @self.- Gibt zurück:
- the tooltip of @self
-
invalidateThumbnail
public void invalidateThumbnail()Invalidates thumbnail for @self.
If an [class@TabOverview] is open, the thumbnail representing @self will be
immediately updated. Otherwise it will be update when opening the overview.
Does nothing if [property@TabPage:live-thumbnail] is set to `TRUE`.
See also [method@TabView.invalidate_thumbnails]. -
setIcon
Sets the icon of @self.
[class@TabBar] and [class@TabOverview] display the icon next to the title,
unless [property@TabPage:loading] is set to `TRUE`.
`AdwTabBar` also won't show the icon if the page is pinned and
[propertyTabPage:indicator-icon] is set.- Parameter:
icon
- the icon of @self
-
setIndicatorActivatable
public void setIndicatorActivatable(boolean activatable) Sets whether the indicator of @self is activatable.
If set to `TRUE`, [signal@TabView::indicator-activated] will be emitted
when the indicator icon is clicked.
If [property@TabPage:indicator-icon] is not set, does nothing.- Parameter:
activatable
- whether the indicator is activatable
-
setIndicatorIcon
Sets the indicator icon of @self.
A common use case is an audio or camera indicator in a web browser.
[class@TabBar] will show it at the beginning of the tab, alongside icon
representing [property@TabPage:icon] or loading spinner.
If the page is pinned, the indicator will be shown instead of icon or
spinner.
[class@TabOverview] will show it at the at the top part of the thumbnail.
[property@TabPage:indicator-tooltip] can be used to set the tooltip on the
indicator icon.
If [property@TabPage:indicator-activatable] is set to `TRUE`, the
indicator icon can act as a button.- Parameter:
indicator_icon
- the indicator icon of @self
-
setIndicatorTooltip
Sets the tooltip of the indicator icon of @self.
The tooltip can be marked up with the Pango text markup language.
See [property@TabPage:indicator-icon].- Parameter:
tooltip
- the indicator tooltip of @self
-
setIndicatorTooltip
Sets the tooltip of the indicator icon of @self.
The tooltip can be marked up with the Pango text markup language.
See [property@TabPage:indicator-icon].- Parameter:
tooltip
- the indicator tooltip of @self
-
setKeyword
Sets the search keyword for @self.
[class@TabOverview] can search pages by their keywords in addition to their
titles and tooltips.
Keywords allow to include e.g. page URLs into tab search in a web browser.- Parameter:
keyword
- the search keyword
-
setKeyword
Sets the search keyword for @self.
[class@TabOverview] can search pages by their keywords in addition to their
titles and tooltips.
Keywords allow to include e.g. page URLs into tab search in a web browser.- Parameter:
keyword
- the search keyword
-
setLiveThumbnail
public void setLiveThumbnail(boolean live_thumbnail) Sets whether to enable live thumbnail for @self.
When set to `TRUE`, @self's thumbnail in [class@TabOverview] will update
immediately when @self is redrawn or resized.
If it's set to `FALSE`, the thumbnail will only be live when the @self is
selected, and otherwise it will be static and will only update when
[method@TabPage.invalidate_thumbnail] or
[method@TabView.invalidate_thumbnails] is called.- Parameter:
live_thumbnail
- whether to enable live thumbnail
-
setLoading
public void setLoading(boolean loading) Sets whether @self is loading.
If set to `TRUE`, [class@TabBar] and [class@TabOverview] will display a
spinner in place of icon.
If the page is pinned and [property@TabPage:indicator-icon] is set, loading
status will not be visible with `AdwTabBar`.- Parameter:
loading
- whether @self is loading
-
setNeedsAttention
public void setNeedsAttention(boolean needs_attention) Sets whether @self needs attention.
[class@TabBar] will display a line under the tab representing the page if
set to `TRUE`. If the tab is not visible, the corresponding edge of the tab
bar will be highlighted.
[class@TabOverview] will display a dot in the corner of the thumbnail if set
to `TRUE`.
[class@TabButton] will display a dot if any of the pages that aren't
selected have [property@TabPage:needs-attention] set to `TRUE`.- Parameter:
needs_attention
- whether @self needs attention
-
setThumbnailXalign
public void setThumbnailXalign(float xalign) Sets the horizontal alignment of the thumbnail for @self.
If the page is so wide that [class@TabOverview] can't display it completely
and has to crop it, horizontal alignment will determine which part of the
page will be visible.
For example, 0.5 means the center of the page will be visible, 0 means the
start edge will be visible and 1 means the end edge will be visible.
The default horizontal alignment is 0.- Parameter:
xalign
- the new value
-
setThumbnailYalign
public void setThumbnailYalign(float yalign) Sets the vertical alignment of the thumbnail for @self.
If the page is so tall that [class@TabOverview] can't display it completely
and has to crop it, vertical alignment will determine which part of the page
will be visible.
For example, 0.5 means the center of the page will be visible, 0 means the
top edge will be visible and 1 means the bottom edge will be visible.
The default vertical alignment is 0.- Parameter:
yalign
- the new value
-
setTitle
[class@TabBar] will display it in the center of the tab unless it's pinned,
and will use it as a tooltip unless [property@TabPage:tooltip] is set.
[class@TabOverview] will display it below the thumbnail unless it's pinned,
or inside the card otherwise, and will use it as a tooltip unless
[property@TabPage:tooltip] is set.
Sets the title of @self.- Parameter:
title
- the title of @self
-
setTitle
[class@TabBar] will display it in the center of the tab unless it's pinned,
and will use it as a tooltip unless [property@TabPage:tooltip] is set.
[class@TabOverview] will display it below the thumbnail unless it's pinned,
or inside the card otherwise, and will use it as a tooltip unless
[property@TabPage:tooltip] is set.
Sets the title of @self.- Parameter:
title
- the title of @self
-
setTooltip
Sets the tooltip of @self.
The tooltip can be marked up with the Pango text markup language.
If not set, [class@TabBar] and [class@TabOverview] will use
[property@TabPage:title] as a tooltip instead.- Parameter:
tooltip
- the tooltip of @self
-
setTooltip
Sets the tooltip of @self.
The tooltip can be marked up with the Pango text markup language.
If not set, [class@TabBar] and [class@TabOverview] will use
[property@TabPage:title] as a tooltip instead.- Parameter:
tooltip
- the tooltip of @self
-
asAccessible
Implements interfaceAccessible
. Call this to get access to interface functions.- Gibt zurück:
Accessible
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-