org.gnu.gtk.event

Class ToolBarEvent

Implemented Interfaces:
Serializable

public class ToolBarEvent
extends GtkEvent

This event is used to identify when a ToolBar receives an event
See Also:
ToolBarListener

Nested Class Summary

static class
ToolBarEvent.Type

Constructor Summary

ToolBarEvent(Object source, EventType type)
Constructor for ToolBarEvent.

Method Summary

int
getButtonNumber()
Orientation
getOrientation()
ToolBarStyle
getStyle()
int
getX()
int
getY()
boolean
isOfType(ToolBarEvent.Type aType)
void
setButtonNumber(int buttonNumber)
void
setOrientation(Orientation orientation)
void
setStyle(ToolBarStyle style)
void
setX(int x)
void
setY(int y)

Methods inherited from class org.gnu.gtk.event.GtkEvent

getSource, getType, toString

Constructor Details

ToolBarEvent

public ToolBarEvent(Object source,
                    EventType type)
Constructor for ToolBarEvent.
Parameters:
source -
type -

Method Details

getButtonNumber

public int getButtonNumber()
Returns:
Returns the buttonNumber.

getOrientation

public Orientation getOrientation()
Returns:
Returns the orientation.

getStyle

public ToolBarStyle getStyle()
Returns:
Returns the style.

getX

public int getX()
Returns:
Returns the x.

getY

public int getY()
Returns:
Returns the y.

isOfType

public boolean isOfType(ToolBarEvent.Type aType)
Returns:
True if the type of this event is the same as that stated.

setButtonNumber

public void setButtonNumber(int buttonNumber)
Parameters:
buttonNumber - The buttonNumber to set.

setOrientation

public void setOrientation(Orientation orientation)
Parameters:
orientation - The orientation to set.

setStyle

public void setStyle(ToolBarStyle style)
Parameters:
style - The style to set.

setX

public void setX(int x)
Parameters:
x - The x to set.

setY

public void setY(int y)
Parameters:
y - The y to set.