org.fife.rtext
Class CurrentTextAreaEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.fife.rtext.CurrentTextAreaEvent
All Implemented Interfaces:
java.io.Serializable

public class CurrentTextAreaEvent
extends java.util.EventObject

Event that notifies when a property of the current text area changes.

Version:
0.6
Author:
Robert Futrell
See Also:
Serialized Form

Field Summary
static int FILE_NAME_CHANGED
           
static int IS_MODIFIED_CHANGED
           
static int SYNTAX_STYLE_CNANGED
           
static int TEXT_AREA_CHANGED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CurrentTextAreaEvent(AbstractMainView mainView, int type, java.lang.Object oldValue, java.lang.Object newValue)
          Constructor.
 
Method Summary
 AbstractMainView getMainView()
          Returns the main view whose current text area (or a property of it) changed.
 java.lang.Object getNewValue()
          Returns the new value of the current text area property.
 java.lang.Object getOldValue()
          Returns the old value of the current text area property.
 int getType()
          Returns the type of property that changed.
 java.lang.String toString()
          Returns a string representation of this event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEXT_AREA_CHANGED

public static final int TEXT_AREA_CHANGED
See Also:
Constant Field Values

IS_MODIFIED_CHANGED

public static final int IS_MODIFIED_CHANGED
See Also:
Constant Field Values

FILE_NAME_CHANGED

public static final int FILE_NAME_CHANGED
See Also:
Constant Field Values

SYNTAX_STYLE_CNANGED

public static final int SYNTAX_STYLE_CNANGED
See Also:
Constant Field Values
Constructor Detail

CurrentTextAreaEvent

public CurrentTextAreaEvent(AbstractMainView mainView,
                            int type,
                            java.lang.Object oldValue,
                            java.lang.Object newValue)
Constructor.

Parameters:
mainView - The main view whose current text area (or a property of it) changed.
type - The type of property that changed.
oldValue - The old value of the property.
newValue - The new value of the property.
Method Detail

getNewValue

public java.lang.Object getNewValue()
Returns the new value of the current text area property.

Returns:
The new value.

getOldValue

public java.lang.Object getOldValue()
Returns the old value of the current text area property.

Returns:
The old value.

getMainView

public AbstractMainView getMainView()
Returns the main view whose current text area (or a property of it) changed.

Returns:
The main view.

getType

public int getType()
Returns the type of property that changed. This allows you to know what type the old and new value objects are.

Returns:
The type of property that changed.

toString

public java.lang.String toString()
Returns a string representation of this event. Useful for debugging.

Returns:
A string representation of this event.