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
Nested ClassesModifier and TypeClassDescriptionstatic classCellRendererText.Builder<B extends CellRendererText.Builder<B>>Deprecated.Inner class implementing a builder pattern to construct a GObject with properties.static classDeprecated.static interfaceDeprecated.Functional interface declaration of theEditedCallbackcallback.Nested classes/interfaces inherited from class org.gnome.gtk.CellRenderer
CellRenderer.CellRenderer$Impl, CellRenderer.CellRendererClass, CellRenderer.EditingCanceledCallback, CellRenderer.EditingStartedCallbackNested classes/interfaces inherited from class org.gnome.gobject.InitiallyUnowned
InitiallyUnowned.InitiallyUnownedClassNested classes/interfaces inherited from class org.gnome.gobject.GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new CellRendererText.CellRendererText(MemorySegment address) Deprecated.Create a CellRendererText proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected CellRendererTextasParent()Deprecated.Returns this instance as if it were its parent type.static CellRendererText.Builder<? extends CellRendererText.Builder> builder()Deprecated.ACellRendererText.Builderobject constructs aCellRendererTextwith the specified properties.protected voidDeprecated.voidemitEdited(String path, String newText) Deprecated.Emits the "edited" signal.static MemoryLayoutDeprecated.The memory layout of the native struct.static @Nullable TypegetType()Deprecated.Get the GType of the CellRendererText classonEdited(CellRendererText.EditedCallback handler) Deprecated.This signal is emitted afterrendererhas been edited.voidsetFixedHeightFromFont(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, stopEditingMethods 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, 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, withPropertiesMethods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class org.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
public CellRendererText()Deprecated.Creates a new CellRendererText.
-
-
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 Javasuperkeyword, 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:
asParentin 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). IfnumberOfRowsis -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 afterrendererhas been edited.It is the responsibility of the application to update the model and store
newTextat 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.Builderobject constructs aCellRendererTextwith the specified properties. Use the variousset...()methods to set properties, and finish construction withCellRendererText.Builder.build().- Returns:
- the builder object
-
InscriptionorLabelinstead