01: /*
02: * Created on Jul 28, 2005
03: */
04: package uk.org.ponder.rsf.components;
05:
06: import java.util.ArrayList;
07:
08: /**
09: * A type-safe list of UIComponent objects.
10: * @author Antranig Basman (antranig@caret.cam.ac.uk)
11: *
12: */
13: public class ComponentList extends ArrayList {
14: public static ComponentList EMPTY_LIST = new ComponentList();
15:
16: public UIComponent componentAt(int i) {
17: return (UIComponent) get(i);
18: }
19:
20: public boolean add(Object o) {
21: UIComponent cast = (UIComponent) o;
22: return super.add(cast);
23: }
24: }
|