01: /*
02: * ActionFactory.java
03: *
04: * Created on January 24, 2004, 1:28 AM
05: */
06:
07: package org.netbeans.actions.engine.spi;
08:
09: import java.util.Map;
10: import javax.swing.Action;
11:
12: /** Creates actions on demand only when they need to be invoked.
13: *
14: * @author tim
15: */
16: public interface ActionFactory {
17:
18: //XXX get rid of the containerCtx param, it's not used
19:
20: /** Construct an invokable Swing action. The action should only be
21: * constructed when a user-gesture to invoke has been made and needs to
22: * be fulfilled */
23: public Action getAction(String action, String containerCtx,
24: Map context);
25:
26: }
|