org.gnu.gtk

Class ToolButton

public class ToolButton extends ToolItem

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.ToolButton. 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.

A ToolItem subclass that displays buttons.
Constructor Summary
ToolButton(Widget iconWidget, String label)
ToolButton(String stockId)
ToolButton(GtkStockItem stockItem)
ToolButton(Handle hndl)
Method Summary
voidaddListener(ToolButtonListener listener)
Register an object to handle dialog events.
ClassgetEventListenerClass(String signal)
EventTypegetEventType(String signal)
WidgetgetIconWidget()
StringgetLabel()
LabelgetLabelWidget()
StringgetStockId()
static ToolButtongetToolButton(Handle handle)
Internal static factory method to be used by Java-Gnome only.
booleangetUseUnderline()
voidremoveListener(ToolButtonListener listener)
Removes a listener
voidsetIconWidget(Widget iconWidget)
voidsetLabel(String label)
voidsetLabelWidget(Label labelWidget)
voidsetStockId(String stockId)
voidsetUseUnderline(boolean useUnderline)

Constructor Detail

ToolButton

public ToolButton(Widget iconWidget, String label)

ToolButton

public ToolButton(String stockId)

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.

ToolButton

public ToolButton(GtkStockItem stockItem)

ToolButton

public ToolButton(Handle hndl)

Method Detail

addListener

public void addListener(ToolButtonListener 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: ToolButtonListener

getEventListenerClass

public Class getEventListenerClass(String signal)

getEventType

public EventType getEventType(String signal)

getIconWidget

public Widget getIconWidget()

getLabel

public String getLabel()

getLabelWidget

public Label getLabelWidget()

getStockId

public String getStockId()

getToolButton

public static ToolButton getToolButton(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.

getUseUnderline

public boolean getUseUnderline()

removeListener

public void removeListener(ToolButtonListener 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

setIconWidget

public void setIconWidget(Widget iconWidget)

setLabel

public void setLabel(String label)

setLabelWidget

public void setLabelWidget(Label labelWidget)

setStockId

public void setStockId(String stockId)

setUseUnderline

public void setUseUnderline(boolean useUnderline)