Package org.geoforge.guillc.menuitem

Examples of org.geoforge.guillc.menuitem.GfrMimTrsAlrDelAllObjLlosAbs




      if (evt.getSource() instanceof GfrMimTrsAlrDelAllObjLlosVarImgSct)
      {
         GfrMimTrsAlrDelAllObjLlosAbs mim = (GfrMimTrsAlrDelAllObjLlosAbs) evt.getSource();
         String strIdThis = mim.getIdThis();
         String strNameThis = GfrWrpBasSynObjNameTloEclSct.getInstance().getName(strIdThis);

         String strBody = "Are you sure you want to delete all images of\n  " + strNameThis + "?";
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

         if (!GfrOptionPaneAbs.s_showDialogConfirm(
                 frmOwner,
                 "Delete all images" + " - " + strNameThis,
                 strBody))
            return true; // action cancelled by user


         GfrMdlDatIdObjTloEclSct.getInstance().deleteAllImages(strIdThis);
         return true;
      }





      if (evt.getSource() instanceof GfrMimTrsAlrDelAllObjLlosVarImgPlc)
      {
         GfrMimTrsAlrDelAllObjLlosAbs mim = (GfrMimTrsAlrDelAllObjLlosAbs) evt.getSource();
         String strIdThis = mim.getIdThis();
         String strNameThis = GfrWrpBasSynObjNameTloEclPlc.getInstance().getName(strIdThis);

         String strBody = "Are you sure you want to delete all images of\n  " + strNameThis + "?";
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

         if (!GfrOptionPaneAbs.s_showDialogConfirm(
                 frmOwner,
                 "Delete all images" + " - " + strNameThis,
                 strBody))
            return true; // action cancelled by user


         GfrMdlDatIdObjTloEclPlc.getInstance().deleteAllImages(strIdThis);
         return true;
      }

      if (evt.getSource() instanceof GfrMimTrsAlrDelAllObjLlosVarImgPnt)
      {
         GfrMimTrsAlrDelAllObjLlosAbs mim = (GfrMimTrsAlrDelAllObjLlosAbs) evt.getSource();
         String strIdThis = mim.getIdThis();
         String strNameThis = GfrWrpBasSynObjNameTloEclPnt.getInstance().getName(strIdThis);

         String strBody = "Are you sure you want to delete all images of\n  " + strNameThis + "?";
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

         if (!GfrOptionPaneAbs.s_showDialogConfirm(
                 frmOwner,
                 "Delete all images" + " - " + strNameThis,
                 strBody))
            return true; // action cancelled by user


         GfrMdlDatIdObjTloEclPnt.getInstance().deleteAllImages(strIdThis);
         return true;
      }

      if (evt.getSource() instanceof GfrMimTrsAlrDelAllObjLlosVarImgAre)
      {
         GfrMimTrsAlrDelAllObjLlosAbs mim = (GfrMimTrsAlrDelAllObjLlosAbs) evt.getSource();
         String strIdThis = mim.getIdThis();
         String strNameThis = GfrWrpBasSynObjNameTloEclAre.getInstance().getName(strIdThis);

         String strBody = "Are you sure you want to delete all images of\n  " + strNameThis + "?";
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

         if (!GfrOptionPaneAbs.s_showDialogConfirm(
                 frmOwner,
                 "Delete all images" + " - " + strNameThis,
                 strBody))
            return true; // action cancelled by user


         GfrMdlDatIdObjTloEclAre.getInstance().deleteAllImages(strIdThis);
         return true;
      }

      if (evt.getSource() instanceof GfrMimTrsAlrDelAllObjLlosVarImgSpn)
      {
         GfrMimTrsAlrDelAllObjLlosAbs mim = (GfrMimTrsAlrDelAllObjLlosAbs) evt.getSource();
         String strIdThis = mim.getIdThis();
         String strNameThis = GfrWrpBasSynObjNameTloEclSpn.getInstance().getName(strIdThis);

         String strBody = "Are you sure you want to delete all images of\n  " + strNameThis + "?";
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

         if (!GfrOptionPaneAbs.s_showDialogConfirm(
                 frmOwner,
                 "Delete all images" + " - " + strNameThis,
                 strBody))
            return true; // action cancelled by user


         GfrMdlDatIdObjTloEclSpn.getInstance().deleteAllImages(strIdThis);
         return true;
      }

      if (evt.getSource() instanceof GfrMimTrsAlrDelAllObjLlosVarImgPth)
      {
         GfrMimTrsAlrDelAllObjLlosAbs mim = (GfrMimTrsAlrDelAllObjLlosAbs) evt.getSource();
         String strIdThis = mim.getIdThis();
         String strNameThis = GfrWrpBasSynObjNameTloEclPth.getInstance().getName(strIdThis);

         String strBody = "Are you sure you want to delete all images of\n  " + strNameThis + "?";
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

         if (!GfrOptionPaneAbs.s_showDialogConfirm(
                 frmOwner,
                 "Delete all images" + " - " + strNameThis,
                 strBody))
            return true; // action cancelled by user


         GfrMdlDatIdObjTloEclPth.getInstance().deleteAllImages(strIdThis);
         return true;
      }


      if (evt.getSource() instanceof GfrMimTrsAlrDelAllObjLlosVarImgSwy)
      {
         GfrMimTrsAlrDelAllObjLlosAbs mim = (GfrMimTrsAlrDelAllObjLlosAbs) evt.getSource();
         String strIdThis = mim.getIdThis();
         String strNameThis = GfrWrpBasSynObjNameTloEclSegWiseYes.getInstance().getName(strIdThis);

         String strBody = "Are you sure you want to delete all images of\n  " + strNameThis + "?";
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

         if (!GfrOptionPaneAbs.s_showDialogConfirm(
                 frmOwner,
                 "Delete all images" + " - " + strNameThis,
                 strBody))
            return true; // action cancelled by user


         GfrMdlDatIdObjTloEclSegWiseYes.getInstance().deleteAllImages(strIdThis);
         return true;
      }

      // ---

      // beg delete llo
      if (evt.getSource() instanceof GfrMimTrsAlrIdDelChildObj)
      {

         GfrMimTrsAlrIdAbs mim = (GfrMimTrsAlrIdAbs) evt.getSource();
         String strIdChild = mim.getId();
         String strIdParent = ((GfrMimTrsAlrIdDelChildObj) mim).getIdParent();


         String strValueKindObject = mim.getPropertyImmutable(
                 GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_OBJECT.name());

         //--
         if (strValueKindObject == null || strValueKindObject.length() < 1)
            return false;

         //--


         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PLC.name()) == 0)
         {
            String strNameChild = GfrWrpBasSynObjNameTloEclPlc.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclPlc.getInstance().deleteImage(strIdParent, strIdChild);
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PNT.name()) == 0)
         {
            String strNameChild = GfrWrpBasSynObjNameTloEclPnt.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclPnt.getInstance().deleteImage(strIdParent, strIdChild);
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_ARE.name()) == 0)
         {
            String strNameChild = GfrWrpBasSynObjNameTloEclAre.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclAre.getInstance().deleteImage(strIdParent, strIdChild);

            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_SPN.name()) == 0)
         {
            String strNameChild = GfrWrpBasSynObjNameTloEclSpn.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclSpn.getInstance().deleteImage(strIdParent, strIdChild);

            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_PTH.name()) == 0)
         {
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            String strNameChild = GfrWrpBasSynObjNameTloEclPth.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclPth.getInstance().deleteImage(strIdParent, strIdChild);

            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_SCT.name()) == 0)
         {

            String strNameChild = GfrWrpBasSynObjNameTloEclSct.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclSct.getInstance().deleteImage(strIdParent, strIdChild);
            return true;
         }

         if (strValueKindObject.compareTo(GfrEnuValuesKindObjectLloVarSpcPrjOgcEcl.VALUE_LLO_IMAGE_ECL_SEG_WISE_YES.name()) == 0)
         {
            JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

            String strNameChild = GfrWrpBasSynObjNameTloEclSegWiseYes.getInstance().getNameImage(strIdChild);
            String strBody = "Are you sure you want to delete image " + strNameChild + "?";

            if (!GfrOptionPaneAbs.s_showDialogConfirm(
                    frmOwner, GfrResBundleLang.s_getInstance().getValue("word.delete") + " " + strNameChild,
                    strBody))
               return true; // action cancelled by user

            GfrMdlDatIdObjTloEclSegWiseYes.getInstance().deleteImage(strIdParent, strIdChild);

            return true;
         }
      }
      // end delete llo

      if (evt.getSource() instanceof GfrMimTrsAlrDelAllObjTlos)
      {
         GfrMimTrsAlrDelAllObjTlos mim = (GfrMimTrsAlrDelAllObjTlos) evt.getSource();
         JFrame frmOwner = GfrFrmAbs.s_getFrameOwnerTrickForActionController(mim);

         String strValueKindObject = mim.getPropertyImmutable(
                 GfrEnuApplicationPropertiesImmutableKeys.KEY_KIND_OBJECT.name());

         //--
         if (strValueKindObject == null || strValueKindObject.length() < 1)
            return false;
View Full Code Here

TOP

Related Classes of org.geoforge.guillc.menuitem.GfrMimTrsAlrDelAllObjLlosAbs

Copyright © 2018 www.massapicom. 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.