Class ColumnViewColumn.Builder<B extends ColumnViewColumn.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.ColumnViewColumn.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
ColumnViewColumn

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

      public B setExpand(boolean expand)
      Column gets share of extra width allocated to the view.
      Parameters:
      expand - the value for the expand property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setFactory

      public B setFactory(ListItemFactory factory)

      Factory for populating list items.

      The factory must be for configuring ColumnViewCell objects.

      Parameters:
      factory - the value for the factory property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setFixedWidth

      public B setFixedWidth(int fixedWidth)
      If not -1, this is the width that the column is allocated, regardless of the size of its content.
      Parameters:
      fixedWidth - the value for the fixed-width property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setHeaderMenu

      public B setHeaderMenu(MenuModel headerMenu)
      Menu model used to create the context menu for the column header.
      Parameters:
      headerMenu - the value for the header-menu property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setId

      public B setId(String id)

      An ID for the column.

      GTK is not currently using the ID for anything, but it can be used by applications when saving column view configurations.

      It is up to applications to ensure uniqueness of IDs.

      Parameters:
      id - the value for the id property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.10
    • setResizable

      public B setResizable(boolean resizable)
      Whether this column is resizable.
      Parameters:
      resizable - the value for the resizable property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setSorter

      public B setSorter(Sorter sorter)
      Sorter for sorting items according to this column.
      Parameters:
      sorter - the value for the sorter property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTitle

      public B setTitle(String title)
      Title displayed in the header.
      Parameters:
      title - the value for the title property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setVisible

      public B setVisible(boolean visible)
      Whether this column is visible.
      Parameters:
      visible - the value for the visible property
      Returns:
      the Builder instance is returned, to allow method chaining