org.progeeks.util
Class DefaultObjectViewContext

java.lang.Object
  extended by org.progeeks.util.beans.BeanChangeSupport
      extended by org.progeeks.util.DefaultViewContext
          extended by org.progeeks.util.DefaultObjectViewContext
All Implemented Interfaces:
java.io.Serializable, StandardBean, ObjectViewContext, ViewContext
Direct Known Subclasses:
ChartContext

public class DefaultObjectViewContext
extends DefaultViewContext
implements ObjectViewContext

A default implementation of the ObjectViewContext. This is useful in cases where an object needs to be wrapped to comply with a UI framework's need for a context instead of general objects.

Version:
$Revision: 1.4 $
Author:
Paul Speed
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.progeeks.util.ObjectViewContext
PROP_OBJECT
 
Constructor Summary
DefaultObjectViewContext()
           
DefaultObjectViewContext(java.lang.Object obj)
           
 
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 class org.progeeks.util.DefaultViewContext
findContext, getBooleanProperty, getDoubleProperty, getIntProperty, getObjectProperty, getObjectProperty, getParentContext, getRootContext, getStringProperty, setBooleanProperty, setDoubleProperty, setIntProperty, setObjectProperty, setParentContext, setStringProperty
 
Methods inherited from class org.progeeks.util.beans.BeanChangeSupport
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, hasListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

DefaultObjectViewContext

public DefaultObjectViewContext()

DefaultObjectViewContext

public DefaultObjectViewContext(java.lang.Object obj)
Method Detail

setObject

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

Specified by:
setObject in interface ObjectViewContext

getObject

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

Specified by:
getObject in interface ObjectViewContext


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