Package net.sourceforge.sijaf.dialogs

Examples of net.sourceforge.sijaf.dialogs.ConfirmActionCtrl.showDialog()


    if (isDirty()) {
      ConfirmActionModel actModel = getNewConfirmActionModel();
      ConfirmActionReceiver actReceiver = new ConfirmNewActionReceiver();
      ConfirmActionCtrl actCtrl =
              new ConfirmActionCtrl(actModel, mainFrame, actReceiver);
      actCtrl.showDialog();
    } else {
      performNewFileAction();
    }
  }
View Full Code Here


    if (isDirty()) {
      ConfirmActionModel actModel = getNewConfirmActionModel();
      ConfirmActionReceiver actReceiver = new ConfirmOpenActionReceiver();
      ConfirmActionCtrl actCtrl =
              new ConfirmActionCtrl(actModel, mainFrame, actReceiver);
      actCtrl.showDialog();
    } else {
      getFileForOpenFileAction();
    }
  }
View Full Code Here

      ConfirmActionModel actModel = getOverwriteConfirmActionModel();
      ConfirmActionReceiver actReceiver =
              new ConfirmOverwriteActionReceiver(file);
      ConfirmActionCtrl actCtrl =
              new ConfirmActionCtrl(actModel, mainFrame, actReceiver);
      actCtrl.showDialog(); // will call performSaveAction() on OK
    } else {
      performSaveAction(file);
    }
  }
View Full Code Here

    if (isDirty()) {
      ConfirmActionModel actModel = getQuitConfirmActionModel();
      ConfirmActionReceiver actReceiver = new ConfirmQuitActionReceiver();
      ConfirmActionCtrl actCtrl =
              new ConfirmActionCtrl(actModel, mainFrame, actReceiver);
      actCtrl.showDialog();
    } else {
      performQuitAction();
    }
  }
View Full Code Here

      ConfirmActionModel actModel = getOverwriteConfirmActionModel();
      ConfirmActionReceiver actReceiver =
              new ConfirmOverwriteOnQuitActionReceiver(file);
      ConfirmActionCtrl actCtrl =
              new ConfirmActionCtrl(actModel, mainFrame, actReceiver);
      actCtrl.showDialog(); // will call performSaveAction() on OK
    } else {
      performSaveActionOnQuit(file);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.