Package ch.bailu.gtk.gtk
Class CellRendererCombo
- All Implemented Interfaces:
PointerInterface
Renders a combobox in a cell
`GtkCellRendererCombo` renders text in a cell like `GtkCellRendererText` from
which it is derived. But while `GtkCellRendererText` offers a simple entry to
edit the text, `GtkCellRendererCombo` offers a `GtkComboBox`
widget to edit the text. The values to display in the combo box are taken from
the tree model specified in the `GtkCellRendererCombo`:model property.
The combo cell renderer takes care of adding a text cell renderer to the combo
box and sets it to display the column specified by its
`GtkCellRendererCombo`:text-column property. Further properties of the combo box
can be set in a handler for the `GtkCellRenderer::editing-started` signal.
`GtkCellRendererCombo` renders text in a cell like `GtkCellRendererText` from
which it is derived. But while `GtkCellRendererText` offers a simple entry to
edit the text, `GtkCellRendererCombo` offers a `GtkComboBox`
widget to edit the text. The values to display in the combo box are taken from
the tree model specified in the `GtkCellRendererCombo`:model property.
The combo cell renderer takes care of adding a text cell renderer to the combo
box and sets it to display the column specified by its
`GtkCellRendererCombo`:text-column property. Further properties of the combo box
can be set in a handler for the `GtkCellRenderer::editing-started` signal.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class ch.bailu.gtk.gtk.CellRendererText
CellRendererText.OnEditedNested classes/interfaces inherited from class ch.bailu.gtk.gtk.CellRenderer
CellRenderer.OnEditingCanceled, CellRenderer.OnEditingStartedNested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Field Summary
FieldsFields inherited from class ch.bailu.gtk.gtk.CellRendererText
SIGNAL_ON_EDITEDFields inherited from class ch.bailu.gtk.gtk.CellRenderer
SIGNAL_ON_EDITING_CANCELED, SIGNAL_ON_EDITING_STARTEDFields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new `GtkCellRendererCombo`.CellRendererCombo(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerstatic intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizeonChanged(CellRendererCombo.OnChanged signal) Connect to signal "changed".Methods inherited from class ch.bailu.gtk.gtk.CellRendererText
onEdited, setFixedHeightFromFontMethods inherited from class ch.bailu.gtk.gtk.CellRenderer
activate, activate, getAlignedArea, getAlignment, getFixedSize, getIsExpanded, getIsExpander, getPadding, getPreferredHeight, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getRequestMode, getSensitive, getState, getVisible, isActivatable, onEditingCanceled, onEditingStarted, setAlignment, setFixedSize, setIsExpanded, setIsExpander, setPadding, setSensitive, setVisible, snapshot, startEditing, startEditing, stopEditingMethods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnrefMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
SIGNAL_ON_CHANGED
- See Also:
-
-
Constructor Details
-
CellRendererCombo
-
CellRendererCombo
public CellRendererCombo()Creates a new `GtkCellRendererCombo`.
Adjust how text is drawn using object properties.
Object properties can be set globally (with g_object_set()).
Also, with `GtkTreeViewColumn`, you can bind a property to a value
in a `GtkTreeModel`. For example, you can bind the “text” property
on the cell renderer to a string value in the model, thus rendering
a different string in each row of the `GtkTreeView`.
-
-
Method Details
-
getClassHandler
-
onChanged
Connect to signal "changed".
SeeCellRendererCombo.OnChanged.onChanged(ch.bailu.gtk.type.Str, ch.bailu.gtk.gtk.TreeIter)for signal description.
FieldSIGNAL_ON_CHANGEDcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-