Class TreeViewColumn.Builder<B extends TreeViewColumn.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
TreeViewColumn

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

      public B setAlignment(float alignment)
    • setCellArea

      public B setCellArea(CellArea cellArea)

      The GtkCellArea used to layout cell renderers for this column.

      If no area is specified when creating the tree view column with gtk_tree_view_column_new_with_area() a horizontally oriented GtkCellAreaBox will be used.

      Parameters:
      cellArea - the value for the cell-area property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setClickable

      public B setClickable(boolean clickable)
    • setExpand

      public B setExpand(boolean expand)
    • setFixedWidth

      public B setFixedWidth(int fixedWidth)
    • setMaxWidth

      public B setMaxWidth(int maxWidth)
    • setMinWidth

      public B setMinWidth(int minWidth)
    • setReorderable

      public B setReorderable(boolean reorderable)
    • setResizable

      public B setResizable(boolean resizable)
    • setSizing

      public B setSizing(TreeViewColumnSizing sizing)
    • setSortColumnId

      public B setSortColumnId(int sortColumnId)
      Logical sort column ID this column sorts on when selected for sorting. Setting the sort column ID makes the column header clickable. Set to -1 to make the column unsortable.
      Parameters:
      sortColumnId - the value for the sort-column-id property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setSortIndicator

      public B setSortIndicator(boolean sortIndicator)
    • setSortOrder

      public B setSortOrder(SortType sortOrder)
    • setSpacing

      public B setSpacing(int spacing)
    • setTitle

      public B setTitle(String title)
    • setVisible

      public B setVisible(boolean visible)
    • setWidget

      public B setWidget(Widget widget)
    • onClicked

      public B onClicked(TreeViewColumn.ClickedCallback handler)
      Emitted when the column's header has been clicked.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: