org.base.apps.api.view.util
Class BoundViewSupport

java.lang.Object
  extended by org.base.apps.api.view.util.BoundViewSupport
All Implemented Interfaces:
BoundView, Mutable<Object>

public class BoundViewSupport
extends Object
implements BoundView

Utility implementation of BoundView, to be reused across actual implementations.

Author:
Kevan Simpson

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.base.apps.api.view.BoundView
BoundView.Widget
 
Constructor Summary
BoundViewSupport(BoundView supported)
           
 
Method Summary
 BoundProperty bind(String name, BoundView view)
           
protected  Thing getBoundValue()
           
protected  Map<BoundProperty,BoundView> getChildren()
           
 BoundProperty getProperty()
           
 BoundProperty getProperty(String name)
           
protected  BoundView getSupportedView()
           
 Object getValue()
          Returns the object's Mutable value.
protected  void setBoundValue(Thing boundValue)
           
protected  void setChildren(Map<BoundProperty,BoundView> children)
           
 void setProperty(BoundProperty prop)
           
protected  void setSupportedView(BoundView supportedView)
           
 void setValue(Object val)
          Sets the object's Mutable value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundViewSupport

public BoundViewSupport(BoundView supported)
Method Detail

bind

public BoundProperty bind(String name,
                          BoundView view)
Specified by:
bind in interface BoundView
See Also:
BoundView.bind(java.lang.String, org.base.apps.api.view.BoundView)

getProperty

public BoundProperty getProperty()
Specified by:
getProperty in interface BoundView
See Also:
BoundView.getProperty()

setProperty

public void setProperty(BoundProperty prop)
Specified by:
setProperty in interface BoundView
See Also:
BoundView.setProperty(org.base.apps.beans.BoundProperty)

getProperty

public BoundProperty getProperty(String name)

getValue

public Object getValue()
Description copied from interface: Mutable
Returns the object's Mutable value.

Specified by:
getValue in interface Mutable<Object>
Returns:
the object's Mutable value.
See Also:
Mutable.getValue()

setValue

public void setValue(Object val)
Description copied from interface: Mutable
Sets the object's Mutable value.

Specified by:
setValue in interface Mutable<Object>
Parameters:
val - The value to set.
See Also:
Mutable.setValue(java.lang.Object)

getBoundValue

protected Thing getBoundValue()
Returns:
the boundValue

getChildren

protected Map<BoundProperty,BoundView> getChildren()
Returns:
the children

getSupportedView

protected BoundView getSupportedView()
Returns:
the supportedView

setBoundValue

protected void setBoundValue(Thing boundValue)
Parameters:
boundValue - the boundValue to set

setChildren

protected void setChildren(Map<BoundProperty,BoundView> children)
Parameters:
children - the children to set

setSupportedView

protected void setSupportedView(BoundView supportedView)
Parameters:
supportedView - the supportedView to set

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)