org.gnu.gtk

Class ToolButton

Known Direct Subclasses:
MenuToolButton, ToggleToolButton

public class ToolButton
extends ToolItem

A ToolItem subclass that displays buttons.

Constructor Summary

ToolButton(Handle hndl)
ToolButton(String stockId)
Deprecated.
ToolButton(GtkStockItem stockItem)
ToolButton(Widget iconWidget, String label)

Method Summary

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.
Class
getEventListenerClass(String signal)
EventType
getEventType(String signal)
Widget
getIconWidget()
String
getLabel()
Label
getLabelWidget()
String
getStockId()
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.
boolean
getUseUnderline()
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.
void
setIconWidget(Widget iconWidget)
void
setLabel(String label)
void
setLabelWidget(Label labelWidget)
void
setStockId(String stockId)
void
setUseUnderline(boolean useUnderline)

Methods inherited from class org.gnu.gtk.ToolItem

getExpand, getHomogeneous, getIconSize, getIsImportant, getOrientation, getProxyMenuItem, getReliefStyle, getToolItem, getToolbarStyle, getUseDragWindow, getVisibleHorizontal, getVisibleVertical, rebuildMenu, retrieveProxyMenuItem, setExpand, setHomogeneous, setIsImportant, setProxyMenuItem, setToolTip, setTooltip, setUseDragWindow, setVisibleHorizontal, setVisibleVertical

Methods inherited from class org.gnu.gtk.Bin

getChild, getType

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

Methods inherited from class org.gnu.gtk.Widget

activate, addAccelerator, addEvents, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, canActivateAccel, createContext, createLayout, draw, drawArea, drawArea, finish, getAccessible, getAllocation, getCanFocus, getColormap, getContext, getData, getDisplay, getDragData, getEventListenerClass, getEventType, getExtensionEvents, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, getType, getWidget, getWindow, grabDefault, grabFocus, hasFocus, hasScreen, hide, hideAll, highlight, highlight, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeAccelerator, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setCanFocus, setColormap, setDoubleBuffered, setDragDestination, setDragIcon, setDragIconPixbuf, setDragIconStock, setDragSource, setEvents, setExtensionEvents, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll, unHighlight, unHighlight

Methods inherited from class org.gnu.gtk.GtkObject

destroy, getType, sink

Constructor Details

ToolButton

public ToolButton(Handle hndl)

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(Widget iconWidget,
                  String label)

Method Details

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.

getEventListenerClass

public Class getEventListenerClass(String signal)
Overrides:
getEventListenerClass in interface Container

getEventType

public EventType getEventType(String signal)
Overrides:
getEventType in interface Container

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

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)