org.progeeks.util
Class DefaultContextView

java.lang.Object
  extended by org.progeeks.util.DefaultContextView
All Implemented Interfaces:
ContextView

public class DefaultContextView
extends java.lang.Object
implements ContextView

Default implementation of ContextView that is simply a holder for a ViewContext.

Version:
$Revision: 1.2 $
Author:
Paul Speed

Constructor Summary
DefaultContextView(ViewContext context)
           
 
Method Summary
 ViewContext getViewContext()
          Returns the view context associated with this view.
 void setViewContext(ViewContext context)
          Sets this view's current ViewContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContextView

public DefaultContextView(ViewContext context)
Method Detail

getViewContext

public ViewContext getViewContext()
Returns the view context associated with this view.

Specified by:
getViewContext in interface ContextView

setViewContext

public void setViewContext(ViewContext context)
Sets this view's current ViewContext. This is an method operation but a recommended one in cases where contexts can live longer than the views. Applications will use this method to let the view component release any of its listeners as needed. Default implementation just sets the local view context.

Specified by:
setViewContext in interface ContextView


Copyright © 2002-2003 Paul Speed. All Rights Reserved.