View Javadoc

1   package com.loribel.commons.abstraction;
2   
3   import javax.swing.*;
4   
5   /***
6    * Interface to reprensent label with icons.
7    *
8    * @author Grégory Borelli
9    */
10  public interface GB_LabelIcon
11  {
12      /***
13       * Return the default icon.
14       *
15       * @return Icon
16       */
17      Icon getIcon();
18  
19      /***
20       * Return an icon according to the type of icon.
21       *
22       * @param a_iconType int - the type of icon
23       *
24       * @return Icon
25       */
26      Icon getIcon(
27              String a_iconType);
28  
29      /***
30       * Return the label of this labelIcon..
31       *
32       * @return String
33       */
34      String getLabel();
35  
36      /***
37       * Return the description associated to this labelIcon.
38       * It will be often used for tooltiptext.
39       *
40       * @return String
41       */
42      String getDescription();
43  
44  }