com.sage.swt.client.sdata
Class DefaultPreferenceStoreActionFactory

java.lang.Object
  extended by com.sage.swt.client.sdata.DefaultPreferenceStoreActionFactory
All Implemented Interfaces:
HasDebugName, SwtActionFactory

public class DefaultPreferenceStoreActionFactory
extends java.lang.Object
implements SwtActionFactory

This is the class that will be used by the DefaultMasterBuilder to register DefaultPreferenceStore actions with the actions engine.


Field Summary
static java.lang.String ACTION_MOVETODEFAULT
           
static java.lang.String ACTION_UPDATEDEFAULT
           
static java.lang.String PARAM_CALLBACK
           
 
Constructor Summary
DefaultPreferenceStoreActionFactory()
           
 
Method Summary
 SwtAction getAction(InstanceContext context, java.lang.String actionType, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
          Gets the action that corresponds to the specified type of action (e.g "moveNext", "showPopup").
 java.util.Collection<java.lang.String> getActionTypes()
          Gets the collection of action types that are supported by this factory.
 java.lang.String getDebugName()
          Gets the debug display name of the class (for example "Standard Action Factory") for use in error reporting (such as logging a warning).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_MOVETODEFAULT

public static final java.lang.String ACTION_MOVETODEFAULT
See Also:
Constant Field Values

ACTION_UPDATEDEFAULT

public static final java.lang.String ACTION_UPDATEDEFAULT
See Also:
Constant Field Values

PARAM_CALLBACK

public static final java.lang.String PARAM_CALLBACK
See Also:
Constant Field Values
Constructor Detail

DefaultPreferenceStoreActionFactory

public DefaultPreferenceStoreActionFactory()
Method Detail

getAction

public SwtAction getAction(InstanceContext context,
                           java.lang.String actionType,
                           java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
Gets the action that corresponds to the specified type of action (e.g "moveNext", "showPopup").

Specified by:
getAction in interface SwtActionFactory
Parameters:
context - The instance context that the action applies to.
actionType - The name for the type of action (e.g. "moveNext", "showPopup").
params - The parameters that are specified for the action. These parameters are passed in using the LinkedHashMap because the order of these parameters is important if a java script function is being executed by the action (because the parameters will be passed in to the function in the same order in which they are specified in the map).
Returns:
The action that corresponds to the specified type of action (e.g "moveNext", "showPopup").

getActionTypes

public java.util.Collection<java.lang.String> getActionTypes()
Gets the collection of action types that are supported by this factory.

Specified by:
getActionTypes in interface SwtActionFactory
Returns:
The collection of action types that are supported by this factory.

getDebugName

public java.lang.String getDebugName()
Gets the debug display name of the class (for example "Standard Action Factory") for use in error reporting (such as logging a warning).

Specified by:
getDebugName in interface HasDebugName
Returns:
The debug display name of the class.


Copyright © 2011 Sage Software, Inc. All rights reserved.