Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Public Member Functions | List of all members
GUI.testing.automatic Class Reference
Inheritance diagram for GUI.testing.automatic:
CASUAL.iCASUALUI CASUAL.iCASUALUI

Public Member Functions

boolean isReady ()
 
void setReady (boolean ready)
 
boolean isDummyGUI ()
 
String displayMessage (CASUALMessageObject mo)
 
void dispose ()
 
void StartButtonActionPerformed ()
 
void setCASPAC (Caspac caspac)
 
void setInformationScrollBorderText (String title)
 
void setProgressBar (int value)
 
void setProgressBarMax (int value)
 
void setScript (Script s)
 
void setStartButtonText (String text)
 
void setUserSubMessage (String text)
 
void setWindowBannerText (String text)
 
void setVisible (boolean b)
 
void deviceConnected (String mode)
 
void deviceDisconnected ()
 
void deviceMultipleConnected (int numberOfDevicesConnected)
 
void setBlocksUnzipped (String i)
 
void sendString (String string)
 
void sendProgress (String data)
 
void setUserMainMessage (String text)
 
boolean setControlStatus (boolean status, int number, String mode)
 
boolean isReady ()
 
void setReady (boolean ready)
 
boolean isDummyGUI ()
 
String displayMessage (CASUALMessageObject mo)
 
void dispose ()
 
void StartButtonActionPerformed ()
 
void setCASPAC (Caspac caspac)
 
void setInformationScrollBorderText (String title)
 
void setProgressBar (int value)
 
void setProgressBarMax (int value)
 
void setScript (Script s)
 
void setStartButtonText (String text)
 
void setUserSubMessage (String text)
 
void setWindowBannerText (String text)
 
void setVisible (boolean b)
 
void deviceConnected (String mode)
 
void deviceDisconnected ()
 
void deviceMultipleConnected (int numberOfDevicesConnected)
 
void setBlocksUnzipped (String i)
 
void sendString (String string)
 
void sendProgress (String data)
 
void setUserMainMessage (String text)
 
boolean setControlStatus (boolean status, int number, String mode)
 

Additional Inherited Members

- Public Attributes inherited from CASUAL.iCASUALUI
final int INTERACTION_TIME_OUT = 0
 
final int INTERACTION_ACTION_REUIRED = 1
 
final int INTERACTION_USER_CANCEL_OPTION = 2
 
final int INTERACTION_USER_NOTIFICATION = 3
 
final int INTERACTION_SHOW_INFORMATION = 4
 
final int INTERACTION_SHOW_ERROR = 5
 
final int INTERACTION_SHOW_YES_NO = 6
 
final int INTERACTION_INPUT_DIALOG = 7
 
final int INTERACTION_COMMAND_NOTIFICATION = 8
 

Detailed Description

Author
adam

Member Function Documentation

String GUI.testing.automatic.displayMessage ( CASUALMessageObject  messageObject)

Takes a message object and displays to user. To properly implement this class the displayMessage should, at a minimum handle both CASUALMessageObject.title and CASUALMessageObject.messageText.

Parameters
messageObjectdefined by CASUAL
Returns
string value which must be interpereted

Implements CASUAL.iCASUALUI.

String GUI.testing.automatic.displayMessage ( CASUALMessageObject  messageObject)

Takes a message object and displays to user. To properly implement this class the displayMessage should, at a minimum handle both CASUALMessageObject.title and CASUALMessageObject.messageText.

Parameters
messageObjectdefined by CASUAL
Returns
string value which must be interpereted

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.dispose ( )

disposes the current window. should be used to terminate application. This method can be used to call CASUALMain.Shutdown for proper shutdown. This should contain "Statics.GUI=null;" for faster shutdown. This method can contain System.exit at the end.

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.dispose ( )

disposes the current window. should be used to terminate application. This method can be used to call CASUALMain.Shutdown for proper shutdown. This should contain "Statics.GUI=null;" for faster shutdown. This method can contain System.exit at the end.

Implements CASUAL.iCASUALUI.

boolean GUI.testing.automatic.isDummyGUI ( )

returns true if the UI is a dummy UI. Dummy UI is used for testing and for running CASPACs with a UI from the command line. This is useful for situations when you want to run an automated UI on a loop.

Returns
true if dummy ui.

Implements CASUAL.iCASUALUI.

boolean GUI.testing.automatic.isDummyGUI ( )

returns true if the UI is a dummy UI. Dummy UI is used for testing and for running CASPACs with a UI from the command line. This is useful for situations when you want to run an automated UI on a loop.

Returns
true if dummy ui.

Implements CASUAL.iCASUALUI.

boolean GUI.testing.automatic.isReady ( )

returns true if the UI is ready.

Returns
true if ui is ready

