Class CellRendererText

All Implemented Interfaces:
Proxy
Direct Known Subclasses:
CellRendererAccel, CellRendererCombo, CellRendererSpin

@Generated("org.javagi.JavaGI") @Deprecated public class CellRendererText extends CellRenderer
Deprecated.
List views use widgets to display their contents. You should use Inscription or Label instead

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.

  • Constructor Details

    • CellRendererText

      public CellRendererText(MemorySegment address)
      Deprecated.
      Create a CellRendererText instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • CellRendererText

      public CellRendererText()
      Deprecated.
      Create a new CellRendererText.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the CellRendererText class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected CellRendererText asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class CellRenderer
      Returns:
      the instance as if it were its parent type
    • setFixedHeightFromFont

      @Deprecated public void setFixedHeightFromFont(int numberOfRows)
      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). If numberOfRows 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

      protected void edited(String path, String newText)
      Deprecated.
    • onEdited

      Deprecated.

      This signal is emitted after renderer has been edited.

      It is the responsibility of the application to update the model and store newText at the position indicated by path.

      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitEdited

      public void emitEdited(String path, String newText)
      Deprecated.
      Emits the "edited" signal. See onEdited(CellRendererText.EditedCallback).
    • builder

      public static CellRendererText.Builder<? extends CellRendererText.Builder> builder()
      Deprecated.
      A CellRendererText.Builder object constructs a CellRendererText with the specified properties. Use the various set...() methods to set properties, and finish construction with CellRendererText.Builder.build().
      Returns:
      the builder object