Package org.gnome.gtk
Class StackPage.Builder<B extends StackPage.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.StackPage.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
- Enclosing class:
StackPage
public static class StackPage.Builder<B extends StackPage.Builder<B>>
extends GObject.Builder<B>
implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theStackPage
object.The child that this page is for.setIconName
(String iconName) The icon name of the child page.The name of the child page.setNeedsAttention
(boolean needsAttention) Whether the page requires the user attention.The title of the child page.setUseUnderline
(boolean useUnderline) If set, an underline in the title indicates a mnemonic.setVisible
(boolean visible) Whether this page is visible.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 theStackPage
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 toStackPage
.- Overrides:
build
in classGObject.Builder<B extends StackPage.Builder<B>>
- Returns:
- a new instance of
StackPage
with the properties that were set in the Builder object.
-
setChild
-
setIconName
-
setName
-
setNeedsAttention
Whether the page requires the user attention.This is used by the
StackSwitcher
to change the appearance of the corresponding button when a page needs attention and it is not the current one.- Parameters:
needsAttention
- the value for theneeds-attention
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTitle
-
setUseUnderline
If set, an underline in the title indicates a mnemonic.- Parameters:
useUnderline
- the value for theuse-underline
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setVisible
Whether this page is visible.- Parameters:
visible
- the value for thevisible
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-