Assignment of displayed HTML page and command to be executed to a Responder class.

COMPONENT JAVA
X4Dialog: Help for Dynamic Web Sites
Oliver Brüning
Listing 5. Assignment of displayed HTML page and command to be executed to a Responder class.


public class ExampleApplication extends X4DialogApplication
{
  private String[][] commandMatch =
    { { "listview",   "edit",        "bruening.x4dialog.example.ListViewResponder" },
      { "listview",    "delete",    "bruening.x4dialog.example.ListViewResponder" },
      { "",               "new",        "bruening.x4dialog.example.ListViewResponder" },
      { "",               "init",        "bruening.x4dialog.example.ListViewResponder" },
      { "",               "list",         "bruening.x4dialog.example.ListViewResponder" },
      { "editview",   "save",       "bruening.x4dialog.example.EditViewResponder" },
      { "editview",   "cancel",    "bruening.x4dialog.example.EditViewResponder" },
      { "newview",   "save",       "bruening.x4dialog.example.NewViewResponder" },
      { "newview", "cancel"  "bruening.x4dialog.example.NewViewResponder" } };