Examples of GfrEvtValidityChanged


Examples of org.geoforge.guillc.event.GfrEvtValidityChanged

      Double dblLongitude = GfrDouble.valueOf(strLongitude);


      if (dblLatitude == null)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Enter valid starting point latitude."));
         return false;
      }

      if (dblLatitude > 90d || dblLatitude < -90d)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Starting point latitude should be in between 90º and -90º."));
         return false;
      }

      if (dblLongitude == null)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Enter valid starting point longitude."));
         return false;
      }

      if (dblLongitude > 180d || dblLongitude < -180d)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Starting point longitude should be in between 180º and -180º."));
         return false;
      }


      return true;
View Full Code Here

Examples of org.geoforge.guillc.event.GfrEvtValidityChanged

      Double dblLongitude = GfrDouble.valueOf(strLongitude);


      if (dblLatitude == null)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Enter valid ending point latitude."));
         return false;
      }

      if (dblLatitude > 90d || dblLatitude < -90d)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Ending point latitude should be in between 90º and -90º"));
         return false;
      }

      if (dblLongitude == null)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Enter valid ending point longitude."));
         return false;
      }

      if (dblLongitude > 180d || dblLongitude < -180d)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Ending point longitude should be in between 180º and -180º"));
         return false;
      }


      return true;
View Full Code Here

Examples of org.geoforge.guillc.event.GfrEvtValidityChanged

              Double.valueOf(this._pnlCoordinatesPointEnd.getContentRight()));


      if (dblVakue - GfrDouble.DBL_EPSILON_THREE_DIGITS > this._getMaxLengthAllowed())
      {
         validityChanged(new GfrEvtValidityChanged(false, "Length is bigger than " + this._getMaxLengthAllowed() + " m. Please modify coordinates."));
         return false;
      }

      if (dblVakue + GfrDouble.DBL_EPSILON_THREE_DIGITS < GfrDlgNewSettingsTloSegWiseYesAbs.DBL_MINIMUM_LENGTH_IN_METERS)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Length is lower to " + GfrDlgNewSettingsTloSegWiseYesAbs.DBL_MINIMUM_LENGTH_IN_METERS + " m. Please modify coordinates."));
         return false;
      }


      return true;
View Full Code Here

Examples of org.geoforge.guillc.event.GfrEvtValidityChanged

         new URI(strUrl);
         new URL(strUrl);
      }
      catch (URISyntaxException excURISyntax)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Wrong Syntax URL."));
         return false;
      }
      catch (MalformedURLException excMalformedURL)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Malformed URL."));
         return false;
      }
      catch (Exception exc)
      {
         validityChanged(new GfrEvtValidityChanged(false, "Please enter a valid URL."));
         return false;
      }
     
      for (int i=0; i<this._strsFileExtension_.length; i++)
      {
         if (strUrl.toLowerCase().endsWith(this._strsFileExtension_[i]))
            return true;
      }
     
      String strAllowedExtension = "";
     
      for (int i=0; i<this._strsFileExtension_.length; i++)
         strAllowedExtension += this._strsFileExtension_[i] + " ";
     
      validityChanged(new GfrEvtValidityChanged(false, "Wrong file extension, supported extensions:" + strAllowedExtension));
      return false;
   }
View Full Code Here

Examples of org.geoforge.guillc.event.GfrEvtValidityChanged

         return false;
      }

      if (super._alreadyExists(strName))
      {
         validityChanged(new GfrEvtValidityChanged(false, "Name already exists"));
         return false;
      }

      return true;
   }
View Full Code Here

Examples of org.geoforge.guillc.event.GfrEvtValidityChanged

      {
         if (intDepth == intName)
         {
            boolean blnResult = false;
            String str = "Depth and name are sharing the same column";
            validityChanged(new GfrEvtValidityChanged(blnResult, str));
            return blnResult;
         }
      }

View Full Code Here

Examples of org.geoforge.guillc.event.GfrEvtValidityChanged

             strError = "File with same name already exists.";
         else
            strError = _getMessageErrorFolderAlreadyExist();
         
         validityChanged(
                 new GfrEvtValidityChanged(false,strError));
        
         return false;
      }

      return true;
View Full Code Here

Examples of org.geoforge.guillc.event.GfrEvtValidityChanged

      this._blnShow = true;

      //There is no field that display error - former error message are hiden
      if (_noErrorToDisplay())
         this.validityChanged(
                 new GfrEvtValidityChanged(
                 true, ""));

      this._blnShow = false;

      super.setEnabledOkCommandDialog(_okEnableable());
View Full Code Here

Examples of org.geoforge.guillc.event.GfrEvtValidityChanged

         if (intGeometry == intUniqueName)
         {
            boolean blnResult = false;
            String str = "Geometry and " + super.getUniqueName() + " are sharing the same column";
            validityChanged(new GfrEvtValidityChanged(blnResult, str));
            return blnResult;
         }

      }
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.