|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.web.faces.event.ToolItem
public class ToolItem
An object which contains information pertaining to a map or page tool item. A ToolItem stores a tool key, a server-side action class name which will execute, and a client-side Javascript method which will be called when the tool is activated.
| Field Summary | |
|---|---|
static int |
TASK_TOOL_METHOD
|
static int |
TOOL_ACTION_CLASS
|
static int |
TOOL_ACTION_METHOD
|
| Constructor Summary | |
|---|---|
ToolItem(java.lang.String key,
java.lang.String taskControlId,
java.lang.String clientAction,
boolean showLoading,
java.lang.String cursor,
java.util.Map<?,?> attributes)
|
|
ToolItem(java.lang.String key,
java.lang.String actionClass,
java.lang.String actionMethodExpr,
java.lang.String clientAction,
boolean showLoading,
java.lang.String cursor,
java.util.Map<?,?> attributes)
Constructs a ToolItem object and verifies if action class represents an object of type ToolAction. |
|
| Method Summary | |
|---|---|
java.lang.String |
getActionMethodExpressionString()
Returns the expression string for the MethodBinding associated with the action method |
java.util.Map<?,?> |
getAttributes()
Returns the name-value (String, String) pairs of tool attributes. |
java.lang.String |
getClientAction()
Returns the client action to perform. |
java.lang.String |
getCursor()
Returns the cursor type. |
java.lang.String |
getKey()
Returns the tool key. |
java.lang.String |
getTaskControlId()
|
ToolAction |
getToolAction()
Instantiates an object using the action class. |
java.lang.String |
getToolClass()
Returns the class name to invoke for the tool. |
int |
getToolType()
|
boolean |
isShowLoading()
Indicates whether show loading image is shown when tool action is performed. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TOOL_ACTION_CLASS
public static final int TOOL_ACTION_METHOD
public static final int TASK_TOOL_METHOD
| Constructor Detail |
|---|
public ToolItem(java.lang.String key,
java.lang.String actionClass,
java.lang.String actionMethodExpr,
java.lang.String clientAction,
boolean showLoading,
java.lang.String cursor,
java.util.Map<?,?> attributes)
ToolAction.
key - the tool keyactionClass - the class to perform the action's business logicactionMethodExpr - the binding for the method to perform the tool's business logicclientAction - the client side action to performshowLoading - if true, the loading image is shown when tool action is performedcursor - the type of cursor to be shown when tool action is performedattributes - the name-value (String, String) pairs of tool attributes
public ToolItem(java.lang.String key,
java.lang.String taskControlId,
java.lang.String clientAction,
boolean showLoading,
java.lang.String cursor,
java.util.Map<?,?> attributes)
| Method Detail |
|---|
public java.lang.String getKey()
String- the tool key valuepublic java.lang.String getToolClass()
String- the class namepublic java.lang.String getClientAction()
String- the client actionpublic boolean isShowLoading()
public java.lang.String getCursor()
String- the type of cursorpublic java.util.Map<?,?> getAttributes()
Map- the name-value pairspublic ToolAction getToolAction()
object using the action class.
ToolAction- an object representing the tool actionpublic java.lang.String getActionMethodExpressionString()
MethodBinding associated with the action method
String- the expression string for the MethodBinding associated with the
action methodpublic java.lang.String getTaskControlId()
public int getToolType()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||