|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbluej.extensions.Extension
public abstract class Extension
Defines the interface between BlueJ and an extension. All extensions must extend this class. A concrete extension class must also have a no-arguments constructor.
| Field Summary | |
|---|---|
int |
VERSION_MAJOR
The major version number of the Extension API. |
int |
VERSION_MINOR
The minor version number of the Extension API. |
| Constructor Summary | |
|---|---|
Extension()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Should return a description of the extension's function. |
abstract java.lang.String |
getName()
Should return a name for this extension. |
java.net.URL |
getURL()
Should return a URL where more information about the extension is available. |
abstract java.lang.String |
getVersion()
Should return the version of the extension. |
abstract boolean |
isCompatible()
Determine whether this extension is compatible with a particular version of the extensions API. |
abstract void |
startup(BlueJ bluej)
Called when the extension can start its activity. |
void |
terminate()
Called when the extension should tidy up and terminate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int VERSION_MAJOR
public int VERSION_MINOR
| Constructor Detail |
|---|
public Extension()
| Method Detail |
|---|
public abstract boolean isCompatible()
public abstract void startup(BlueJ bluej)
bluej - The starting point for interactions with BlueJpublic void terminate()
BlueJ object after this method has been called will
reult in an (unchecked) ExtensionUnloadedException
being thrown by the BlueJ object.
public abstract java.lang.String getName()
public abstract java.lang.String getVersion()
public java.lang.String getDescription()
public java.net.URL getURL()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||