Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.Expander
public class Expander
extends Bin
TreeView
.
Constructor Summary | |
| |
|
Method Summary | |
void |
|
Class |
|
EventType |
|
boolean |
|
static Expander |
|
String |
|
Widget |
|
int |
|
static Type |
|
boolean |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.gnu.gtk.Container | |
add , addListener , getBooleanChildProperty , getBorderWidth , getChildProperty , getChildren , getEventListenerClass , getEventType , getIntChildProperty , getResizeMode , getType , remove , removeListener , resizeChildren , setBooleanChildProperty , setBorderWidth , setChildProperty , setIntChildProperty , setResizeMode |
public Expander(Handle handle)
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.
Create a new Widget with a handle to a native resource returned from a call to the native libraries.
- Parameters:
handle
- The handle that represents a pointer to a native resource.
public Expander(String label, boolean hasMnemonic)
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. IfhasMnemonic
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 labelhasMnemonic
- see above description
public void addListener(ExpanderListener listener)
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
public Class getEventListenerClass(String signal)
- Overrides:
- getEventListenerClass in interface Container
public EventType getEventType(String signal)
- Overrides:
- getEventType in interface Container
public boolean 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.
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()
public static Expander getExpander(Handle handle)
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.
public String getLabel()
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 bysetLabel(String)
. If the label text has not been set the return value will beNULL
. This will be the case if you create an empty button withButton.Button()
to use as a container.
- Returns:
- the text of the label widget
public Widget getLabelWidget()
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(Widget)
public int getSpacing()
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 bysetSpacing(int)
.
- Returns:
- spacing between the expander and child in pixels
public static Type getType()
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.
public boolean getUseMarkup()
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:
setUseMarkup(boolean)
public boolean getUseUnderline()
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:
setUseUnderline(boolean)
public void removeListener(ExpanderListener listener)
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(ExpanderListener)
public void setExpanded(boolean expanded)
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, andFALSE
if you want the child widget to be hidden.
- Parameters:
expanded
- whether the child widget is revealed
public void setLabel(String label)
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
public void setLabelWidget(Widget label)
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
public void setSpacing(int spacing)
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
public void setUseMarkup(boolean useMarkup)
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:
Label.setMarkup(String)
public void setUseUnderline(boolean useUnderline)
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