リスト17 リスナのセット(ButtonComponent.java)

  ……
  17  public class ButtonComponent
          extends UICommand
          implements CoveComponent {
  18      public XulButton xulButton;
  ……
  ……
  55                  String actionListener =
                          xulConfig.getActionListenerAsString();
  56                  if ((actionListener != null) &&
                          (!"".equals(actionListener))) {
  57                      Class[] args = {ActionEvent.class};
  58                      MethodBinding methodBinding = 
  59                          application
                              .createMethodBinding(actionListener, args);
  60                      super.setActionListener(methodBinding);
  61                  }
  ……