Package org.gnome.gtk
Class ColumnViewColumn.Builder<B extends ColumnViewColumn.Builder<B>>
java.lang.Object
io.github.jwharm.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theColumnViewColumn
object.setExpand
(boolean expand) Column gets share of extra width allocated to the view.setFactory
(ListItemFactory factory) Factory for populating list items.setFixedWidth
(int fixedWidth) If not -1, this is the width that the column is allocated, regardless of the size of its content.setHeaderMenu
(MenuModel headerMenu) Menu model used to create the context menu for the column header.An ID for the column.setResizable
(boolean resizable) Whether this column is resizable.Sorter for sorting items according to this column.Title displayed in the header.setVisible
(boolean visible) Whether this column is 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 theColumnViewColumn
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 toColumnViewColumn
.- Overrides:
build
in classGObject.Builder<B extends ColumnViewColumn.Builder<B>>
- Returns:
- a new instance of
ColumnViewColumn
with the properties that were set in the Builder object.
-
setExpand
Column gets share of extra width allocated to the view.- Parameters:
expand
- the value for theexpand
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setFactory
Factory for populating list items.The factory must be for configuring
ColumnViewCell
objects.- Parameters:
factory
- the value for thefactory
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setFixedWidth
If not -1, this is the width that the column is allocated, regardless of the size of its content.- Parameters:
fixedWidth
- the value for thefixed-width
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setHeaderMenu
-
setId
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 theid
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setResizable
Whether this column is resizable.- Parameters:
resizable
- the value for theresizable
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSorter
-
setTitle
-
setVisible
Whether this column is visible.- Parameters:
visible
- the value for thevisible
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-