|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Frame javax.swing.JFrame abbot.editor.ScriptEditorFrame
public class ScriptEditorFrame
Provides the primary frame for the Costello script editor. Maintains the LAF used when first created, restoring it temporarily when displaying any new components. FIXME needs major refactoring: Export actions (via ActionMap) Use generic menu setup provided by a special array of actions
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 | |
---|---|
(package private) boolean |
firstShow
Save size and position information before hiding. |
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, NORMAL, 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 abbot.Version |
---|
VERSION |
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 | |
---|---|
ScriptEditorFrame(String[][] menus,
ActionMap actionMap,
ActionListener listener,
String title,
ScriptTable scriptTable,
Preferences preferences)
Constructs a ScriptEditorFrame with a title and a scriptable |
Method Summary | |
---|---|
ComponentBrowser |
getComponentBrowser()
Returns the componentBrowser. |
JLabel |
getCurrentTestSuiteLabel()
Returns the testSuiteDescription. |
JPanel |
getEditor()
|
Dimension |
getPreferredSize()
|
ScriptTable |
getScriptTable()
Returns the scriptTable. |
String |
getStatus()
|
JTextField |
getTestScriptDescription()
Returns the testScriptDescription. |
JComboBox |
getTestScriptSelector()
Returns the testScriptSelector. |
void |
hide()
Deprecated. |
void |
populateAssertMenu(ArrayList actions)
Fill the menu with available assertXXX methods for the given class. |
void |
populateCaptureMenu(ArrayList actions)
Create the list of recordable GUI actions. |
void |
populateInsertMenu(ArrayList actions)
Fill the menu with available actionXXX methods for the given class. |
void |
populateWaitMenu(ArrayList actions)
Same as populateAssertMenu, but makes them waits instead. |
void |
setAssertOptions(boolean wait,
boolean invert)
|
void |
setComponentBrowser(ComponentBrowser componentBrowser)
Sets the componentBrowser. |
void |
setEditor(JPanel editor)
|
void |
setStatus(String msg,
String extended,
Color color)
Set the text for the status window. |
void |
show()
Deprecated. |
void |
showAboutBox()
|
int |
showConfirmation(String msg)
Display a confirmation dialog. |
int |
showConfirmation(String msg,
int opts)
Display a confirmation dialog. |
void |
showError(String msg)
Global facility for error dialogs. |
void |
showError(String title,
String msg)
Global facility for error dialogs. |
String |
showInputDialog(String title,
String msg,
String initial)
Global facility for obtaining a user input String. |
void |
showMessage(String title,
String msg)
Global facility for message dialogs. |
void |
showWarning(String msg)
Global facility for warning dialog. |
void |
showWarning(String title,
String msg)
Global facility for warning dialog. |
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 |
Field Detail |
---|
boolean firstShow
Constructor Detail |
---|
public ScriptEditorFrame(String[][] menus, ActionMap actionMap, ActionListener listener, String title, ScriptTable scriptTable, Preferences preferences)
Method Detail |
---|
public ComponentBrowser getComponentBrowser()
public void setComponentBrowser(ComponentBrowser componentBrowser)
componentBrowser
- The componentBrowser to setpublic ScriptTable getScriptTable()
public String getStatus()
public void show()
show
in class Window
public void hide()
hide
in class Window
public void setStatus(String msg, String extended, Color color)
public Dimension getPreferredSize()
getPreferredSize
in class Container
public JLabel getCurrentTestSuiteLabel()
public JComboBox getTestScriptSelector()
public JTextField getTestScriptDescription()
public void showAboutBox()
public void setAssertOptions(boolean wait, boolean invert)
public void populateInsertMenu(ArrayList actions)
public void populateAssertMenu(ArrayList actions)
public void populateWaitMenu(ArrayList actions)
public void populateCaptureMenu(ArrayList actions)
public JPanel getEditor()
public void setEditor(JPanel editor)
public int showConfirmation(String msg)
public int showConfirmation(String msg, int opts)
public String showInputDialog(String title, String msg, String initial)
public void showMessage(String title, String msg)
public void showWarning(String msg)
public void showWarning(String title, String msg)
public void showError(String msg)
public void showError(String title, String msg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |