net.sf.echobinding.model
Class AbstractPresentationModel

java.lang.Object
  extended by net.sf.echobinding.model.AbstractPresentationModel
All Implemented Interfaces:
PresentationModel

public abstract class AbstractPresentationModel
extends java.lang.Object
implements PresentationModel


Constructor Summary
AbstractPresentationModel()
           
 
Method Summary
 BindingContext getContext()
          Returns the BindingContext for the presentation model.
 BoundControl getControl(java.lang.String id)
          Returns the control for the given adapter id.
 java.lang.Object getValue(java.lang.String adapterId)
          Convenience method for getContext.getValue()
 void init()
          Configures the presentation model (by calling the configue() method) and initializes all components that belong to the binding context.
 void setContext(BindingContext context)
          Set the BindingContext for this presenation model.
 void setValue(java.lang.String adapterId, java.lang.Object value)
          Convenience method for getContext.setValue(...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.echobinding.model.PresentationModel
cloneInstance, configure
 

Constructor Detail

AbstractPresentationModel

public AbstractPresentationModel()
Method Detail

getControl

public BoundControl getControl(java.lang.String id)
Returns the control for the given adapter id.

Specified by:
getControl in interface PresentationModel
Parameters:
id - the adapter id
Returns:
the bound control

getContext

public BindingContext getContext()
Description copied from interface: PresentationModel
Returns the BindingContext for the presentation model.

Specified by:
getContext in interface PresentationModel
Returns:
Returns the binding context.

setContext

public void setContext(BindingContext context)
Description copied from interface: PresentationModel
Set the BindingContext for this presenation model.

Specified by:
setContext in interface PresentationModel

getValue

public java.lang.Object getValue(java.lang.String adapterId)
Convenience method for getContext.getValue()

Parameters:
adapterId -
Returns:
the value

setValue

public void setValue(java.lang.String adapterId,
                     java.lang.Object value)
Convenience method for getContext.setValue(...)

Parameters:
adapterId -
value -

init

public void init()
Configures the presentation model (by calling the configue() method) and initializes all components that belong to the binding context.

Specified by:
init in interface PresentationModel


Copyright © 2007. All Rights Reserved.