org.gnu.gtk.event
Class TextViewEvent
- Serializable
public class TextViewEvent
This event is used to identify events of the TextView widget.
TextViewEvent
public TextViewEvent(Object source,
TextViewEvent.Type type)
Creates a new text view event
source
- The object that triggered the event.type
- The identification of the type of event that occurred.
getCount
public int getCount()
Returns the count.
getMenu
public Menu getMenu()
Returns the menu.
- The menu item that was set when the POPULATE_POPUP event type is
triggered.
getMovementStep
public MovementStep getMovementStep()
Returns the movementStep.
isOfType
public boolean isOfType(TextViewEvent.Type test)
Comparison of TextViewEvent types
test
- The TreeViewEvent type to compare with this object.
- true if the types are the same.
setCount
public void setCount(int count)
Sets the count.
setMenu
public void setMenu(Menu menu)
Sets the menu.
setMovementStep
public void setMovementStep(MovementStep movementStep)
Sets the movementStep.
movementStep
- The movementStep to set