net.xoetrope.xui
Interface XValueHolder

All Known Implementing Classes:
XButton, XButton, XButton, XCheckbox, XCheckbox, XRadioButton, XRadioButton

public interface XValueHolder

A generic interface for components that display a text label

Copyright: Copyright (c) Xoetrope Ltd., 2002-2004

$Revision: 2.2 $


Method Summary
 java.lang.String getText()
          Get the text/label of a component
 java.lang.Object getValue()
          Get the object's value if it has one or else get the text
 void setText(java.lang.String text)
          Set the text/label of a component
 void setValue(java.lang.Object newValue)
          Set the value associated with this object
 

Method Detail

setText

void setText(java.lang.String text)
Set the text/label of a component

Parameters:
text - the new text

getText

java.lang.String getText()
Get the text/label of a component

Returns:
the component's text

getValue

java.lang.Object getValue()
Get the object's value if it has one or else get the text

Returns:
the value for this object

setValue

void setValue(java.lang.Object newValue)
Set the value associated with this object

Parameters:
newValue - the new object value