com.ptc.core.ca.co.client.action
Class CoActionHandler

java.lang.Object
  extended by com.ptc.core.ca.co.client.element.CoElementHandler
      extended by com.ptc.core.ca.co.client.action.CoActionHandler
All Implemented Interfaces:
CoModelHandler
Direct Known Subclasses:
CoGoToActionHandler, CoInPlaceActionHandler, CoSimpleActionHandler

Deprecated.

@Deprecated
public abstract class CoActionHandler
extends CoElementHandler
implements CoModelHandler

CoActionHandler implements the handling of the model update for an action element. It is also responsible for the execution of an operation when an action it is specifed for is triggered.

Supported API: true

Extendable: true


Method Summary
 CoActionDoer getActionDoer(CoAction action, CoEnvData envData)
          Deprecated. Returns an instance of a doer implementing CoActionDoer interface.
 CoConfigFeature getActionDoerConfig(CoAction action, CoEnvData envData)
          Deprecated. Returns a configuration feature describing the action doer of an action.
protected  void initActionModel(CoAction action, CoEnvData envData)
          Deprecated. Creates and initializes an action model by delegating to ActionModel#init.
protected  CoActionHandlerData newActionHandlerData()
          Deprecated. Creates and returns a new instance of CoActionHandlerData.
protected abstract  CoActionModel newModel()
          Deprecated. Creates and returns an instance of CoActionModel.
 void performOperation(CoAction action, CoEnvData envData)
          Deprecated. Performs an operation when an action is triggered.
protected  void updateActionModel(CoAction action, CoEnvData envData)
          Deprecated. Invokes a doer to determine whether an action is visible and enabled.
 void updateModel(CoElement element, CoEnvData envData)
          Deprecated. Creates and/or updates an action model by delegating to updateActionModel.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

updateModel

public final void updateModel(CoElement element,
                              CoEnvData envData)
                       throws WTException
Deprecated. 
Creates and/or updates an action model by delegating to updateActionModel.

Supported API: true

Specified by:
updateModel in interface CoModelHandler
Parameters:
element -
envData -
Throws:
WTException

initActionModel

protected void initActionModel(CoAction action,
                               CoEnvData envData)
                        throws WTException
Deprecated. 
Creates and initializes an action model by delegating to ActionModel#init.

Supported API: true

Parameters:
action -
envData -
Throws:
WTException

updateActionModel

protected void updateActionModel(CoAction action,
                                 CoEnvData envData)
                          throws WTException
Deprecated. 
Invokes a doer to determine whether an action is visible and enabled.

Supported API: true

Parameters:
action -
envData -
Throws:
WTException

newActionHandlerData

protected CoActionHandlerData newActionHandlerData()
Deprecated. 
Creates and returns a new instance of CoActionHandlerData.

Supported API: true

Returns:
CoActionHandlerData

newModel

protected abstract CoActionModel newModel()
Deprecated. 
Creates and returns an instance of CoActionModel.

Supported API: true

Returns:
CoActionModel

getActionDoer

public CoActionDoer getActionDoer(CoAction action,
                                  CoEnvData envData)
                           throws WTException
Deprecated. 
Returns an instance of a doer implementing CoActionDoer interface.

Supported API: true

Parameters:
action -
envData -
Returns:
CoActionDoer
Throws:
WTException

getActionDoerConfig

public CoConfigFeature getActionDoerConfig(CoAction action,
                                           CoEnvData envData)
                                    throws WTException
Deprecated. 
Returns a configuration feature describing the action doer of an action.

Supported API: true

Parameters:
action -
envData -
Returns:
CoConfigFeature
Throws:
WTException

performOperation

public void performOperation(CoAction action,
                             CoEnvData envData)
                      throws WTException
Deprecated. 
Performs an operation when an action is triggered. When an action is visible and enabled it will delegate to a doer's CoActionDoer#execute method. An instance of CoActionHandlerData will be be passed as a parameter to the method.

Supported API: true

Parameters:
action -
envData -
Throws:
WTException