01: /* Auxhead.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Wed Oct 24 09:55:47 2007, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2007 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.zul;
20:
21: import org.zkoss.zk.ui.Component;
22: import org.zkoss.zk.ui.UiException;
23:
24: import org.zkoss.zul.impl.XulElement;
25:
26: /**
27: * Used to define a collection of auxiliary headers ({@link Auxheader}).
28: *
29: * <p>Non XUL element.
30: *
31: * @since 3.0.0
32: * @author tomyeh
33: */
34: public class Auxhead extends XulElement {
35: public Auxhead() {
36: }
37:
38: //super//
39: public boolean insertBefore(Component child, Component insertBefore) {
40: if (!(child instanceof Auxheader))
41: throw new UiException("Unsupported child: " + child);
42: return super.insertBefore(child, insertBefore);
43: }
44: }
|