01: package net.xoetrope.awt;
02:
03: import java.awt.Choice;
04:
05: import net.xoetrope.xui.XListHolder;
06:
07: /**
08: * <p>A wrapper for the AWT Choice class</p>
09: * <p>Copyright (c) Xoetrope Ltd., 1998-2004<br>
10: * License: see license.txt
11: * $Revision: 1.9 $
12: */
13: public class XComboBox extends Choice implements XListHolder {
14: public XComboBox() {
15: super ();
16: }
17:
18: public Object getSelectedObject() {
19: return getSelectedItem();
20: }
21:
22: public void select(Object o) {
23: if (o != null)
24: super.select(o.toString());
25: }
26: }
|