/**
   * Handles toolbar action event for this toolbar.
   *
   * @param evt the genereated action event to be handled.
   */
  public void actionPerformed(ActionEvent evt) {

    oParent.setWaitCursor();

    Object source = evt.getSource();

    if (source.equals(pbOpen)) {
      oParent.onFileOpen();
    } else if (source.equals(pbClose)) {
      oParent.onFileClose();
    } else if (source.equals(pbDelete)) {
      oParent.onEditDelete();
    } else if (source.equals(pbCut)) {
      oParent.onEditCut();
    } else if (source.equals(pbCopy)) {
      oParent.onEditCopy();
    } else if (source.equals(pbPaste)) {
      oParent.onEditPaste();
    } else if (source.equals(pbUndo)) {
      oParent.onEditUndo();
    } else if (source.equals(pbRedo)) {
      oParent.onEditRedo();
    } else if (source.equals(pbBack)) {
      onBack();
    } else if (source.equals(pbShowBackHistory)) {
      onShowBackHistory();
    } else if (source.equals(pbShowForwardHistory)) {
      onShowForwardHistory();
    } else if (source.equals(pbForward)) {
      onForward();
    } else if (source.equals(pbSearch)) {
      oParent.onSearch();
    } else if (source.equals(pbImageRollover)) {
      oParent.onImageRollover(!FormatProperties.imageRollover);
    }

    oParent.setDefaultCursor();
  }
예제 #2
0
  /**
   * Handles toolbar action event for this toolbar.
   *
   * @param evt the generated action event to be handled.
   */
  public void actionPerformed(ActionEvent evt) {

    // oParent.setWaitCursor();
    Object source = evt.getSource();
    // oParent.setDefaultCursor();
  }