org.apache.shale.dialog.base
Class AbstractDialogContextManagerListener

java.lang.Object
  extended by org.apache.shale.dialog.base.AbstractDialogContextManagerListener
All Implemented Interfaces:
DialogContextManagerListener

public abstract class AbstractDialogContextManagerListener
extends Object
implements DialogContextManagerListener

Convenience abstract base class for DialogContextManagerListener instances. The default event handling methods do nothing. Subclasses are expected to be serializable.

Since:
1.0.4

Constructor Summary
AbstractDialogContextManagerListener()
           
 
Method Summary
 DialogContextManager getDialogContextManager()
          

Return the DialogContextManager instance associated with this DialogContextManagerListener.

 void onCreate(DialogContext context)
          

Handle the case where a new DialogContext instance has been created.

 void onRemove(DialogContext context)
          

Handle the case where a new DialogContext instance has been removed.

 void setDialogContextManager(DialogContextManager instance)
          

Set the DialogContextManager instance associated with this DialogContextManagerListener.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDialogContextManagerListener

public AbstractDialogContextManagerListener()
Method Detail

onCreate

public void onCreate(DialogContext context)

Handle the case where a new DialogContext instance has been created. This event will be fired before the instance has been started; however, it is legitimate to do things like register fine grained listeners on this instance.

Specified by:
onCreate in interface DialogContextManagerListener
Parameters:
context - The DialogContext instance being created

onRemove

public void onRemove(DialogContext context)

Handle the case where a new DialogContext instance has been removed. This event will be fired after the instance has been stopped; however, it is legitimate to do things like deregister fine grained listeners on this instance.

Specified by:
onRemove in interface DialogContextManagerListener
Parameters:
context - The DialogContext instance being created

getDialogContextManager

public DialogContextManager getDialogContextManager()

Return the DialogContextManager instance associated with this DialogContextManagerListener.

Specified by:
getDialogContextManager in interface DialogContextManagerListener

setDialogContextManager

public void setDialogContextManager(DialogContextManager instance)

Set the DialogContextManager instance associated with this DialogContextManagerListener.

Specified by:
setDialogContextManager in interface DialogContextManagerListener
Parameters:
instance - The new DialogContextManager


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.