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" } };

Featured

Most   Popular
Upcoming Events

AppTrends

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.