Package org.gnome.gtk
Class TreeViewColumn.Builder<B extends TreeViewColumn.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.gnome.gtk.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theTreeViewColumn
object.onClicked
(TreeViewColumn.ClickedCallback handler) Emitted when the column's header has been clicked.setAlignment
(float alignment) setCellArea
(CellArea cellArea) TheGtkCellArea
used to layout cell renderers for this column.setClickable
(boolean clickable) setExpand
(boolean expand) setFixedWidth
(int fixedWidth) setMaxWidth
(int maxWidth) setMinWidth
(int minWidth) setReorderable
(boolean reorderable) setResizable
(boolean resizable) setSizing
(TreeViewColumnSizing sizing) setSortColumnId
(int sortColumnId) Logical sort column ID this column sorts on when selected for sorting.setSortIndicator
(boolean sortIndicator) setSortOrder
(SortType sortOrder) setSpacing
(int spacing) setVisible
(boolean visible) 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 theTreeViewColumn
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 toTreeViewColumn
.- Overrides:
build
in classInitiallyUnowned.Builder<B extends TreeViewColumn.Builder<B>>
- Returns:
- a new instance of
TreeViewColumn
with the properties that were set in the Builder object.
-
setAlignment
-
setCellArea
TheGtkCellArea
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 thecell-area
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setClickable
-
setExpand
-
setFixedWidth
-
setMaxWidth
-
setMinWidth
-
setReorderable
-
setResizable
-
setSizing
-
setSortColumnId
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 thesort-column-id
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSortIndicator
-
setSortOrder
-
setSpacing
-
setTitle
-
setVisible
-
setWidget
-
onClicked
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:
-