1
2
3
4
5
6
7
8 package org.asyrinx.joey.tapestry.components.stative;
9
10 import org.apache.tapestry.html.BasePage;
11
12 /***
13 * @author akima
14 */
15 public class EditablePage extends BasePage {
16
17 /***
18 *
19 */
20 public EditablePage() {
21 super();
22 }
23
24 private boolean editable = true;
25
26 /***
27 * @return
28 */
29 public boolean isEditable() {
30 return editable;
31 }
32
33 /***
34 * @param b
35 */
36 public void setEditable(boolean b) {
37 editable = b;
38 }
39
40 /***
41 * @return
42 */
43 public boolean isReadOnly() {
44 return !editable;
45 }
46
47 /***
48 * @param b
49 */
50 public void setReadOnly(boolean b) {
51 editable = !b;
52 }
53
54 }