com.photoviewer.client.ui
Class Dialog

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

public abstract class Dialog
extends java.lang.Object

All dialogs should subclass this class.

Author:
John De Regnaucourt

Field Summary
protected  thinlet.Thinlet m_thinlet
           
 
Constructor Summary
Dialog(PhotoViewer thinlet)
          Constructor
 
Method Summary
 ActionI getAction()
          Allow subclasses to get hold of the ActionI implementor.
abstract  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 setAction(ActionI action)
          Store the ActionI implementor for callbacks.
abstract  void show()
          Call this method to display the dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_thinlet

protected thinlet.Thinlet m_thinlet
Constructor Detail

Dialog

public Dialog(PhotoViewer thinlet)
Constructor

Parameters:
thinlet - Thinlet instance hosting this dialog.
Method Detail

setAction

public void setAction(ActionI action)
Store the ActionI implementor for callbacks. Optional. Only needed if the dialog makes calls back to the ActionI implementor in response to peformAction() commands.

Parameters:
action -

getAction

public ActionI getAction()
Allow subclasses to get hold of the ActionI implementor.

Returns:
the ActionI interface associated to this Dialog.

performAction

public abstract 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.

Parameters:
actionCommand - String name of an action to perform. This parameter has meaning specific to the ActionI implementor.

show

public abstract void show()
Call this method to display the dialog.