Package org.gnome.gtk
Class StackPage.Builder<B extends StackPage.Builder<B>>
java.lang.Object
org.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:
Accessible.Builder<B>,BuilderInterface
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theStackPageobject.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
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 theStackPageobject. 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:
buildin classGObject.Builder<B extends StackPage.Builder<B>>- Returns:
- a new instance of
StackPagewith 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
StackSwitcherto 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-attentionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setTitle
-
setUseUnderline
If set, an underline in the title indicates a mnemonic.- Parameters:
useUnderline- the value for theuse-underlineproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setVisible
Whether this page is visible.- Parameters:
visible- the value for thevisibleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-