com.sage.swt.client.ui.action
Interface SwtAction

All Superinterfaces:
com.google.gwt.event.shared.HasHandlers, HasSwtActionHandlers
All Known Implementing Classes:
AbstractSwtAction, ActionProxy

public interface SwtAction
extends HasSwtActionHandlers

Interface for a high-level action that has application level semantics.

Actions are often linked to widgets. For example, we can have an action for "when this button is clicked, delete the current object".


Method Summary
 void execute()
          Executes the action (including notification of the handlers before and after the actual execution of the action).
 void execute(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
          Executes the action (including notification of the handlers before and after the actual execution of the action).
 
Methods inherited from interface com.sage.swt.client.ui.action.HasSwtActionHandlers
addSwtActionHandler
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Method Detail

execute

void execute(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
Executes the action (including notification of the handlers before and after the actual execution of the action).

Parameters:
params - an execution time parameter for the action. The parameters are defined by the event that the action is mapped to. 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).

execute

void execute()
Executes the action (including notification of the handlers before and after the actual execution of the action). Same as calling execute(LinkedHashMap) and passing null.



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