org.gnu.gtk.event

Class ToolBarEvent

public class ToolBarEvent extends GtkEvent

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. Signal handling an connection has been completely re-implemented in java-gnome 4.0, so you will need to refactor any code attempting to use this class.

This event is used to identify when a ToolBar receives an event

See Also:

Nested Class Summary
static classToolBarEvent.Type
Constructor Summary
ToolBarEvent(Object source, EventType type)
Constructor for ToolBarEvent.
Method Summary
intgetButtonNumber()
OrientationgetOrientation()
ToolBarStylegetStyle()
intgetX()
intgetY()
booleanisOfType(ToolBarEvent.Type aType)
voidsetButtonNumber(int buttonNumber)
voidsetOrientation(Orientation orientation)
voidsetStyle(ToolBarStyle style)
voidsetX(int x)
voidsetY(int y)

Constructor Detail

ToolBarEvent

public ToolBarEvent(Object source, EventType type)

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Constructor for ToolBarEvent.

Parameters: source type

Method Detail

getButtonNumber

public int getButtonNumber()

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns: Returns the buttonNumber.

getOrientation

public Orientation getOrientation()

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns: Returns the orientation.

getStyle

public ToolBarStyle getStyle()

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns: Returns the style.

getX

public int getX()

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns: Returns the x.

getY

public int getY()

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns: Returns the y.

isOfType

public boolean isOfType(ToolBarEvent.Type aType)

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Returns: True if the type of this event is the same as that stated.

setButtonNumber

public void setButtonNumber(int buttonNumber)

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Parameters: buttonNumber The buttonNumber to set.

setOrientation

public void setOrientation(Orientation orientation)

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Parameters: orientation The orientation to set.

setStyle

public void setStyle(ToolBarStyle style)

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Parameters: style The style to set.

setX

public void setX(int x)

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Parameters: x The x to set.

setY

public void setY(int y)

Deprecated: Superceeded by java-gnome 4.0; Signals all have individual interfaces each with a single method corresponding to the signature of the underlying callback.

Parameters: y The y to set.