net.sf.echobinding
Class BindingConfiguration
java.lang.Object
net.sf.echobinding.BindingConfiguration
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener
public class BindingConfiguration
- extends java.lang.Object
- implements java.beans.PropertyChangeListener
The BindingConfiguration
is the root node in the data binding
context tree. It manages all underlaying BindingContext
s and
is usally the access point for the application to the data binding facility.
- See Also:
BindingContext
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BindingConfiguration
public BindingConfiguration()
getBindingContext
public static BindingContext getBindingContext(java.lang.String contextId)
- Parameters:
contextId
-
- Returns:
- the binding context for that contextId
getContexts
public java.util.Map<java.lang.String,BindingContext> getContexts()
- Returns:
- the binding contexts as a map
setContexts
public void setContexts(java.util.Map<java.lang.String,BindingContext> contexts)
- Parameters:
contexts
-
addContext
public BindingConfiguration addContext(java.lang.String contextName,
BindingContext context)
- Parameters:
contextName
- context
-
- Returns:
- the configuration
registerContext
public void registerContext(BindingContext context)
- Registers a new binding context. This is necessary for
receive/sending property change events from/to other contexts within this
configuration.
- Parameters:
context
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Specified by:
propertyChange
in interface java.beans.PropertyChangeListener
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
- Parameters:
listener
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
- Parameters:
listener
-
Copyright © 2007. All Rights Reserved.