| |
|
| java.lang.Object nextapp.echo2.app.ApplicationInstance nextapp.echo2.testapp.interactive.InteractiveApp
InteractiveApp | public class InteractiveApp extends ApplicationInstance (Code) | | Interactive Test Application Instance.
WARNING TO DEVELOPERS:
Beware that the Interactive Test Application is not a good example of an
Echo application. The intent of this application is to serve as a running
testbed for the Echo framework. As such, the requirements of this
application are dramatically different from a production internet
application. There is stuff in this code of this application that is
downright absurd. Please do not look to this application to see good design
practices for building your own Echo applications--you will not find them
here.
|
Field Summary | |
final public static boolean | LIVE_DEMO_SERVER A boolean flag indicating whether the application is running on a live
demo server. |
Method Summary | |
public void | consoleWrite(String message) Writes a message to a pop-up debugging console. | public void | displayTestPane() Displays a TestPane from which the user may select an
interactive test to run. | public void | displayWelcomePane() Displays the WelcomePane which greets new users visiting
the application. | public static InteractiveApp | getApp() Convenience method to return the ThreadLocal instance
precast to the appropriate type. | public Window | init() | public void | setGhostIterationWindowTitle(int iteration) Sets the window title to display the current iteration of the ghost
test. | public void | startGhostTask(GhostTask ghostTask, int interval) Starts the ghost test with the specified callback interval, run-time,
and clicks-per-iteration. | public void | stopGhostTest() Stops the currently running ghost test. |
LIVE_DEMO_SERVER | final public static boolean LIVE_DEMO_SERVER(Code) | | A boolean flag indicating whether the application is running on a live
demo server. This flag is used to disable certain tests based on
whether the nextapp.echo2.demoserver system property is
set.
|
consoleWrite | public void consoleWrite(String message)(Code) | | Writes a message to a pop-up debugging console.
The console is used for displaying information such as
fired events.
Parameters: message - the message to write to the console |
displayTestPane | public void displayTestPane()(Code) | | Displays a TestPane from which the user may select an
interactive test to run.
|
displayWelcomePane | public void displayWelcomePane()(Code) | | Displays the WelcomePane which greets new users visiting
the application.
|
setGhostIterationWindowTitle | public void setGhostIterationWindowTitle(int iteration)(Code) | | Sets the window title to display the current iteration of the ghost
test.
Parameters: iteration - the iteration number (negative values will restorethe window title to its normal state) |
startGhostTask | public void startGhostTask(GhostTask ghostTask, int interval)(Code) | | Starts the ghost test with the specified callback interval, run-time,
and clicks-per-iteration.
Parameters: interval - the callback interval between ghost actions, inmilliseconds |
stopGhostTest | public void stopGhostTest()(Code) | | Stops the currently running ghost test.
|
|
|
|