org.keridwen.sample.helloworld.key
Class HelloWorldEventKeys
java.lang.Object
org.keridwen.sample.helloworld.key.HelloWorldEventKeys
public class HelloWorldEventKeys
- extends Object
This class stores all the keys and the Keridwen Commands they are associated with. In order to keep
Command caller loosely coupled with the Commands themselves, the caller only uses the
EventKeys to call the Command. They know the signatures of the Command that is identical to
the one of the EventKey, but don't know what actual implementation is used.
This class associates the EventKeys with their respective Command and this is the place where you can
change what Command is triggered by a given EventKey, without modifying the caller.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORG_KERIDWEN_SAMPLE_HELLOWORLD_PRINT
public static final DefaultEventKey<Boolean,String> ORG_KERIDWEN_SAMPLE_HELLOWORLD_PRINT
- Request to print the name of the root
Node of the DataModel (which is called HelloWorld in this
example). The return type and message type generics are mandatory, but are not used here.
HelloWorldEventKeys
public HelloWorldEventKeys()
registerAllKeysToController
public static void registerAllKeysToController(BundleController controller)
- This method registers all the
EventKeys in the given BundleController.
- Parameters:
controller - the BundleController that will store the EventKeys
Copyright © 2011-2013 Artenum. All Rights Reserved.