Package org.gnome.gtk
Class CellView.Builder<B extends CellView.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.Widget.Builder<B>
org.gnome.gtk.CellView.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
,Orientable.Builder<B>
- Enclosing class:
CellView
public static class CellView.Builder<B extends CellView.Builder<B>>
extends Widget.Builder<B>
implements Accessible.Builder<B>, Orientable.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theCellView
object.setCellArea
(CellArea cellArea) TheGtkCellArea
rendering cellssetCellAreaContext
(CellAreaContext cellAreaContext) TheGtkCellAreaContext
used to compute the geometry of the cell view.setDrawSensitive
(boolean drawSensitive) Whether all cells should be draw as sensitive for this view regardless of the actual cell properties (used to make menus with submenus appear sensitive when the items in submenus might be insensitive).setFitModel
(boolean fitModel) Whether the view should request enough space to always fit the size of every row in the model (used by the combo box to ensure the combo box size doesn't change when different items are selected).The model for cell viewMethods inherited from class org.gnome.gtk.Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequest
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRole
Methods inherited from interface io.github.jwharm.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
Methods inherited from interface org.gnome.gtk.Orientable.Builder
setOrientation
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theCellView
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 toCellView
.- Overrides:
build
in classWidget.Builder<B extends CellView.Builder<B>>
- Returns:
- a new instance of
CellView
with the properties that were set in the Builder object.
-
setCellArea
TheGtkCellArea
rendering cellsIf no area is specified when creating the cell view with gtk_cell_view_new_with_context() a horizontally oriented
GtkCellArea
Box will be used.since 3.0
- Parameters:
cellArea
- the value for thecell-area
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setCellAreaContext
TheGtkCellAreaContext
used to compute the geometry of the cell view.A group of cell views can be assigned the same context in order to ensure the sizes and cell alignments match across all the views with the same context.
GtkComboBox
menus uses this to assign the same context to all cell views in the menu items for a single menu (each submenu creates its own context since the size of each submenu does not depend on parent or sibling menus).since 3.0
- Parameters:
cellAreaContext
- the value for thecell-area-context
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDrawSensitive
Whether all cells should be draw as sensitive for this view regardless of the actual cell properties (used to make menus with submenus appear sensitive when the items in submenus might be insensitive).since 3.0
- Parameters:
drawSensitive
- the value for thedraw-sensitive
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setFitModel
Whether the view should request enough space to always fit the size of every row in the model (used by the combo box to ensure the combo box size doesn't change when different items are selected).since 3.0
- Parameters:
fitModel
- the value for thefit-model
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setModel
-