org.gnu.gtk
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.
Nested Class Summary | |
---|---|
static class | CellRendererToggle.Attribute Attributes for mapping to data in the TreeModel |
Constructor Summary | |
---|---|
CellRendererToggle()
Constructs a new Cell Renderer. |
Method Summary | |
---|---|
void | addListener(CellRendererToggleListener l)
Register an object to handle CellRendererToggle events.
|
void | fireCellRendererToggleEvent(CellRendererToggleEvent evt) |
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | removeListener(CellRendererToggleListener l)
Removes a listener.
|
void | setRadio(boolean radio)
If radio is TRUE, the cell renderer renders a radio toggle (ie a toggle
in a group of mutually-exclusive toggles). |
void | setToggled(boolean toggled)
Sets whether all cells are toggled. |
void | setUserEditable(boolean setting)
Sets whether the user can change the toggled status of the cell. |
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.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
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.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
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
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.
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 propertyParameters: setting If true, the value of all cells may be changed.