コード例 #1
0
 public void activate() {
   active = true;
   microphone.flush();
   speaker.flush();
   speaker.start();
   blocker.release();
   microphone.start();
   microphone.flush();
 }
コード例 #2
0
  public void actionPerformed(ActionEvent ev) {
    String action = ev.getActionCommand();

    if (action.equals("ok")) {
      cancelled = false;
      if (dialog != null) {
        dialog.dispose();
      }
      blocker.release();
    } else if (action.equals("cancel")) {
      cancelled = true;
      if (dialog != null) {
        dialog.dispose();
      }
      blocker.release();
    } else if (setType(action)) {
    } else if (setBPP(action)) {
    } else {
    }
  }
コード例 #3
0
 public ImageTypeConvertOp activate() {
   display();
   try {
     blocker.acquire();
   } catch (InterruptedException ie) {
     return null;
   }
   if (cancelled) {
     return null;
   }
   return new ImageTypeConvertOp(params);
 }
コード例 #4
0
 public void pickup() {
   pickup.release();
 }