Implements CASUAL.iCASUALUI.

boolean GUI.testing.automatic.isReady ( )

returns true if the UI is ready.

Returns
true if ui is ready

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.sendProgress ( String  data)

sends a bit of data at a time, such as a character from a terminal command. b should backspace. should erase line.

Parameters
datadata to be sent to UI

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.sendProgress ( String  data)

sends a bit of data at a time, such as a character from a terminal command. b should backspace. should erase line.

Parameters
datadata to be sent to UI

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.sendString ( String  string)

sends a message to the user console

Parameters
stringString to send

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.sendString ( String  string)

sends a message to the user console

Parameters
stringString to send

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setBlocksUnzipped ( String  value)

used during unzip as a progress indicator

Parameters
valuenumber of blocks unzipped.

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setBlocksUnzipped ( String  value)

used during unzip as a progress indicator

Parameters
valuenumber of blocks unzipped.

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setCASPAC ( Caspac  caspac)

Sets a reference to the current CASPAC so information can be displayed

Parameters
caspaccaspac to reference

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setCASPAC ( Caspac  caspac)

Sets a reference to the current CASPAC so information can be displayed

Parameters
caspaccaspac to reference

Implements CASUAL.iCASUALUI.

boolean GUI.testing.automatic.setControlStatus ( boolean  status,
int  numberOfDevicesConnected,
String  mode 
)

sets controls status

Parameters
statuscommanded value
numberOfDevicesConnectedis the number of connected devices.
modestring value representing mode of checking for devices.
Returns
true if successful

Implements CASUAL.iCASUALUI.

boolean GUI.testing.automatic.setControlStatus ( boolean  status,
int  numberOfDevicesConnected,
String  mode 
)

sets controls status

Parameters
statuscommanded value
numberOfDevicesConnectedis the number of connected devices.
modestring value representing mode of checking for devices.
Returns
true if successful

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setInformationScrollBorderText ( String  title)

Sets the current status of the window.

Parameters
titlecurrent status

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setInformationScrollBorderText ( String  title)

Sets the current status of the window.

Parameters
titlecurrent status

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setProgressBar ( int  value)

sets the progress bar value.

Parameters
valuevalue for progress bar

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setProgressBar ( int  value)

sets the progress bar value.

Parameters
valuevalue for progress bar

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setProgressBarMax ( int  value)

sets max value for progress bar

Parameters
valuemaximum

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setProgressBarMax ( int  value)

sets max value for progress bar

Parameters
valuemaximum

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setReady ( boolean  ready)

provides a setter for UI. Normally unused, but this is for test purposes.

Parameters
readyGUI has all parts established and is ready for operations.

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setReady ( boolean  ready)

provides a setter for UI. Normally unused, but this is for test purposes.

Parameters
readyGUI has all parts established and is ready for operations.

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setScript ( Script  s)

Sets the active script for the window

Parameters
sscript which is now active

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setScript ( Script  s)

Sets the active script for the window

Parameters
sscript which is now active

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setStartButtonText ( String  text)

sets "do it!" button text

Parameters
texttext for main execution button

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setStartButtonText ( String  text)

sets "do it!" button text

Parameters
texttext for main execution button

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setUserMainMessage ( String  text)

This message provides a topical overview of what is happening to the user. It should be used sparingly... eg.. pushing files, flashing devices...

Parameters
texttitle to set

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setUserMainMessage ( String  text)

This message provides a topical overview of what is happening to the user. It should be used sparingly... eg.. pushing files, flashing devices...

Parameters
texttitle to set

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setUserSubMessage ( String  text)

sets the message label subtext. This message only provides detail to the user as to the process which is happening and may be used at any time to update sub-text in the UI.

Parameters
textlabel text

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setUserSubMessage ( String  text)

sets the message label subtext. This message only provides detail to the user as to the process which is happening and may be used at any time to update sub-text in the UI.

Parameters
textlabel text

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setVisible ( boolean  b)

sets the window visibility

Parameters
btrue if visibility is commanded

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setVisible ( boolean  b)

sets the window visibility

Parameters
btrue if visibility is commanded

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setWindowBannerText ( String  text)

sets window banner image

Parameters
iconimage to display
texttext if image cannot be displayed sets the main window banner text if an image is not used
texttext to display as banner

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.setWindowBannerText ( String  text)

sets window banner image

Parameters
iconimage to display
texttext if image cannot be displayed sets the main window banner text if an image is not used
texttext to display as banner

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.StartButtonActionPerformed ( )

the start button was pressed.

Implements CASUAL.iCASUALUI.

void GUI.testing.automatic.StartButtonActionPerformed ( )

the start button was pressed.

Implements CASUAL.iCASUALUI.


The documentation for this class was generated from the following file: