|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.Expander
A container which can hide its child.
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
.
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
Expander(Handle handle)
|
|
Expander(java.lang.String label,
boolean hasMnemonic)
Creates a new Expander using label as the text of the label. |
Method Summary | |
void |
addListener(ExpanderListener listener)
Register an object to handle dialog events. |
protected void |
fireExpanderEvent(ExpanderEvent event)
|
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
EventType |
getEventType(java.lang.String signal)
|
boolean |
getExpanded()
Queries an Expander and returns its current state. |
java.lang.String |
getLabel()
Fetches the text from the label of the Expander, as set by setLabel(String) . |
Widget |
getLabelWidget()
Retrieves the label widget for the frame. |
int |
getSpacing()
Gets the value set by setSpacing(int) . |
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. |
protected static boolean |
gtk_expander_get_expanded(Handle expander)
|
protected static Handle |
gtk_expander_get_label_widget(Handle expander)
|
protected static java.lang.String |
gtk_expander_get_label(Handle expander)
|
protected static int |
gtk_expander_get_spacing(Handle expander)
|
protected static int |
gtk_expander_get_type()
|
protected static boolean |
gtk_expander_get_use_markup(Handle expander)
|
protected static boolean |
gtk_expander_get_use_underline(Handle expander)
|
protected static Handle |
gtk_expander_new_with_mnemonic(java.lang.String label)
|
protected static Handle |
gtk_expander_new(java.lang.String label)
|
protected static void |
gtk_expander_set_expanded(Handle expander,
boolean expanded)
|
protected static void |
gtk_expander_set_label_widget(Handle expander,
Handle label)
|
protected static void |
gtk_expander_set_label(Handle expander,
java.lang.String label)
|
protected static void |
gtk_expander_set_spacing(Handle expander,
int spacing)
|
protected static void |
gtk_expander_set_use_markup(Handle expander,
boolean useMarkup)
|
protected static void |
gtk_expander_set_use_underline(Handle expander,
boolean useUnderline)
|
void |
removeListener(ExpanderListener listener)
Removes a listener |
void |
setExpanded(boolean expanded)
Sets the state of the expander. |
void |
setLabel(java.lang.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. |
Methods inherited from class org.gnu.gtk.Bin |
getChild, gtk_bin_get_child, gtk_bin_get_type |
Methods inherited from class org.gnu.gtk.GtkObject |
getFlags, gtk_object_destroy, gtk_object_get_type, gtk_object_sink, setFlags, sink |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Expander(java.lang.String label, boolean hasMnemonic)
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.
label
- the text of the labelhasMnemonic
- see above descriptionpublic Expander(Handle handle)
Method Detail |
public void setExpanded(boolean expanded)
TRUE
, if you want the
child widget to be revealed, and FALSE
if you want the child
widget to be hidden.
expanded
- whether the child widget is revealedpublic boolean getExpanded()
TRUE
if the child widget is revealed.
getExpanded()
public void setSpacing(int spacing)
spacing
- distance between the Expander and child in pixelspublic int getSpacing()
setSpacing(int)
.
public void setLabel(java.lang.String label)
label
.
This will also clear any previously set labels.
label
- a stringpublic java.lang.String getLabel()
setLabel(String)
.
If the label text has not been set the return value will be NULL
.
This will be the case if you create an empty button with Button.Button()
to use as a container.
public void setUseUnderline(boolean useUnderline)
useUnderline
- TRUE if underlines in the text indicate mnemonicspublic boolean getUseUnderline()
TRUE
if an embedded underline in the Expander label indicates the mnemonic accelerator keys.setUseUnderline(boolean)
public void setUseMarkup(boolean useMarkup)
useMarkup
- TRUE
if the label's text should be parsed for markupLabel.setMarkup(String)
public boolean getUseMarkup()
TRUE
if the label's text will be parsed for markupsetUseMarkup(boolean)
public void setLabelWidget(Widget label)
label
- the new label widgetpublic Widget getLabelWidget()
NULL
if there is nonesetLabelWidget(Widget)
public static Type getType()
public void addListener(ExpanderListener listener)
ExpanderListener
public void removeListener(ExpanderListener listener)
addListener(ExpanderListener)
protected void fireExpanderEvent(ExpanderEvent event)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Container
public EventType getEventType(java.lang.String signal)
getEventType
in class Container
protected static final int gtk_expander_get_type()
protected static final Handle gtk_expander_new(java.lang.String label)
protected static final Handle gtk_expander_new_with_mnemonic(java.lang.String label)
protected static final void gtk_expander_set_expanded(Handle expander, boolean expanded)
protected static final boolean gtk_expander_get_expanded(Handle expander)
protected static final void gtk_expander_set_spacing(Handle expander, int spacing)
protected static final int gtk_expander_get_spacing(Handle expander)
protected static final void gtk_expander_set_label(Handle expander, java.lang.String label)
protected static final java.lang.String gtk_expander_get_label(Handle expander)
protected static final void gtk_expander_set_use_underline(Handle expander, boolean useUnderline)
protected static final boolean gtk_expander_get_use_underline(Handle expander)
protected static final void gtk_expander_set_use_markup(Handle expander, boolean useMarkup)
protected static final boolean gtk_expander_get_use_markup(Handle expander)
protected static final void gtk_expander_set_label_widget(Handle expander, Handle label)
protected static final Handle gtk_expander_get_label_widget(Handle expander)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |