示例#1
0
 /** Invoked when an action occurs. */
 @Override
 public void actionPerformed(ActionEvent e) {
   String cmd = e.getActionCommand();
   if (cmd.equals("candidate-search")) doCandidateSearch();
   else if (cmd.equals("clear-candidate")) doClearCandidate();
   else if (cmd.equals("add-archive")) doAddArchive();
   else if (cmd.equals("add-all-archive")) doAddAllArchive();
   else if (cmd.equals("remove-archive")) doRemoveArchive();
   else if (cmd.equals("remove-all-archive")) doRemoveAllArchive();
   else if (cmd.equals("calc-archive")) doCalcArchive();
   else if (cmd.equals("archive")) doArchive();
   else super.actionPerformed(e);
 }
示例#2
0
  /** Invoked when an action occurs. */
  public void actionPerformed(ActionEvent e) {
    super.actionPerformed(e);

    String cmd = e.getActionCommand();
    if (cmd.equals("seq-layout-changed")) doSeqLayoutChanged();
  }