Source code: javax/ide/model/ElementDisplayInfo.java
1 package javax.ide.model;
2 import javax.ide.util.IconDescription;
3
4 /**
5 * Display information about a JSR-198 element. This class allows custom
6 * Elements (extension-provided subclasses of Element, Document, TextDocument or
7 * XMLDocument) to configure the way they appear in the IDE.<p>
8 *
9 * Any methods on this class may return null. If they do, IDEs will display
10 * the element in whatever the "default" way is for nodes of this type.<p>
11 *
12 * This implementation returns <tt>null</tt> from all methods.
13 */
14 public class ElementDisplayInfo
15 {
16 /**
17 * Get the label for the specified element.
18 *
19 * @param element the element to get the label for.
20 * @return the label for the element.
21 */
22 public String getLabel( Element element )
23 {
24 return null;
25 }
26
27 /**
28 * Get the icon for the specified element.
29 *
30 * @param element the element to get the icon for.
31 * @return the icon for the element.
32 */
33 public IconDescription getIcon( Element element )
34 {
35 return null;
36 }
37
38 /**
39 * Get the tooltip for the specified element.
40 *
41 * @param element the element to get the tooltip for.
42 * @return the tooltip for the element.
43 */
44 public String getToolTip( Element element )
45 {
46 return null;
47 }
48
49 /**
50 * Get the long label for the element.
51 *
52 * @param element the element to get the long label for.
53 * @return the long label for the element.
54 */
55 public String getLongLabel( Element element )
56 {
57 return null;
58 }
59 }