2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shale.dialog.scxml;
19
20 import java.io.Serializable;
21
22 /***
23 * <p>Simple POJO properties class that gets stored in the root context
24 * of each state machine instance driving a Shale dialog.</p>
25 *
26 * @since 1.0.4
27 *
28 * $Id: DialogProperties.java 491384 2006-12-31 04:43:49Z rahul $
29 */
30 public class DialogProperties implements Serializable {
31
32
33
34 /***
35 * This is part of the internal contract of Shale dialogs and should never
36 * need to be instantiated outside the parent package.
37 */
38 DialogProperties() {
39 super();
40 }
41
42
43
44
45
46
47 /***
48 * Whether the next view rendered by this dialog should use a redirect.
49 */
50 private boolean nextRedirect = false;
51
52 /***
53 * Should next view rendered by this dialog be redirected.
54 *
55 * @return true, if next view is to be redirected.
56 */
57 public boolean isNextRedirect() {
58 return nextRedirect;
59 }
60
61 /***
62 * Set next view redirect property.
63 *
64 * @param nextRedirect Whether next view rendered should be redirected.
65 */
66 public void setNextRedirect(boolean nextRedirect) {
67 this.nextRedirect = nextRedirect;
68 }
69
70
71
72
73 /***
74 * The JSF view identifier of the next view to be rendered in
75 * this dialog.
76 */
77 private String nextViewId = null;
78
79 /***
80 * Get the JSF view identifier of the next view to be rendered in
81 * this dialog.
82 *
83 * @return The JSF view identifier
84 */
85 public String getNextViewId() {
86 return nextViewId;
87 }
88
89 /***
90 * Set the JSF view identifier of the next view to be rendered in
91 * this dialog.
92 *
93 * @param nextViewId The JSF view identifier
94 */
95 public void setNextViewId(String nextViewId) {
96 this.nextViewId = nextViewId;
97 }
98
99
100
101
102 /***
103 * Serial version UID.
104 */
105 private static final long serialVersionUID = 1L;
106
107 }