org.gnu.gtk

Class CellRendererToggle

public class CellRendererToggle extends CellRenderer

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may in the future have an equivalent in java-gnome 4.0, try looking for org.gnome.gtk.CellRendererToggle. You should be aware that there is a considerably different API in the new library: the architecture is completely different and most notably internals are no longer exposed to public view.

The CellRendererToggle is a CellRenderer for boolean data.
Nested Class Summary
static classCellRendererToggle.Attribute
Attributes for mapping to data in the TreeModel
Constructor Summary
CellRendererToggle()
Constructs a new Cell Renderer.
Method Summary
voidaddListener(CellRendererToggleListener l)
Register an object to handle CellRendererToggle events.
voidfireCellRendererToggleEvent(CellRendererToggleEvent evt)
ClassgetEventListenerClass(String signal)
EventTypegetEventType(String signal)
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidremoveListener(CellRendererToggleListener l)
Removes a listener.
voidsetRadio(boolean radio)
If radio is TRUE, the cell renderer renders a radio toggle (ie a toggle in a group of mutually-exclusive toggles).
voidsetToggled(boolean toggled)
Sets whether all cells are toggled.
voidsetUserEditable(boolean setting)
Sets whether the user can change the toggled status of the cell.

Constructor Detail

CellRendererToggle

public CellRendererToggle()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Constructs a new Cell Renderer.

Method Detail

addListener

public void addListener(CellRendererToggleListener l)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Register an object to handle CellRendererToggle events.

See Also: CellRendererTextListener

fireCellRendererToggleEvent

public void fireCellRendererToggleEvent(CellRendererToggleEvent evt)

getEventListenerClass

public Class getEventListenerClass(String signal)

getEventType

public EventType getEventType(String signal)

getType

public static Type getType()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

removeListener

public void removeListener(CellRendererToggleListener l)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Removes a listener.

See Also: addListener

setRadio

public void setRadio(boolean radio)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

If radio is TRUE, the cell renderer renders a radio toggle (ie a toggle in a group of mutually-exclusive toggles). If FALSE, it renders a check toggle (a standalone boolean option). This can be set globally for the cell renderer, or changed just before rendering each cell in the model (for TreeView, you set up a per-row setting using TreeViewColumn to associate model columns with cell renderer properties).

Parameters: radio TRUE to make the toggle look like a radio button

setToggled

public void setToggled(boolean toggled)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets whether all cells are toggled. You will usually want to do this based on data in the model, using TreeViewColumn with the ACTIVE attribute.

Parameters: toggled If true, all cells will be toggled, or cheked.

setUserEditable

public void setUserEditable(boolean setting)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Sets whether the user can change the toggled status of the cell. This method will change the setting for all cells. It can be set on a cell by cell basis by including the data in the model and attaching the ACTIVATABLE property, using the TreeViewColumn property

Parameters: setting If true, the value of all cells may be changed.