Package org.gnome.adw
Class ViewStackPage
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.adw.ViewStackPage
- All Implemented Interfaces:
Proxy
,Accessible
@Generated("io.github.jwharm.JavaGI")
public final class ViewStackPage
extends GObject
implements Accessible
An auxiliary class used by
ViewStack
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ViewStackPage.Builder<B extends ViewStackPage.Builder<B>>
Inner class implementing a builder pattern to construct a GObject with properties.static class
Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass
Nested classes/interfaces inherited from interface org.gnome.gtk.Accessible
Accessible.AccessibleImpl, Accessible.AccessibleInterface
-
Constructor Summary
ConstructorDescriptionViewStackPage
(MemorySegment address) Create a ViewStackPage proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected ViewStackPage
asParent()
Returns this instance as if it were its parent type.static ViewStackPage.Builder
<? extends ViewStackPage.Builder> builder()
AViewStackPage.Builder
object constructs aViewStackPage
with the specified properties.int
Gets the badge number for this page.getChild()
Gets the stack child to which this ViewStackPage belongs.Gets the icon name of the page.getName()
Gets the name of the page.boolean
Gets whether the page requires the user attention.getTitle()
Gets the page title.static Type
getType()
Get the GType of the ViewStackPage classboolean
Gets whether underlines in the page title indicate mnemonics.boolean
Gets whether this ViewStackPage is visible in itsAdwViewStack
.void
setBadgeNumber
(int badgeNumber) Sets the badge number for this page.void
setIconName
(@Nullable String iconName) Sets the icon name of the page.void
Sets the name of the page.void
setNeedsAttention
(boolean needsAttention) Sets whether the page requires the user attention.void
Sets the page title.void
setUseUnderline
(boolean useUnderline) Sets whether underlines in the page title indicate mnemonics.void
setVisible
(boolean visible) Sets whetherpage
is visible in itsAdwViewStack
.Methods inherited from class org.gnome.gobject.GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getMemoryLayout, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newInstance, newInstance, newv, notify_, notify_, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible
announce, getAccessibleParent, getAccessibleRole, getAtContext, getBounds, getFirstAccessibleChild, getNextAccessibleSibling, getPlatformState, resetProperty, resetRelation, resetState, setAccessibleParent, updateNextAccessibleSibling, updateProperty, updateRelation, updateState
-
Constructor Details
-
ViewStackPage
Create a ViewStackPage proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
-
Method Details
-
getType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()
doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName()
. This will call the native function pointer of this virtual method in the typeclass of the parent type. -
getBadgeNumber
public int getBadgeNumber()Gets the badge number for this page.- Returns:
- the badge number for this page
-
getChild
Gets the stack child to which this ViewStackPage belongs.- Returns:
- the child to which this ViewStackPage belongs
-
getIconName
-
getName
-
getNeedsAttention
public boolean getNeedsAttention()Gets whether the page requires the user attention.- Returns:
- whether the page needs attention
-
getTitle
-
getUseUnderline
public boolean getUseUnderline()Gets whether underlines in the page title indicate mnemonics.- Returns:
- whether underlines in the page title indicate mnemonics
-
getVisible
public boolean getVisible()Gets whether this ViewStackPage is visible in itsAdwViewStack
.This is independent from the
Gtk.Widget:visible
property of its widget.- Returns:
- whether this ViewStackPage is visible
-
setBadgeNumber
public void setBadgeNumber(int badgeNumber) Sets the badge number for this page.ViewSwitcher
can display it as a badge next to the page icon. It is commonly used to display a number of unread items within the page.It can be used together with
ViewStack{age}:needs-attention
.- Parameters:
badgeNumber
- the new value to set
-
setIconName
Sets the icon name of the page.- Parameters:
iconName
- the icon name
-
setName
Sets the name of the page.- Parameters:
name
- the page name
-
setNeedsAttention
public void setNeedsAttention(boolean needsAttention) Sets whether the page requires the user attention.ViewSwitcher
will display it as a dot next to the page icon.- Parameters:
needsAttention
- the new value to set
-
setTitle
Sets the page title.- Parameters:
title
- the page title
-
setUseUnderline
public void setUseUnderline(boolean useUnderline) Sets whether underlines in the page title indicate mnemonics.- Parameters:
useUnderline
- the new value to set
-
setVisible
public void setVisible(boolean visible) Sets whetherpage
is visible in itsAdwViewStack
.This is independent from the
Gtk.Widget:visible
property ofViewStackPage:child
.- Parameters:
visible
- whether this ViewStackPage is visible
-
builder
AViewStackPage.Builder
object constructs aViewStackPage
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withViewStackPage.Builder.build()
.
-