org.progeeks.util
Interface ObjectViewContext

All Superinterfaces:
StandardBean, ViewContext
All Known Implementing Classes:
ChartContext, DefaultObjectViewContext

public interface ObjectViewContext
extends ViewContext

Context specialization denoting a view context that holds a reference to a representative model object. Many contexts will be wrappers for some model level concept and it is useful to be able to unwrap these cases. Note: this is different than a FocusedContext which could also be an ObjectViewContext. The focus part could denote a selection within the model object in that case.

Version:
$Revision: 1.1 $
Author:
Paul Speed

Field Summary
static java.lang.String PROP_OBJECT
           
 
Method Summary
 java.lang.Object getObject()
          Returns the model object that this view context represents.
 void setObject(java.lang.Object obj)
          Sets the specified model object that this view context represents.
 
Methods inherited from interface org.progeeks.util.ViewContext
getParentContext, setParentContext
 
Methods inherited from interface org.progeeks.util.beans.StandardBean
addPropertyChangeListener, addPropertyChangeListener, hasListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

PROP_OBJECT

static final java.lang.String PROP_OBJECT
See Also:
Constant Field Values
Method Detail

setObject

void setObject(java.lang.Object obj)
Sets the specified model object that this view context represents.


getObject

java.lang.Object getObject()
Returns the model object that this view context represents.



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