creamtec.webcream.core
Class ActionData

java.lang.Object
  extended by creamtec.webcream.core.ActionData

public class ActionData
extends java.lang.Object

Contains parameters, associated with action, that needs to be performed or emulated. The action data is created based on the submitted parameters, the current window and the action string submitted from the page. Custom action strings must follow the syntax "/<category>/<param>" where <category> is any string except for "menu", "ignore";
<param> is any string that is meaningful to the application.
Example of custom action string: /context_menu/persist_record WebCream will parse the action string and store the category in the actionObject and the parameter in the actionParam.


Constructor Summary
ActionData()
           
 
Method Summary
 java.util.Map getActionContext()
           
 java.lang.Object getActionObject()
          Returns the object that the action should be performed on
 java.lang.Object getActionParam()
           
 java.lang.String getActionString()
           
 java.awt.Component getFocusOwner()
           
 int getTableCol()
           
 javax.swing.JTable getTableObject()
           
 int getTableRow()
           
 boolean isInitialized()
          Determines if the data has been initialized
 boolean isProcessed()
          Determines if the action is already processed by one of the emulators
 void setActionContext(java.util.Map actionContext)
           
 void setActionObject(java.lang.Object actionObject)
          Sets the action object
 void setActionParam(java.lang.Object actionParam)
           
 void setActionString(java.lang.String actionString)
           
 void setFocusOwner(java.awt.Component focusOwner)
           
 void setProcessed(boolean isProcessed)
          Marks the action as processed.
 void setTableCol(int tableCol)
           
 void setTableObject(javax.swing.JTable tableObject)
           
 void setTableRow(int tableRow)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionData

public ActionData()
Method Detail

isInitialized

public boolean isInitialized()
Determines if the data has been initialized

Returns:
true if it has

isProcessed

public boolean isProcessed()
Determines if the action is already processed by one of the emulators

Returns:
true if the action is processed

setProcessed

public void setProcessed(boolean isProcessed)
Marks the action as processed. Action emulators should set this field to true to signal that the emulation of the action is complete


getActionObject

public java.lang.Object getActionObject()
Returns the object that the action should be performed on

Returns:
Object

setActionObject

public void setActionObject(java.lang.Object actionObject)
Sets the action object

Parameters:
actionObject - Object

setTableObject

public void setTableObject(javax.swing.JTable tableObject)

getTableObject

public javax.swing.JTable getTableObject()

setActionString

public void setActionString(java.lang.String actionString)

getActionString

public java.lang.String getActionString()

setFocusOwner

public void setFocusOwner(java.awt.Component focusOwner)

getFocusOwner

public java.awt.Component getFocusOwner()

setActionParam

public void setActionParam(java.lang.Object actionParam)

getActionParam

public java.lang.Object getActionParam()

setTableRow

public void setTableRow(int tableRow)

getTableRow

public int getTableRow()

setTableCol

public void setTableCol(int tableCol)

getTableCol

public int getTableCol()

getActionContext

public java.util.Map getActionContext()

setActionContext

public void setActionContext(java.util.Map actionContext)


Copyright © 2000-2006 CreamTec LLC. All Rights Reserved.