org.openstreetmap.josm.io
Class GpxExporter

java.lang.Object
  extended by org.openstreetmap.josm.io.FileExporter
      extended by org.openstreetmap.josm.io.GpxExporter
All Implemented Interfaces:
MapView.LayerChangeListener

public class GpxExporter
extends FileExporter


Field Summary
private static java.lang.String warningGpl
           
 
Fields inherited from class org.openstreetmap.josm.io.FileExporter
filter
 
Constructor Summary
GpxExporter()
           
 
Method Summary
 boolean acceptFile(java.io.File pathname, Layer layer)
           
private static void addDependencies(GpxData data, javax.swing.JCheckBox author, javax.swing.JTextField authorName, javax.swing.JTextField email, javax.swing.JTextField copyright, javax.swing.JButton predefined, javax.swing.JTextField copyrightYear, javax.swing.JLabel nameLabel, javax.swing.JLabel emailLabel, javax.swing.JLabel copyrightLabel, javax.swing.JLabel copyrightYearLabel, javax.swing.JLabel warning)
          Add all those listeners to handle the enable state of the fields.
private static void enableCopyright(GpxData data, javax.swing.JTextField copyright, javax.swing.JButton predefined, javax.swing.JTextField copyrightYear, javax.swing.JLabel copyrightLabel, javax.swing.JLabel copyrightYearLabel, javax.swing.JLabel warning, boolean enable)
           
 void exportData(java.io.File file, Layer layer)
           
private  DataSet getCurrentDataSet()
          Replies the current dataset
 
Methods inherited from class org.openstreetmap.josm.io.FileExporter
activeLayerChange, isEnabled, layerAdded, layerRemoved, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

warningGpl

private static final java.lang.String warningGpl
Constructor Detail

GpxExporter

public GpxExporter()
Method Detail

acceptFile

public boolean acceptFile(java.io.File pathname,
                          Layer layer)
Overrides:
acceptFile in class FileExporter

exportData

public void exportData(java.io.File file,
                       Layer layer)
                throws java.io.IOException
Overrides:
exportData in class FileExporter
Throws:
java.io.IOException

enableCopyright

private static void enableCopyright(GpxData data,
                                    javax.swing.JTextField copyright,
                                    javax.swing.JButton predefined,
                                    javax.swing.JTextField copyrightYear,
                                    javax.swing.JLabel copyrightLabel,
                                    javax.swing.JLabel copyrightYearLabel,
                                    javax.swing.JLabel warning,
                                    boolean enable)

addDependencies

private static void addDependencies(GpxData data,
                                    javax.swing.JCheckBox author,
                                    javax.swing.JTextField authorName,
                                    javax.swing.JTextField email,
                                    javax.swing.JTextField copyright,
                                    javax.swing.JButton predefined,
                                    javax.swing.JTextField copyrightYear,
                                    javax.swing.JLabel nameLabel,
                                    javax.swing.JLabel emailLabel,
                                    javax.swing.JLabel copyrightLabel,
                                    javax.swing.JLabel copyrightYearLabel,
                                    javax.swing.JLabel warning)
Add all those listeners to handle the enable state of the fields.

Parameters:
copyrightYearLabel -
copyrightLabel -
emailLabel -
nameLabel -
warning -

getCurrentDataSet

private DataSet getCurrentDataSet()
Replies the current dataset

Returns:
the current dataset. null, if no current dataset exists


JOSM