org.gnu.gtk
Class CellRendererText

java.lang.Object
  |
  +--org.gnu.glib.GObject
        |
        +--org.gnu.gtk.CellRenderer
              |
              +--org.gnu.gtk.CellRendererText

public class CellRendererText
extends CellRenderer

A CellRenderer for displaying Strings.

See the TreeView description for an overview fo the tree and list objects.

Gtk provides many properties for this renderer. Not all of them have been implemented in the Java-Gnome system (they're not all useful). If you have requirements for one of them which isn't implemented, please contact us and we may add support for it.


Nested Class Summary
static class CellRendererText.Attribute
          Attributes which may be used to connect to data in a TreeModel via methods in the TreeViewColumn object.
 
Constructor Summary
CellRendererText()
          Constructs a new text renderer
 
Method Summary
 void addListener(CellRendererTextListener listener)
          Register an object to handle CellRendererText events.
 java.lang.Class getEventListenerClass(java.lang.String signal)
           
 GtkEventType getEventType(java.lang.String signal)
           
 FontDescription getFont()
          Returns the font being used
static Type getType()
          Retrieve the runtime type used by the GLib library.
 void removeListener(CellRendererTextListener listener)
          Removes a listener
 void setAttributes(AttrList attr)
          Sets the pango attributes for the renderer
 void setEditable(boolean editable)
          Sets whether the user may edit the text.
 void setFont(FontDescription font)
          Sets the font to use
 void setUnderline(Underline underline)
          Sets the underline of all cells
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellRendererText

public CellRendererText()
Constructs a new text renderer

Method Detail

setAttributes

public void setAttributes(AttrList attr)
Sets the pango attributes for the renderer


setFont

public void setFont(FontDescription font)
Sets the font to use


getFont

public FontDescription getFont()
Returns the font being used


setEditable

public void setEditable(boolean editable)
Sets whether the user may edit the text.


setUnderline

public void setUnderline(Underline underline)
Sets the underline of all cells


addListener

public void addListener(CellRendererTextListener listener)
Register an object to handle CellRendererText events.

See Also:
CellRendererTextListener

removeListener

public void removeListener(CellRendererTextListener listener)
Removes a listener

See Also:
#addCellRendererTextListener(CellRendererTextListener)

getEventListenerClass

public java.lang.Class getEventListenerClass(java.lang.String signal)

getEventType

public GtkEventType getEventType(java.lang.String signal)

getType

public static Type getType()
Retrieve the runtime type used by the GLib library.


Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net