org.jcurl.demo.tactics.old
Class ActionRegistry

Package class diagram package ActionRegistry
java.lang.Object
  extended by org.jcurl.demo.tactics.old.ActionRegistry

public class ActionRegistry
extends Object

Version:
$Id$
Author:
M. Rohrmoser

Nested Class Summary
(package private) static interface ActionRegistry.JCAction
          Mark a method that should be wrapped into a contextless Action.
(package private) static interface ActionRegistry.JCMenu
          Mark a class which ActionRegistry.JCAction-marked methods will become entries.
 
Constructor Summary
ActionRegistry()
           
 
Method Summary
 JMenu createJMenu(Object controller)
           
(package private)  KeyStroke findAccelerator(String acc)
           
 Action findAction(Class<?> controller, String method)
           
 Action findAction(Method method)
           
 Action findAction(Object controller, Method method)
           
 Action findAction(Object controller, String method)
           
(package private)  Character findMnemonic(CharSequence acc)
           
static ActionRegistry getInstance()
           
static void invoke(Class<?> controller, String method)
           
static void invoke(Class<?> controller, String method, Class<? extends Executor> exec)
           
 Object registerController(Object controller)
           
(package private)  String stripMnemonic(CharSequence a)
          De-escape "mnemocicced" titles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionRegistry

public ActionRegistry()
Method Detail

getInstance

public static ActionRegistry getInstance()

invoke

public static void invoke(Class<?> controller,
                          String method)

invoke

public static void invoke(Class<?> controller,
                          String method,
                          Class<? extends Executor> exec)

createJMenu

public JMenu createJMenu(Object controller)

findAccelerator

KeyStroke findAccelerator(String acc)

findAction

public Action findAction(Class<?> controller,
                         String method)
Returns:
never null
Throws:
IllegalArgumentException - no such action found

findAction

public Action findAction(Method method)
Returns:
never null
Throws:
IllegalArgumentException - no such action found

findAction

public Action findAction(Object controller,
                         Method method)
Returns:
never null
Throws:
IllegalArgumentException - no such action found

findAction

public Action findAction(Object controller,
                         String method)
                  throws IllegalArgumentException
Returns:
never null
Throws:
IllegalArgumentException - no such action found

findMnemonic

Character findMnemonic(CharSequence acc)

registerController

public Object registerController(Object controller)

stripMnemonic

String stripMnemonic(CharSequence a)
De-escape "mnemocicced" titles.



Copyright © 2005-2009 JCurl.mro.name. All Rights Reserved.