01: package net.xoetrope.xui;
02:
03: /**
04: * A generic interface for drop down lists. Known uses include XComboBox and XListBinding
05: * <p>Copyright (c) Xoetrope Ltd., 2002-2003</p>
06: * <p>License: see license.txt</p>
07: * $Revision: 1.14 $
08: */
09: public interface XListHolder {
10: /**
11: * Get the number of items in the list
12: * @return the number of items
13: */
14: public int getItemCount();
15:
16: /**
17: * Remove all items from the list
18: */
19: public void removeAll();
20:
21: /**
22: * Add an item to the list
23: * @param s the new Item
24: */
25: public void addItem(String s);
26:
27: /**
28: * Select an item
29: * @param i the index of the item to select
30: */
31: public void select(int i);
32:
33: /**
34: * Select an item
35: * @param i the index of the item to select
36: */
37: public void select(Object object);
38:
39: /**
40: * Get the selected object
41: * @return the selected object
42: */
43: public Object getSelectedObject();
44: }
|