org.gnu.gtk

Class CellRenderer

public class CellRenderer extends GtkObject

A CellRenderer is an object used to render data in a {@link TreeView} widget. This is for all types of Table, Tree and list. Each renderer has one or more {@link CellRendererAttribute}. These attributes are for data to be rendered. This data is usually stored in a {@link TreeModel} object; the two current implementations of {@link TreeModel} being {@link ListStore} (for tables and lists) and {@link TreeStore} for trees.

The choice of data to be rendered is particular to the TreeView widget - any number of TreeView widgets may share the same data and choose to display only a selection of it. Data is displayed in a {@link TreeView} widget by attaching {@link TreeViewColumn}s and packing any number of {@link CellRenderer}s into each column. Links are then made between the renderers and the data in the model via the {@link TreeViewColumn#addAttributeMapping(CellRenderer, CellRendererAttribute, DataColumn)} method.

This class is a base class for the renderers, either home grown or any of the following standard renderers:

For a full overview of the tree and list objects, see the {@link TreeView} description.

Nested Class Summary
static classCellRenderer.Attribute
Attributes which may be used to connect to data in a {@link TreeModel} via methods in the {@link TreeViewColumn} object.
Method Summary
static TypegetType()
Retrieve the runtime type used by the GLib library.

Method Detail

getType

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