org.gnu.gtk

Class CellRendererText

public class CellRendererText extends CellRenderer

A {@link CellRenderer} for displaying Strings.

See the {@link 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 classCellRendererText.Attribute
Attributes which may be used to connect to data in a {@link TreeModel} via methods in the {@link TreeViewColumn} object.
Constructor Summary
CellRendererText()
Constructs a new text renderer
CellRendererText(Handle handle)
Method Summary
voidaddListener(CellRendererTextListener listener)
Register an object to handle CellRendererText events.
static CellRendererTextgetCellRendererText(Handle handle)
Internal static factory method to be used by Java-Gnome only.
ClassgetEventListenerClass(String signal)
EventTypegetEventType(String signal)
FontDescriptiongetFont()
Returns the font being used.
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidremoveListener(CellRendererTextListener listener)
Removes a listener
voidsetAttributes(AttrList attr)
Sets the pango attributes for the renderer.
voidsetEditable(boolean editable)
Sets whether the user may edit the text.
voidsetFont(FontDescription font)
Sets the font to use.
voidsetUnderline(Underline underline)
Sets the underline of all cells

Constructor Detail

CellRendererText

public CellRendererText()
Constructs a new text renderer

CellRendererText

public CellRendererText(Handle handle)

Method Detail

addListener

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

See Also: CellRendererTextListener

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)

getFont

public FontDescription getFont()
Returns the font being used.

getType

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

removeListener

public void removeListener(CellRendererTextListener listener)
Removes a listener

See Also: addListener

setAttributes

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

Parameters: attr PangoAttributeList to use.

setEditable

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

setFont

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

setUnderline

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