View Javadoc

1   /**
2    * 2008, Digitalis Informatica. All rights reserved. Distribuicao e Gestao de Informatica, Lda. Estrada de Paco de Arcos
3    * num.9 - Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 4408999 http://www.digitalis.pt
4    */
5   
6   package pt.digitalis.dif.presentation.views.jsp.taglibs.objects.beans;
7   
8   /**
9    * Type that defines a Wizard step item.
10   *
11   * @author Pedro Viegas <a href="mailto:pviegas@digitalis.pt">pviegas@digitalis.pt</a><br/>
12   * @created Jan 21, 2009
13   */
14  public class WizardStepItem {
15  
16      /** If the step is accessible */
17      private boolean accessible;
18  
19      /** The step description */
20      private String description;
21  
22      /** If the step is enabled */
23      private boolean enabled;
24  
25      /** The step name */
26      private String name;
27  
28      /** T if the present ste should be a stage redirection. F and the stage will be included in the current one. */
29      private boolean redirectToStage;
30  
31      /** The step content stageId */
32      private String stageId;
33  
34      /**
35       * Default constructor
36       *
37       * @param name
38       * @param description
39       * @param stageId
40       * @param enabled
41       * @param accessible
42       * @param redirectToStage
43       */
44      public WizardStepItem(String name, String description, String stageId, boolean enabled, boolean accessible,
45              boolean redirectToStage) {
46          this.name = name;
47          this.description = description;
48          this.stageId = stageId;
49          this.enabled = enabled;
50          this.accessible = accessible;
51          this.redirectToStage = redirectToStage;
52      }
53  
54      /**
55       * Inspector for the 'description' attribute.
56       *
57       * @return the description value
58       */
59      public String getDescription() {
60          return description;
61      }
62  
63      /**
64       * Inspector for the 'name' attribute.
65       *
66       * @return the name value
67       */
68      public String getName() {
69          return name;
70      }
71  
72      /**
73       * Inspector for the 'stageId' attribute.
74       *
75       * @return the stageId value
76       */
77      public String getStageId() {
78          return stageId;
79      }
80  
81      /**
82       * Inspector for the 'accessible' attribute.
83       *
84       * @return the accessible value
85       */
86      public boolean isAccessible() {
87          return accessible;
88      }
89  
90      /**
91       * @return the enabled
92       */
93      public boolean isEnabled() {
94          return enabled;
95      }
96  
97      /**
98       * Inspector for the 'redirectToStage' attribute.
99       *
100      * @return the redirectToStage value
101      */
102     public boolean isRedirectToStage() {
103         return redirectToStage;
104     }
105 
106     /**
107      * Modifier for the 'accessible' attribute.
108      *
109      * @param accessible
110      *            the new accessible value to set
111      */
112     public void setAccessible(boolean accessible) {
113         this.accessible = accessible;
114     }
115 
116     /**
117      * Modifier for the 'description' attribute.
118      *
119      * @param description
120      *            the new description value to set
121      */
122     public void setDescription(String description) {
123         this.description = description;
124     }
125 
126     /**
127      * @param enabled
128      *            the enabled to set
129      */
130     public void setEnabled(boolean enabled) {
131         this.enabled = enabled;
132     }
133 
134     /**
135      * Modifier for the 'name' attribute.
136      *
137      * @param name
138      *            the new name value to set
139      */
140     public void setName(String name) {
141         this.name = name;
142     }
143 
144     /**
145      * Modifier for the 'redirectToStage' attribute.
146      *
147      * @param redirectToStage
148      *            the new redirectToStage value to set
149      */
150     public void setRedirectToStage(boolean redirectToStage) {
151         this.redirectToStage = redirectToStage;
152     }
153 
154     /**
155      * Modifier for the 'stageId' attribute.
156      *
157      * @param stageId
158      *            the new stageId value to set
159      */
160     public void setStageId(String stageId) {
161         this.stageId = stageId;
162     }
163 }