01: package net.xoetrope.xui;
02:
03: /**
04: * A generic interface for components that display a text label
05: * <p>Copyright: Copyright (c) Xoetrope Ltd., 2002-2004</p>
06: * $Revision: 1.1 $
07: */
08: public interface XValueHolder {
09: /**
10: * Set the text/label of a component
11: * @param label the new text
12: */
13: public void setText(String text);
14:
15: /**
16: * Get the text/label of a component
17: * @return the component's text
18: */
19: public String getText();
20:
21: /**
22: * Get the object's value if it has one or else get the text
23: * @return the value for this object
24: */
25: public Object getValue();
26:
27: /**
28: * Set the value associated with this object
29: * @param newValue the new object value
30: */
31: public void setValue(Object newValue);
32: }
|