org.gnu.gtk
Class CellRendererText
public class CellRendererText
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.
CellRendererText
public CellRendererText()
Constructs a new text renderer
CellRendererText
public CellRendererText(Handle handle)
addListener
public void addListener(CellRendererTextListener listener)
Register an object to handle CellRendererText events.
getCellRendererText
public static CellRendererText getCellRendererText(Handle handle)
Internal static factory method to be used by Java-Gnome only.
getEventListenerClass
public Class getEventListenerClass(String signal)
getEventType
public EventType getEventType(String signal)
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface CellRenderer
setAttributes
public void setAttributes(AttrList attr)
Sets the pango attributes for the renderer.
attr
- PangoAttributeList to use.
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