apps.mathpadapp.util
Class MTMessageBox

java.lang.Object
  extended by apps.mathpadapp.conceptmapping.GraphNode
      extended by apps.mathpadapp.util.MTFrame
          extended by apps.mathpadapp.util.MTDialog
              extended by apps.mathpadapp.util.MTMessageBox

public class MTMessageBox
extends MTDialog

The Class MTMessageBox.


Nested Class Summary
static interface MTMessageBox.MessageListener
          The listener interface for receiving message events.
 
Nested classes/interfaces inherited from class apps.mathpadapp.conceptmapping.GraphNode
GraphNode.ConceptMapListener
 
Constructor Summary
MTMessageBox(MTFrame parentFrame, ContentSystem contentSystem)
          Instantiates a new MT message box.
 
Method Summary
 void addMessageListener(MTMessageBox.MessageListener listener)
          Adds the message listener.
 SimpleButton getCancelButton()
          Gets the cancel button.
 SimpleButton getOkButton()
          Gets the ok button.
 void removeMessageListeners()
          Removes the message listeners.
 void setMessage(java.lang.String text)
          Sets the message.
 
Methods inherited from class apps.mathpadapp.util.MTDialog
close, getParent, isModal, setModal, setVisible
 
Methods inherited from class apps.mathpadapp.util.MTFrame
getTitle, getTopBar, getWindow, setHeight, setTitle, setWidth
 
Methods inherited from class apps.mathpadapp.conceptmapping.GraphNode
addConceptMapListener, fireNodeConnected, fireNodeDisconnected, getClosePoint, getGraphManager, getIncomingLinks, getLinkPoint, getLocation, getName, getNodeItem, getOutgoingLinks, isLinkable, registerIncomingLink, registerOutgoingLink, remove, removeConceptMapListeners, setClosePoint, setLinkable, setLinkPoint, setLocation, unregisterAllLinks, unregisterLink, updateConnectionPoints
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTMessageBox

public MTMessageBox(MTFrame parentFrame,
                    ContentSystem contentSystem)
Instantiates a new MT message box.

Parameters:
parentFrame - the parent frame
contentSystem - the content system
Method Detail

addMessageListener

public void addMessageListener(MTMessageBox.MessageListener listener)
Adds the message listener.

Parameters:
listener - the listener

getCancelButton

public SimpleButton getCancelButton()
Gets the cancel button.

Returns:
the cancel button

getOkButton

public SimpleButton getOkButton()
Gets the ok button.

Returns:
the ok button

removeMessageListeners

public void removeMessageListeners()
Removes the message listeners.


setMessage

public void setMessage(java.lang.String text)
Sets the message.

Parameters:
text - the new message