Package org.gnome.gtk
Class CellView.Builder<B extends CellView.Builder<B>>
java.lang.Object
org.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:
Accessible.Builder<B>,Orientable.Builder<B>,BuilderInterface
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theCellViewobject.setCellArea(CellArea cellArea) TheGtkCellArearendering cellssetCellAreaContext(CellAreaContext cellAreaContext) TheGtkCellAreaContextused 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, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRoleMethods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArenaMethods inherited from interface org.gnome.gtk.Orientable.Builder
setOrientation
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theCellViewobject. 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:
buildin classWidget.Builder<B extends CellView.Builder<B>>- Returns:
- a new instance of
CellViewwith the properties that were set in the Builder object.
-
setCellArea
TheGtkCellArearendering cellsIf no area is specified when creating the cell view with gtk_cell_view_new_with_context() a horizontally oriented
GtkCellAreaBox will be used.since 3.0
- Parameters:
cellArea- the value for thecell-areaproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setCellAreaContext
TheGtkCellAreaContextused 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.
GtkComboBoxmenus 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-contextproperty- Returns:
- the
Builderinstance 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-sensitiveproperty- Returns:
- the
Builderinstance 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-modelproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setModel
-