Source code: javax/ide/model/Element.java
1 package javax.ide.model;
2
3 import javax.ide.model.spi.ElementImpl;
4
5 /**
6 * The <CODE>Element</CODE> interface defines the protocol used by the
7 * IDE to communicate with data objects in order to display the objects
8 * in the UI. For example, objects that need to be shown in an
9 * the project explorer window will need to implement the
10 * <CODE>Element</CODE> interface.
11 */
12 public abstract class Element
13 {
14 protected abstract ElementImpl getElementImpl();
15
16 public final Object getIcon()
17 {
18 return getElementImpl().getIcon();
19 }
20
21 public final String getLabel()
22 {
23 return getElementImpl().getLabel();
24 }
25
26 public final String getLongLabel()
27 {
28 return getElementImpl().getLongLabel();
29 }
30
31 public final String getToolTip()
32 {
33 return getElementImpl().getToolTip();
34 }
35 }