|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.data.results.ResultsUtil
public class ResultsUtil
The ResultsUtil has utility methods useful while working with WebResults
.
Method Summary | |
---|---|
static ResultNode |
generateGroupTaskResultNodes(String groupHeader,
List<?> results,
String displayNameMethodName,
String detailsMethodName,
Map<String,String> actionMethodNames)
Generates a ResultNode for the group of results with the actual List of results as its
children nodes. |
static ResultNode |
generateGroupTaskResultNodes(String groupHeader,
List<?> results,
String displayNameMethodName,
String detailsMethodName,
Map<String,String> actionMethodNames,
String onRemoveMethodName)
Generates a ResultNode for the group of results with the actual List of results as its
children nodes. |
static List<ResultNode> |
generateTaskResultNodesWithActionArray(List<?> results,
String displayNameMethodName,
String detailsMethodName,
String[] actionMethodNames)
Returns a List of ResultNode s for all the results included in the results
argument. |
static List<ResultNode> |
generateTaskResultNodesWithActionArray(List<?> results,
String displayNameMethodName,
String detailsMethodName,
String[] actionMethodNames,
String onRemoveMethodName)
Returns a List of ResultNode s for all the results included in the results
argument. |
static List<ResultNode> |
generateTaskResultNodesWithActionMap(List<?> results,
String displayNameMethodName,
String detailsMethodName,
Map<String,String> actionMethodNames)
Returns a List of ResultNode s for all the results included in the results
argument. |
static List<ResultNode> |
generateTaskResultNodesWithActionMap(List<?> results,
String displayNameMethodName,
String detailsMethodName,
Map<String,String> actionMethodNames,
String onRemoveMethodName)
Returns a List of ResultNode s for all the results included in the results
argument. |
static void |
updateResultNode(ResultNode nodeToUpdate,
List<?> results)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ResultNode generateGroupTaskResultNodes(String groupHeader, List<?> results, String displayNameMethodName, String detailsMethodName, Map<String,String> actionMethodNames, String onRemoveMethodName)
Generates a ResultNode
for the group of results with the actual List
of results as its
children nodes.
groupHeader
- the header for this List
of resultsresults
- the List
of results for which the ResultNode
s are to be generateddisplayNameMethodName
- the name of the method which returns the display text for the resultdetailsMethodName
- the name of the method which returns the result details as a java.util.Map
of
name-value pairsactionMethodNames
- a java.util.Map
of <action display name>-<action method name>
pairsonRemoveMethodName
- the name of the method to be called when the result is removed
ResultNode
for the node representing this set of resultspublic static ResultNode generateGroupTaskResultNodes(String groupHeader, List<?> results, String displayNameMethodName, String detailsMethodName, Map<String,String> actionMethodNames)
Generates a ResultNode
for the group of results with the actual List
of results as its
children nodes.
groupHeader
- the header for this List
of resultsresults
- the List
of results for which the ResultNode
s are to be generateddisplayNameMethodName
- the name of the method which returns the display text for the resultdetailsMethodName
- the name of the method which returns the result details as a java.util.Map
of
name-value pairsactionMethodNames
- a java.util.Map
of <action display name>-<action method name>
pairs
ResultNode
for the node representing this set of resultspublic static List<ResultNode> generateTaskResultNodesWithActionArray(List<?> results, String displayNameMethodName, String detailsMethodName, String[] actionMethodNames)
Returns a List
of ResultNode
s for all the results included in the results
argument.
results
- the List
of results for which the ResultNode
s are to be generateddisplayNameMethodName
- the name of the method which returns the display text for the resultdetailsMethodName
- the name of the method which returns the result details as a java.util.Map
of
name-value pairsactionMethodNames
- an array of names of methods for performing actions on the result
List
of ResultNode
s for all the results included in the results
argumentpublic static List<ResultNode> generateTaskResultNodesWithActionArray(List<?> results, String displayNameMethodName, String detailsMethodName, String[] actionMethodNames, String onRemoveMethodName)
Returns a List
of ResultNode
s for all the results included in the results
argument.
results
- the List
of results for which the ResultNode
s are to be generateddisplayNameMethodName
- the name of the method which returns the display text for the resultdetailsMethodName
- the name of the method which returns the result details as a java.util.Map
of
name-value pairsactionMethodNames
- an array of names of methods for performing actions on the resultonRemoveMethodName
- the name of the method to be called when the result is removed
List
of ResultNode
s for all the results included in the results
argumentpublic static List<ResultNode> generateTaskResultNodesWithActionMap(List<?> results, String displayNameMethodName, String detailsMethodName, Map<String,String> actionMethodNames)
Returns a List
of ResultNode
s for all the results included in the results
argument.
results
- the List
of results for which the ResultNode
s are to be generateddisplayNameMethodName
- the name of the method which returns the display text for the resultdetailsMethodName
- the name of the method which returns the result details as a java.util.Map
of
name-value pairsactionMethodNames
- a java.util.Map
of <action display name>-<action method name>
pairs
List
of ResultNode
s for all the results included in the results
argumentpublic static List<ResultNode> generateTaskResultNodesWithActionMap(List<?> results, String displayNameMethodName, String detailsMethodName, Map<String,String> actionMethodNames, String onRemoveMethodName)
Returns a List
of ResultNode
s for all the results included in the results
argument.
results
- the List
of results for which the ResultNode
s are to be generateddisplayNameMethodName
- the name of the method which returns the display text for the resultdetailsMethodName
- the name of the method which returns the result details as a java.util.Map
of
name-value pairsactionMethodNames
- a java.util.Map
of <action display name>-<action method name>
pairsonRemoveMethodName
- the name of the method to be called when the result is removed
List
of ResultNode
s for all the results included in the results
argumentpublic static void updateResultNode(ResultNode nodeToUpdate, List<?> results)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |