Package jaxe
Class JaxeEditEvent
java.lang.Object
java.util.EventObject
jaxe.JaxeEditEvent
- All Implemented Interfaces:
Serializable
EditEvent for changes in the document
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionJaxeEditEvent
(Object source, int offs, String text) Creates an event with plain textJaxeEditEvent
(Object source, JaxeElement e) Creates an event with JaxeElements -
Method Summary
Modifier and TypeMethodDescriptionvoid
consume()
Sets the used status to trueReturns the JaxeElement or null if event is used with textint
Returns the offset in the documentgetText()
Returns the text or null is event is used with JaxeElementboolean
Status, if the event hast been uses;toString()
toStringMethods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
JaxeEditEvent
Creates an event with JaxeElements- Parameters:
source
- Eventsourcee
- JaxeElement
-
JaxeEditEvent
Creates an event with plain text- Parameters:
source
- Eventsourceoffs
- Offset in documenttext
- Text
-
-
Method Details
-
getJaxeElement
Returns the JaxeElement or null if event is used with text- Returns:
- JaxeElement
-
getOffset
public int getOffset()Returns the offset in the document- Returns:
- Offset
-
isConsumed
public boolean isConsumed()Status, if the event hast been uses;- Returns:
- true, if used
-
consume
public void consume()Sets the used status to true -
getText
Returns the text or null is event is used with JaxeElement- Returns:
- Text
-
toString
toString- Overrides:
toString
in classEventObject
-