NodeBrowse.java
1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* javax.jcr.RepositoryException
* javax.servlet.jsp.PageContext
*/
package com.day.crx.explorer.impl.ui;
import com.day.crx.explorer.impl.ui.MVControl;
import java.io.IOException;
import javax.jcr.RepositoryException;
import javax.servlet.jsp.PageContext;
public class NodeBrowse {
private MVControl control;
public NodeBrowse(String name) {
this.control = new MVControl(name, "Reference", false);
this.setShowNodes(true);
}
public NodeBrowse(String name, String value) {
this(name);
this.control.setValues(new String[]{value});
}
public void setValue(String value) {
this.control.setValues(new String[]{value});
}
public boolean isShowNodes() {
return "true".equals(this.control.getProperty("ShowNodes"));
}
public void setShowNodes(boolean showNodes) {
this.control.setProperty("ShowNodes", showNodes ? "true" : "");
}
public boolean isShowProps() {
return "true".equals(this.control.getProperty("ShowProps"));
}
public void setShowProps(boolean showProps) {
this.control.setProperty("ShowNodes", showProps ? "true" : "");
}
public static void init(PageContext context) throws IOException {
MVControl.init(context);
}
public void draw(PageContext context) throws IOException, RepositoryException {
this.control.draw(context);
}
public MVControl getControl() {
return this.control;
}
}