KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > model > DesignElement


1 /*
2  * (c) Rob Gordon 2005.
3  */

4 package org.oddjob.designer.model;
5
6
7
8
9 /**
10  * A DesignElement is an element of a component which
11  * generally means it's an element in the uderlying XML.
12  */

13 public interface DesignElement {
14     
15     /**
16      * Has the the element got detail, i.e more than just
17      * an attribute.
18      *
19      * @return true if it has, false otherwise.
20      */

21     public boolean hasDetail();
22     
23     /**
24      * The method is overridden by sub classes which have a detailed
25      * definition for their configuration. For DesignElement which
26      * hasn't got detail this method should never be called, and as such
27      * it should throw a RuntimeException if it is.
28      *
29      * @return The DesignDefinition for their configuration. Never null.
30      */

31     public DesignDefinition detail();
32         
33     /**
34      * Clear the DesignElement of Data. This method will be called when a selection
35      * changes.
36      */

37     public void clear();
38 }
39
Popular Tags