View Javadoc

1   package com.explosion.expf;
2   
3   
4   /* =============================================================================
5    *       
6    *     Copyright 2004 Stephen Cowx
7    *
8    *     Licensed under the Apache License, Version 2.0 (the "License");
9    *     you may not use this file except in compliance with the License.
10   *     You may obtain a copy of the License at
11   *
12   *     http://www.apache.org/licenses/LICENSE-2.0
13   *
14   *     Unless required by applicable law or agreed to in writing, software
15   *     distributed under the License is distributed on an "AS IS" BASIS,
16   *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   *     See the License for the specific language governing permissions and
18   *     limitations under the License.
19   * 
20   * =============================================================================
21   */
22  
23  /***
24   * @author Stephen Cowx
25   * Created on 27-Oct-2004
26   * This class holds information about a look and feel.  Its action name (for menus),
27   * it's class name and it's description.  Simple.
28   */
29  public class ExpLookAndFeel
30  {
31      private String className;
32      private String displayName;
33      private String actionName;
34      private int sortOrder =0;
35      
36      /***
37       * Constructs an Exp look and feel with the given attributes
38       * @param className
39       * @param displayName
40       * @param actionName
41       */
42      public ExpLookAndFeel(String className, String displayName, String actionName)
43      {
44          super();
45          this.className = className;
46          this.displayName = displayName;
47          this.actionName = actionName;
48      }
49      /***
50       * @return Returns the actionName.
51       */
52      public String getActionName()
53      {
54          return actionName;
55      }
56      /***
57       * @param actionName The actionName to set.
58       */
59      public void setActionName(String actionName)
60      {
61          this.actionName = actionName;
62      }
63      /***
64       * @return Returns the className.
65       */
66      public String getClassName()
67      {
68          return className;
69      }
70      /***
71       * @param className The className to set.
72       */
73      public void setClassName(String className)
74      {
75          this.className = className;
76      }
77      /***
78       * @return Returns the displayName.
79       */
80      public String getDisplayName()
81      {
82          return displayName;
83      }
84      /***
85       * @param displayName The displayName to set.
86       */
87      public void setDisplayName(String displayName)
88      {
89          this.displayName = displayName;
90      }
91      
92      /***
93       * This method returns the className
94       */
95      public String toString()
96      {
97          return getClassName();
98      }
99  }