org.gnu.gtk.event

Class TextViewEvent

public class TextViewEvent extends GtkEvent

This event is used to identify events of the TextView widget.

See Also: TextView TextViewListener

Nested Class Summary
static classTextViewEvent.Type
Used to describe the type of event.
Constructor Summary
TextViewEvent(Object source, TextViewEvent.Type type)
Creates a new text view event
Method Summary
intgetCount()
Returns the count.
MenugetMenu()
Returns the menu.
MovementStepgetMovementStep()
Returns the movementStep.
booleanisOfType(TextViewEvent.Type test)
Comparison of TextViewEvent types
voidsetCount(int count)
Sets the count.
voidsetMenu(Menu menu)
Sets the menu.
voidsetMovementStep(MovementStep movementStep)
Sets the movementStep.

Constructor Detail

TextViewEvent

public TextViewEvent(Object source, TextViewEvent.Type type)
Creates a new text view event

Parameters: source The object that triggered the event. type The identification of the type of event that occurred.

Method Detail

getCount

public int getCount()
Returns the count.

Returns: int

getMenu

public Menu getMenu()
Returns the menu.

Returns: The menu item that was set when the POPULATE_POPUP event type is triggered.

getMovementStep

public MovementStep getMovementStep()
Returns the movementStep.

Returns: MovementStep

isOfType

public boolean isOfType(TextViewEvent.Type test)
Comparison of TextViewEvent types

Parameters: test The TreeViewEvent type to compare with this object.

Returns: true if the types are the same.

setCount

public void setCount(int count)
Sets the count.

Parameters: count The count to set

setMenu

public void setMenu(Menu menu)
Sets the menu.

Parameters: menu The menu to set

setMovementStep

public void setMovementStep(MovementStep movementStep)
Sets the movementStep.

Parameters: movementStep The movementStep to set