Package org.gnome.gtk
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theColumnViewColumnobject.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
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theColumnViewColumnobject. 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:
buildin classGObject.Builder<B extends ColumnViewColumn.Builder<B>>- Returns:
- a new instance of
ColumnViewColumnwith 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 theexpandproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setFactory
Factory for populating list items.The factory must be for configuring
ColumnViewCellobjects.- Parameters:
factory- the value for thefactoryproperty- Returns:
- the
Builderinstance 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-widthproperty- Returns:
- the
Builderinstance 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 theidproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.10
-
setResizable
Whether this column is resizable.- Parameters:
resizable- the value for theresizableproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSorter
-
setTitle
-
setVisible
Whether this column is visible.- Parameters:
visible- the value for thevisibleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-