Package org.gnome.gtk
Class NotebookPage.Builder<B extends NotebookPage.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.NotebookPage.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
NotebookPage
public static class NotebookPage.Builder<B extends NotebookPage.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theNotebookPage
object.The child for this page.setDetachable
(boolean detachable) Whether the tab is detachable.The label widget displayed in the child's menu entry.setMenuLabel
(String menuLabel) The text of the menu widget.setPosition
(int position) The index of the child in the parent.setReorderable
(boolean reorderable) Whether the tab is reorderable by user action.The tab widget for this page.setTabExpand
(boolean tabExpand) Whether to expand the child's tab.setTabFill
(boolean tabFill) Whether the child's tab should fill the allocated area.setTabLabel
(String tabLabel) The text of the tab widget.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
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theNotebookPage
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 toNotebookPage
.- Overrides:
build
in classGObject.Builder<B extends NotebookPage.Builder<B>>
- Returns:
- a new instance of
NotebookPage
with the properties that were set in the Builder object.
-
setChild
-
setDetachable
Whether the tab is detachable.- Parameters:
detachable
- the value for thedetachable
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMenu
-
setMenuLabel
-
setPosition
The index of the child in the parent.- Parameters:
position
- the value for theposition
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setReorderable
Whether the tab is reorderable by user action.- Parameters:
reorderable
- the value for thereorderable
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTab
-
setTabExpand
Whether to expand the child's tab.- Parameters:
tabExpand
- the value for thetab-expand
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTabFill
Whether the child's tab should fill the allocated area.- Parameters:
tabFill
- the value for thetab-fill
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTabLabel
-