|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
jwo.utils.gui.JWFrame
jwo.landserf.gui.ScriptEditor
public class ScriptEditor
Creates a frame for managing LandScript files.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ScriptEditor()
Creates a GUI for script editing. |
|
ScriptEditor(boolean quitOnExit)
Creates a GUI for script editing. |
|
ScriptEditor(File file)
Creates a GUI for script editing, initially containing the script in the given file. |
|
ScriptEditor(File file,
boolean quitOnExit)
Creates a GUI for script editing, initially containing the script in the given file. |
|
ScriptEditor(String initialText)
Creates a GUI for script editing, initially containing the given text. |
|
ScriptEditor(String initialText,
boolean quitOnExit)
Creates a GUI for script editing, initially containing the given text. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Responds to a selection of menu item or button press. |
void |
closeDown()
Closes down the window and depending on what was passed to the constructor, may quit the application. |
void |
setLogger(Logger otherLogger)
Allows a logger to capture output from the script editor if output logging is turned on. |
void |
setMessage(String text)
Displays a message in the editor's status bar. |
void |
updateGUI(boolean isRunning)
Updates GUI depending on whether a script is currently running or not. |
void |
variableListChanged(HashMap varList)
Updates the syntax highlighting when variables are added/removed from those stored in the current script. |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Constructor Detail |
|---|
public ScriptEditor()
public ScriptEditor(boolean quitOnExit)
quitOnExit - The application will quit when the window is closed if true.public ScriptEditor(File file)
file - File containing script. If null, script editor is started with no script.public ScriptEditor(String initialText)
initialText - Initial text to appear in editor.
public ScriptEditor(File file,
boolean quitOnExit)
file - File containing script. If null, script editor is started with no script.quitOnExit - The application will quit when the window is closed if true.
public ScriptEditor(String initialText,
boolean quitOnExit)
initialText - Initial text to appear in editor.quitOnExit - The application will quit when the window is closed if true.| Method Detail |
|---|
public void setLogger(Logger otherLogger)
Level.FINE.
This allows script input to be separated from script output (which is sent to
Level.INFO, Level.WARNING and Level.SEVERE.
otherLogger - Logger to receive messages.public void updateGUI(boolean isRunning)
isRunning - True if script is running, otherwise false.public void closeDown()
closeDown in class JWFramepublic void variableListChanged(HashMap varList)
variableListChanged in interface VariableListenervarList - List of variables.public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - Menu/button selection event.public void setMessage(String text)
setMessage in class JWFrametext - Message to display.setLogger(java.util.logging.Logger)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||