Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Public Member Functions | List of all members
com.casual_dev.zodui.messagepanel.MessagePanelController Class Reference
Inheritance diagram for com.casual_dev.zodui.messagepanel.MessagePanelController:

Public Member Functions

void initialize (URL url, ResourceBundle rb)
 
void createMessage (MessagePanelContent mpc)
 
void createMessage (String[] message, String[] buttonText, boolean useTextBox)
 
String getReturn () throws InterruptedException
 
void setParent (CASUALZodMainUI mainUI)
 
void disposeMessagePanel (GridPane parentPane)
 
String getCompletionTime ()
 

Detailed Description

Handles Modal Messages in CASUAL ZodUI.

Author
adamoutler

Member Function Documentation

void com.casual_dev.zodui.messagepanel.MessagePanelController.createMessage ( MessagePanelContent  mpc)

Creates a message from a PessagePanelContent

Parameters
mpc
void com.casual_dev.zodui.messagepanel.MessagePanelController.createMessage ( String[]  message,
String[]  buttonText,
boolean  useTextBox 
)

Creates a message from bare essentials

Parameters
message[0]=title [1]=message
buttonTextan array of text to be displayed on buttons
useTextBoxtrue if message requires return of text and not just 0,1,2 of strings
void com.casual_dev.zodui.messagepanel.MessagePanelController.disposeMessagePanel ( GridPane  parentPane)

This should be called at the end of the ZOD panel life

Parameters
parentPanethe MainUI is a grid pane.
String com.casual_dev.zodui.messagepanel.MessagePanelController.getCompletionTime ( )

Time taken to press a button after Message was presented

Returns
time in millis to press a button
String com.casual_dev.zodui.messagepanel.MessagePanelController.getReturn ( ) throws InterruptedException

Waits for the user to click a button and then receives the selected value

Returns
0-button 1 was clicked, 1-button 2, 2-button 3
Exceptions
InterruptedException
void com.casual_dev.zodui.messagepanel.MessagePanelController.setParent ( CASUALZodMainUI  mainUI)

when the controller needs to talk to its parent

Parameters
mainUIparent CASUALZodMainUI

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