Package org.geoforge.guillc.event

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


      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

              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

         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

         return false;
      }

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

      return true;
   }
View Full Code Here

      {
         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

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

      return true;
View Full Code Here

      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

         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

Related Classes of org.geoforge.guillc.event.GfrEvtValidityChanged

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.