The official version of KBOX 1.02 has been released. Download address:
Https://sourceforge.net/project/showfiles.php? Group_id = 222328
KBOX website: http://kbox-mvc.sourceforge.net/news.html
For more information about the use of KBOX, see the previous article "using the MVC2 open-source framework KBOX of j2_m2."
The default Command parameter of MIDP2.0 cannot be passed to the event processor, which is inconvenient during development.
The KCommand of KBOX extends the Command so that it can carry a Hashtable parameter (that is, if you want to set the number of parameters, you can execute _ ^)
Parameter transfer:
1. Pass menu command parameters:
...
Hashtable parameters = new Hashtable ();
Parameters. put ("parameter", "hello world! ");
KCommand kc = new KCommand ("test button", Command. HELP, 1, "MYCMD ",Parameters);
...
4. Pass configuration file parameters
This is mainly used for keyboard button events and keyboard events that cannot actively add commands (of course, you can add a configuration file parameter to a Command event, although I personally think there is no need-it is enough to pass the Hashtable parameter from the KCommand)
Configuration file (kbox. cfg. property:
...
CMD. MYCMD. ACTION = action. TestAction
<