|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dbarnes.sgme.Extension
public abstract class Extension
Base class for custom extensions to the Simple Game Map Editor. All custom extensions to the Simple Game Map Editor must extend this class. Extensions can be used to manipulate project data in a specific manner, or to provide custom import and export functionality.
The Simple Game Map Editor object model is exposed through methods in this base class. In addition, a JFrame reference is provided for use as the parent component of any frames or dialogs created by the extension. Note that extensions should not attempt to modify the JFrame or any child components of the JFrame, as this may result in unexpected behavior.
| Constructor Summary | |
|---|---|
Extension()
|
|
| Method Summary | |
|---|---|
abstract void |
extensionInvoked()
Called by the Simple Game Map Editor application when the extension is invoked through the extensions menu. |
javax.swing.JFrame |
getFrame()
Returns the a JFrame component for use as the parent component of any frames or dialogs created by the extension. |
Project |
getProject()
Returns the current project. |
void |
init(Project project,
javax.swing.JFrame mainFrame)
Initializes the Extension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Extension()
| Method Detail |
|---|
public void init(Project project,
javax.swing.JFrame mainFrame)
public final Project getProject()
public final javax.swing.JFrame getFrame()
public abstract void extensionInvoked()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||