public class GpxExporter extends FileExporter implements GpxConstants
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
warningGpl |
filter
JOSM_EXTENSIONS_NAMESPACE_URI, META_AUTHOR_EMAIL, META_AUTHOR_LINK, META_AUTHOR_NAME, META_COPYRIGHT_AUTHOR, META_COPYRIGHT_LICENSE, META_COPYRIGHT_YEAR, META_DESC, META_EXTENSIONS, META_KEYWORDS, META_LINKS, META_NAME, META_PREFIX, META_TIME, WPT_KEYS
Constructor and Description |
---|
GpxExporter()
Constructs a new
GpxExporter . |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFile(java.io.File pathname,
Layer layer) |
private static void |
addDependencies(GpxData data,
javax.swing.JCheckBox author,
JosmTextField authorName,
JosmTextField email,
JosmTextField copyright,
javax.swing.JButton predefined,
JosmTextField 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,
JosmTextField copyright,
javax.swing.JButton predefined,
JosmTextField 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
|
activeLayerChange, isCanceled, isEnabled, layerAdded, layerRemoved, setCanceled, setEnabled
private static final java.lang.String warningGpl
public GpxExporter()
GpxExporter
.public boolean acceptFile(java.io.File pathname, Layer layer)
acceptFile
in class FileExporter
public void exportData(java.io.File file, Layer layer) throws java.io.IOException
exportData
in class FileExporter
java.io.IOException
private static void enableCopyright(GpxData data, JosmTextField copyright, javax.swing.JButton predefined, JosmTextField copyrightYear, javax.swing.JLabel copyrightLabel, javax.swing.JLabel copyrightYearLabel, javax.swing.JLabel warning, boolean enable)
private static void addDependencies(GpxData data, javax.swing.JCheckBox author, JosmTextField authorName, JosmTextField email, JosmTextField copyright, javax.swing.JButton predefined, JosmTextField copyrightYear, javax.swing.JLabel nameLabel, javax.swing.JLabel emailLabel, javax.swing.JLabel copyrightLabel, javax.swing.JLabel copyrightYearLabel, javax.swing.JLabel warning)
copyrightYearLabel
- copyrightLabel
- emailLabel
- nameLabel
- warning
- private DataSet getCurrentDataSet()