01: package net.xoetrope.xui.data;
02:
03: import java.awt.Component;
04: import net.xoetrope.xml.XmlElement;
05:
06: /**
07: * <p>Describes an interface used to allow components to be updated
08: * when a data model changes and to allow the model to be updated when the user
09: * interface elements change.</p>
10: * <p>Copyright: Copyright (c) Xoetrope Ltd., 1998-2003<br>
11: * License: see license.txt
12: * @version $Revision: 1.1 $
13: */
14: public interface XCustomDataBinding {
15: /**
16: * Used for custom components with an argumentless constructor. Constructs the
17: * binding from the model path argument and the XML argument that defines
18: * the binding.
19: * @param c the component to bind
20: * @param ele the XML element which contains the binding configuration
21: */
22: public void setup(Component c, XmlElement ele);
23: }
|