|
|||||||||
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(String key,
String taskControlId,
String clientAction,
boolean showLoading,
String cursor,
Map<?,?> attributes)
|
|
ToolItem(String key,
String actionClass,
String actionMethodExpr,
String clientAction,
boolean showLoading,
String cursor,
Map<?,?> attributes)
Constructs a ToolItem object and verifies if action class represents an object of type ToolAction . |
Method Summary | |
---|---|
String |
getActionMethodExpressionString()
Returns the expression string for the MethodBinding associated with the action method |
Map<?,?> |
getAttributes()
Returns the name-value (String, String) pairs of tool attributes. |
String |
getClientAction()
Returns the client action to perform. |
String |
getCursor()
Returns the cursor type. |
String |
getKey()
Returns the tool key. |
String |
getTaskControlId()
|
ToolAction |
getToolAction()
Instantiates an object using the action class. |
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. |
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(String key, String actionClass, String actionMethodExpr, String clientAction, boolean showLoading, String cursor, 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 attributespublic ToolItem(String key, String taskControlId, String clientAction, boolean showLoading, String cursor, Map<?,?> attributes)
Method Detail |
---|
public String getKey()
String
- the tool key valuepublic String getToolClass()
String
- the class namepublic String getClientAction()
String
- the client actionpublic boolean isShowLoading()
public String getCursor()
String
- the type of cursorpublic Map<?,?> getAttributes()
Map
- the name-value pairspublic ToolAction getToolAction()
object
using the action class.
ToolAction
- an object representing the tool actionpublic String getActionMethodExpressionString()
MethodBinding
associated with the action method
String
- the expression string for the MethodBinding
associated with the
action methodpublic String getTaskControlId()
public int getToolType()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |