org.gnu.gtk
public class Expander extends Bin
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.Expander
.
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.
An Expander allows the user to hide or show its child by clicking on an expander triangle similar to the triangles used in a TreeView.
Constructor Summary | |
---|---|
Expander(String label, boolean hasMnemonic)
Creates a new Expander using label as the text of the label.
| |
Expander(Handle handle) |
Method Summary | |
---|---|
void | addListener(ExpanderListener listener)
Register an object to handle dialog events.
|
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
boolean | getExpanded()
Queries an Expander and returns its current state. |
static Expander | getExpander(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
String | getLabel()
Fetches the text from the label of the Expander, as set by
setLabel. |
Widget | getLabelWidget()
Retrieves the label widget for the frame.
|
int | getSpacing()
Gets the value set by Expander.
|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
boolean | getUseMarkup()
Returns whether the label's text is interpreted as marked up with the
Pango text markup language.
|
boolean | getUseUnderline()
Returns whether an embedded underline in the Expander label indicates a
mnemonic.
|
void | removeListener(ExpanderListener listener)
Removes a listener
|
void | setExpanded(boolean expanded)
Sets the state of the expander. |
void | setLabel(String label)
Sets the text of the label of the expander to label . |
void | setLabelWidget(Widget label)
Set the label widget for the Expander. |
void | setSpacing(int spacing)
Sets the spacing field of Expander, which is the number of pixels to
place between Expander and the child.
|
void | setUseMarkup(boolean useMarkup)
Sets whether the text of the label contains markup in Pango's text markup
language.
|
void | setUseUnderline(boolean useUnderline)
If true, an underline in the text of the Expander label indicates the
next character should be used for the mnemonic accelerator key.
|
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.
Creates a new Expander using label as the text of the label.
If hasMnemonic
is true, the label will be interpreted as
containing Mnemonic characters (keyboard accelerators). If
characters in label are preceded by an underscore, they are underlined.
If you need a literal underscore character in a label, use '__' (two
underscores). The first underlined character represents a keyboard
accelerator called a mnemonic. Pressing Alt and that key activates the
button.
Parameters: label the text of the label hasMnemonic see above description
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 dialog events.See Also: ExpanderListener
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.
Queries an Expander and returns its current state. ReturnsTRUE
if the child widget is revealed.
Returns: the current state of the expander
See Also: getExpanded
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.
Internal static factory method to be used by Java-Gnome only.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.
Fetches the text from the label of the Expander, as set by setLabel. If the label text has not been set the return value will beNULL
. This will be the case if
you create an empty button with Button to use as a
container.
Returns: the text of the label widget
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.
Retrieves the label widget for the frame.Returns: the label widget, or NULL
if there is none
See Also: setLabelWidget
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.
Gets the value set by Expander.Returns: spacing between the expander and child in pixels
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.
Returns whether the label's text is interpreted as marked up with the Pango text markup language.Returns: TRUE
if the label's text will be parsed for markup
See Also: Expander
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.
Returns whether an embedded underline in the Expander label indicates a mnemonic.Returns: TRUE
if an embedded underline in the Expander
label indicates the mnemonic accelerator keys.
See Also: Expander
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 listenerSee 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.
Sets the state of the expander. Set toTRUE
, if you want
the child widget to be revealed, and FALSE
if you want the
child widget to be hidden.
Parameters: expanded whether the child widget is revealed
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 the text of the label of the expander tolabel
. This
will also clear any previously set labels.
Parameters: label a string
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.
Set the label widget for the Expander. This is the widget that will appear embedded alongside the Expander arrow.Parameters: label the new label widget
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 the spacing field of Expander, which is the number of pixels to place between Expander and the child.Parameters: spacing distance between the Expander and child in pixels
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 text of the label contains markup in Pango's text markup language.Parameters: useMarkup
TRUE
if the label's text should be parsed for
markup
See Also: setMarkup
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 true, an underline in the text of the Expander label indicates the next character should be used for the mnemonic accelerator key.Parameters: useUnderline TRUE if underlines in the text indicate mnemonics