com.borland.jbuilder.jot
Class JotFileEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.borland.primetime.util.DispatchableEvent
|
+--com.borland.jbuilder.jot.JotFileEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class JotFileEvent
- extends DispatchableEvent
This class represents an event that is thrown when a JotFile changes. Classes
which intend to receive notification of these changes should implement the
JotFileListener interface.
- See Also:
- Serialized Form
Field Summary |
static int |
CLASS_CHANGED
A class or interface has been added to or removed from a file. |
static int |
IMPORT_CHANGED
The file's imports have changed. |
static int |
MISC_CHANGED
The file has changed in an area not included by the other events. |
static int |
PACKAGE_CHANGED
The file's package statement has been changed. |
Fields inherited from class java.util.EventObject |
source |
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 |
PACKAGE_CHANGED
public static final int PACKAGE_CHANGED
- The file's package statement has been changed.
IMPORT_CHANGED
public static final int IMPORT_CHANGED
- The file's imports have changed.
CLASS_CHANGED
public static final int CLASS_CHANGED
- A class or interface has been added to or removed from a file.
MISC_CHANGED
public static final int MISC_CHANGED
- The file has changed in an area not included by the other events.
JotFileEvent
public JotFileEvent(JotSourceFile source,
int id)
JotFileEvent
public JotFileEvent(JotSourceFile source,
JotImport imp)
JotFileEvent
public JotFileEvent(JotSourceFile source,
JotClassSource clazz)
getFile
public JotSourceFile getFile()
- Returns the JotSourceFile that threw this event.
getImport
public JotImport getImport()
- Returns an instance of JotImport if the
import
statement for
the source file changed.
getClazz
public JotClassSource getClazz()
- Returns the modified JotClass instance.
dispatch
public void dispatch(java.util.EventListener l)
- Overrides:
dispatch
in class DispatchableEvent
paramString
protected java.lang.String paramString()
- Overrides:
paramString
in class DispatchableEvent