This is the base class for a control or ``widget’’.
A control is generally a small window which processes user input and/or displays one or more item of data.
command(CommandEvent event)
Simulates the effect of the user issuing a command to the item. See CommandEvent.
String get_label()
Returns the control’s text. Note that the returned string contains the
mnemonics (& characters) if any, use
Control#get_label_text if they are
undesired.
String get_label_text()
Returns the control’s label without the mnemonics characters.
Can also be called as a class method, passing in a single label string; this will return the same label string with the mnemonic characters removed.
set_label(String label)
Sets the item’s text. The & characters in the label are special and
indicate that the following character is a mnemonic for this control and
can be used to activate it from the keyboard (typically by using Alt key
in combination with it). To insert a literal ampersand character, you need to double it, i.e. use "&&"
[This page automatically generated from the Textile source at Thu May 01 00:50:34 +0100 2008]