Class NotebookPage.Builder<B extends 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 Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public NotebookPage build()
      Finish building the NotebookPage object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to NotebookPage.
      Overrides:
      build in class GObject.Builder<B extends NotebookPage.Builder<B>>
      Returns:
      a new instance of NotebookPage with the properties that were set in the Builder object.
    • setChild

      public B setChild(Widget child)
      The child for this page.
      Parameters:
      child - the value for the child property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setDetachable

      public B setDetachable(boolean detachable)
      Whether the tab is detachable.
      Parameters:
      detachable - the value for the detachable property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setMenu

      public B setMenu(Widget menu)
      The label widget displayed in the child's menu entry.
      Parameters:
      menu - the value for the menu property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setMenuLabel

      public B setMenuLabel(String menuLabel)
      The text of the menu widget.
      Parameters:
      menuLabel - the value for the menu-label property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setPosition

      public B setPosition(int position)
      The index of the child in the parent.
      Parameters:
      position - the value for the position property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setReorderable

      public B setReorderable(boolean reorderable)
      Whether the tab is reorderable by user action.
      Parameters:
      reorderable - the value for the reorderable property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTab

      public B setTab(Widget tab)
      The tab widget for this page.
      Parameters:
      tab - the value for the tab property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTabExpand

      public B setTabExpand(boolean tabExpand)
      Whether to expand the child's tab.
      Parameters:
      tabExpand - the value for the tab-expand property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTabFill

      public B setTabFill(boolean tabFill)
      Whether the child's tab should fill the allocated area.
      Parameters:
      tabFill - the value for the tab-fill property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTabLabel

      public B setTabLabel(String tabLabel)
      The text of the tab widget.
      Parameters:
      tabLabel - the value for the tab-label property
      Returns:
      the Builder instance is returned, to allow method chaining