Package jfireeagle

Examples of jfireeagle.LocationParameters


    add(c);
  }

  public LocationParameters getLocationParameters()
  {
    LocationParameters loc = new LocationParameters();
   
    if (hasText(latitude) && hasText(longitude))
    {
      GpsCoordinate coordinate = new GpsCoordinate(latitude.getText(), longitude.getText());
      loc.setGpsCoordinate(coordinate);
    }
   
    if (hasText(address))
    {
      Address a = new Address();
      a.setStreetAddress(address.getText());
      a.setCity(city.getText());
      a.setState(state.getText());
      a.setCountry(country.getText());
      a.setPostalCode(postal.getText());
      loc.setAddress(a);
    }
   
    loc.setWhereOnEarthId(new WhereOnEarthId(woeid.getText()));
 
    if (hasText(mnc))
    {
      CellTower tower = new CellTower();
      tower.setMnc(new Integer(mnc.getText()));
      tower.setMcc(new Integer(mcc.getText()));
      tower.setLac(new Integer(lac.getText()));
      tower.setCellid(new Integer(cellid.getText()));
      loc.setCellTower(tower);
    }
   
    return loc;
  }
View Full Code Here


   
  }
 
  public Object onSubmit()
  {
    LocationParameters loc = locPanel.getLocationParameters();
   
    return this.getClient().lookup(loc);
   
  }
View Full Code Here

   
  }
 
  public Object onSubmit()
  {
    LocationParameters loc = locPanel.getLocationParameters();
   
    this.getClient().updateLocation(loc);
   
    return null;
  }
View Full Code Here

TOP

Related Classes of jfireeagle.LocationParameters

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.