Package jfireeagle.examples.swing

Source Code of jfireeagle.examples.swing.UpdateLocationForm

package jfireeagle.examples.swing;

import javax.swing.*;

import jfireeagle.Address;
import jfireeagle.CellTower;
import jfireeagle.FireEagleClient;
import jfireeagle.GpsCoordinate;
import jfireeagle.LocationParameters;

public class UpdateLocationForm extends AbstractForm
{
  private LocationParametersPanel locPanel = new LocationParametersPanel();
 
  public UpdateLocationForm(FireEagleClient c)
  {
    super(c, 1);
   
    add(locPanel);
   
  }
 
  public Object onSubmit()
  {
    LocationParameters loc = locPanel.getLocationParameters();
   
    this.getClient().updateLocation(loc);
   
    return null;
  }


}
TOP

Related Classes of jfireeagle.examples.swing.UpdateLocationForm

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.