Package org.gnome.gtk
Class CellRendererText
- All Implemented Interfaces:
Proxy
- Direct Known Subclasses:
CellRendererAccel
,CellRendererCombo
,CellRendererSpin
@Generated("io.github.jwharm.JavaGI")
@Deprecated
public class CellRendererText
extends CellRenderer
Deprecated.
Renders text in a cell
A GtkCellRendererText
renders a given text in its cell, using the font, color and
style information provided by its properties. The text will be ellipsized if it is
too long and the GtkCellRendererText:ellipsize
property allows it.
If the GtkCellRenderer:mode
is CellRendererMode.EDITABLE
,
the GtkCellRendererText
allows to edit its text using an entry.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
CellRendererText.Builder<B extends CellRendererText.Builder<B>>
Deprecated.Inner class implementing a builder pattern to construct a GObject with properties.static class
Deprecated.static interface
Deprecated.Functional interface declaration of theEditedCallback
callback.Nested classes/interfaces inherited from class org.gnome.gtk.CellRenderer
CellRenderer.CellRendererClass, CellRenderer.CellRendererImpl, CellRenderer.EditingCanceledCallback, CellRenderer.EditingStartedCallback
Nested classes/interfaces inherited from class org.gnome.gobject.InitiallyUnowned
InitiallyUnowned.InitiallyUnownedClass
Nested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass
-
Constructor Summary
ConstructorDescriptionDeprecated.CellRendererText
(MemorySegment address) Deprecated.Create a CellRendererText proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected CellRendererText
asParent()
Deprecated.Returns this instance as if it were its parent type.static CellRendererText.Builder
<? extends CellRendererText.Builder> builder()
Deprecated.ACellRendererText.Builder
object constructs aCellRendererText
with the specified properties.protected void
Deprecated.void
emitEdited
(String path, String newText) Deprecated.Emits the "edited" signal.static MemoryLayout
Deprecated.The memory layout of the native struct.static Type
getType()
Deprecated.Get the GType of the CellRendererText classonEdited
(CellRendererText.EditedCallback handler) Deprecated.This signal is emitted afterrenderer
has been edited.void
setFixedHeightFromFont
(int numberOfRows) Deprecated.Methods inherited from class org.gnome.gtk.CellRenderer
activate, activate, editingCanceled, editingStarted, emitEditingCanceled, emitEditingStarted, getAlignedArea, getAlignedArea, getAlignment, getFixedSize, getIsExpanded, getIsExpander, getPadding, getPreferredHeight, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getRequestMode, getSensitive, getState, getState, getVisible, isActivatable, onEditingCanceled, onEditingStarted, setAlignment, setFixedSize, setIsExpanded, setIsExpander, setPadding, setSensitive, setVisible, snapshot, snapshot, startEditing, startEditing, stopEditing
Methods inherited from class org.gnome.gobject.GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newInstance, newInstance, newv, notify_, notify_, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withProperties
Methods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, getPrivate, readGClass, writeGClass
Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
CellRendererText
Deprecated.Create a CellRendererText proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
CellRendererText
Deprecated.Creates a newGtkCellRendererText
. Adjust how text is drawn using object properties. Object properties can be set globally (with g_object_set()). Also, withGtkTreeViewColumn
, you can bind a property to a value in aGtkTreeModel
. 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 theGtkTreeView
.
-
-
Method Details
-
getType
Deprecated.Get the GType of the CellRendererText class- Returns:
- the GType
-
getMemoryLayout
Deprecated.The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Deprecated.Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuper
keyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()
doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName()
. This will call the native function pointer of this virtual method in the typeclass of the parent type.- Overrides:
asParent
in classCellRenderer
-
setFixedHeightFromFont
Deprecated.Sets the height of a renderer to explicitly be determined by the “font” and “y_pad” property set on it. Further changes in these properties do not affect the height, so they must be accompanied by a subsequent call to this function. Using this function is inflexible, and should really only be used if calculating the size of a cell is too slow (ie, a massive number of cells displayed). IfnumberOfRows
is -1, then the fixed height is unset, and the height is determined by the properties again.- Parameters:
numberOfRows
- Number of rows of text each cell renderer is allocated, or -1
-
edited
-
onEdited
public SignalConnection<CellRendererText.EditedCallback> onEdited(CellRendererText.EditedCallback handler) Deprecated.This signal is emitted afterrenderer
has been edited.It is the responsibility of the application to update the model and store
newText
at the position indicated bypath
.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitEdited
Deprecated.Emits the "edited" signal. SeeonEdited(org.gnome.gtk.CellRendererText.EditedCallback)
. -
builder
Deprecated.ACellRendererText.Builder
object constructs aCellRendererText
with the specified properties. Use the variousset...()
methods to set properties, and finish construction withCellRendererText.Builder.build()
.
-