public class JavascriptTree extends Object implements Comparable
Modifier and Type | Field and Description |
---|---|
protected SortedSet |
children |
protected String |
configType |
protected boolean |
forceFirst |
protected String |
key |
static String |
STANDARD_CONFIG |
static String |
TREE_CONFIG |
protected String |
val |
protected Integer |
valInt |
Constructor and Description |
---|
JavascriptTree(String key,
int val) |
JavascriptTree(String key,
String val) |
Modifier and Type | Method and Description |
---|---|
void |
addChildren(JavascriptTree child) |
int |
compareTo(Object o) |
Set |
getChildren() |
String |
getKey() |
protected static JavascriptTree[] |
getTreeForMap(Map map) |
static String |
getTreeOfComponents() |
static String |
getTreeOfExistingInstancesWithAutoSelect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method generates the javascript tree for the insert existing panel menu, the first one that appears when
you click the (+) Add panel button in a region.
|
static String |
getTreeOfExistingInstancesWithoutAutoSelect()
This method generates the javascript tree for the workspace panels tab in administration
|
static String |
getTreeOfInstancesForDragAndDrop()
This method generates the javascript tree for the insert existing panel or new panel menu, that appears inside
a yellow window, and allows drag-and-drop.
|
static String |
getTreeOfInstancesForNewInstance()
This method generates the javascript tree for the new panel menu, that appears inside the workspace admin tabs.
|
static String |
getTreeOfInstancesForNewInstance(Workspace selectWorkspace)
This method generates the javascript tree for the new panel menu, that appears inside the workspace admin tabs.
|
String |
getVal() |
static String |
HTMLfilter(String str) |
boolean |
isForceFirst() |
static void |
regenerateTrees(String workspaceId)
Deletes tree cache for given workspace or all, if workspace is null.
|
static String |
replaceAll(String value,
Properties properties) |
static String |
replaceTildes(String s)
Deprecated.
Use StringEscapeUtils.escapeHtml(s)
|
void |
setForceFirst(boolean forceFirst) |
void |
setKey(String key) |
void |
setVal(String val) |
String |
toString() |
protected String key
protected String val
protected Integer valInt
protected SortedSet children
protected boolean forceFirst
protected String configType
public static final String STANDARD_CONFIG
public static final String TREE_CONFIG
public JavascriptTree(String key, int val)
public String getKey()
public void setKey(String key)
public String getVal()
public void setVal(String val)
public Set getChildren()
public void addChildren(JavascriptTree child)
public boolean isForceFirst()
public void setForceFirst(boolean forceFirst)
public int compareTo(Object o)
compareTo
in interface Comparable
public static String replaceAll(String value, Properties properties)
public static String replaceTildes(String s)
s
- public static void regenerateTrees(String workspaceId)
workspaceId
- Workspace whose cache is to be deleted, or null to delete them all.public static String getTreeOfExistingInstancesWithAutoSelect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- response
- public static String getTreeOfExistingInstancesWithoutAutoSelect()
public static String getTreeOfInstancesForDragAndDrop()
public static String getTreeOfInstancesForNewInstance()
public static String getTreeOfInstancesForNewInstance(Workspace selectWorkspace)
public static String getTreeOfComponents()
protected static JavascriptTree[] getTreeForMap(Map map)
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.