org.gnu.gtk
Class CellRendererToggle
public class CellRendererToggle
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getPixbufProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify |
CellRendererToggle
public CellRendererToggle()
Constructs a new Cell Renderer.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface CellRenderer
setRadio
public 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). 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).
radio - TRUE to make the toggle look like a radio button
setToggled
public void setToggled(boolean toggled)
toggled - If true, all cells will be toggled, or cheked.
setUserEditable
public void setUserEditable(boolean setting)
setting - If true, the value of all cells may be changed.