com.photoviewer.client.ui
Class PopupMessage

java.lang.Object
  |
  +--com.photoviewer.client.ui.Dialog
        |
        +--com.photoviewer.client.ui.PopupMessage

public class PopupMessage
extends Dialog

A simple Message Box (JOptionPane-like) for displaying popup messages.

Author:
John De Regnaucourt

Field Summary
 
Fields inherited from class com.photoviewer.client.ui.Dialog
m_thinlet
 
Constructor Summary
PopupMessage(PhotoViewer thinlet)
           
 
Method Summary
 void performAction(java.lang.String actionCommand)
          Call this method from callback methods in the Thinlet so that the dialog ActionI implementor can perform actions based on the actionCommand String passed in.
 void setButtonText(java.lang.String buttonText)
           
 void setMessage(java.lang.String message)
           
 void setMessage2(java.lang.String message2)
           
 void setTitle(java.lang.String title)
           
 void show()
          Display a pop-up error message
 
Methods inherited from class com.photoviewer.client.ui.Dialog
getAction, setAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupMessage

public PopupMessage(PhotoViewer thinlet)
Method Detail

setButtonText

public void setButtonText(java.lang.String buttonText)

setMessage2

public void setMessage2(java.lang.String message2)

setMessage

public void setMessage(java.lang.String message)

setTitle

public void setTitle(java.lang.String title)

performAction

public void performAction(java.lang.String actionCommand)
Description copied from class: Dialog
Call this method from callback methods in the Thinlet so that the dialog ActionI implementor can perform actions based on the actionCommand String passed in.

Specified by:
performAction in class Dialog
Parameters:
actionCommand - String name of an action to perform. This parameter has meaning specific to the ActionI implementor.

show

public void show()
Display a pop-up error message

Specified by:
show in class Dialog