コード例 #1
0
 public void setTargetEditor(MiEditor editor) {
   if (mouseLocationEditor != null) {
     mouseLocationEditor.removeEventHandler(mouseLocationMonitor);
   }
   mouseLocationEditor = editor;
   mouseLocationMonitor =
       new MiMouseLocationDisplayMonitor(getField(X_FIELD_INDEX), getField(Y_FIELD_INDEX));
   mouseLocationEditor.appendEventHandler(mouseLocationMonitor);
 }
コード例 #2
0
 public void deleteSelf() {
   if (mouseLocationEditor != null) mouseLocationEditor.removeEventHandler(mouseLocationMonitor);
   super.deleteSelf();
 }