org.gnu.gtk.event
Class EditableEvent

java.lang.Object
  |
  +--org.gnu.gtk.event.GtkEvent
        |
        +--org.gnu.gtk.event.EditableEvent
All Implemented Interfaces:
java.io.Serializable

public class EditableEvent
extends GtkEvent

This event is used to identify when an editable receives an event

See Also:
EditableListener, Serialized Form

Nested Class Summary
static class EditableEvent.Type
           
 
Constructor Summary
EditableEvent(java.lang.Object source, GtkEventType type)
          Constructor for EditableEvent.
 
Method Summary
 int getEndPosition()
          Returns the endPosition.
 int getInsertPosition()
          Returns the insertPosition.
 int getStartPosition()
          Returns the startPosition.
 java.lang.String getText()
          Returns the text.
 boolean isOfType(EditableEvent.Type aType)
           
 void setEndPosition(int endPosition)
          Sets the endPosition.
 void setInsertPosition(int insertPosition)
          Sets the insertPosition.
 void setStartPosition(int startPosition)
          Sets the startPosition.
 void setText(java.lang.String text)
          Sets the text.
 
Methods inherited from class org.gnu.gtk.event.GtkEvent
getSource, getType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EditableEvent

public EditableEvent(java.lang.Object source,
                     GtkEventType type)
Constructor for EditableEvent.

Parameters:
source -
type -
Method Detail

isOfType

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

getEndPosition

public int getEndPosition()
Returns the endPosition.

Returns:
int

getInsertPosition

public int getInsertPosition()
Returns the insertPosition.

Returns:
int

getStartPosition

public int getStartPosition()
Returns the startPosition.

Returns:
int

getText

public java.lang.String getText()
Returns the text.

Returns:
String

setEndPosition

public void setEndPosition(int endPosition)
Sets the endPosition.

Parameters:
endPosition - The endPosition to set

setInsertPosition

public void setInsertPosition(int insertPosition)
Sets the insertPosition.

Parameters:
insertPosition - The insertPosition to set

setStartPosition

public void setStartPosition(int startPosition)
Sets the startPosition.

Parameters:
startPosition - The startPosition to set

setText

public void setText(java.lang.String text)
Sets the text.

Parameters:
text - The text to set

Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net