org.openstreetmap.josm.gui.layer
Class GpxLayer.ChooseTrackVisibilityAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.openstreetmap.josm.gui.layer.GpxLayer.ChooseTrackVisibilityAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
GpxLayer

public class GpxLayer.ChooseTrackVisibilityAction
extends javax.swing.AbstractAction

allows the user to choose which of the downloaded tracks should be displayed. they can be chosen from the gpx layer context menu.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
GpxLayer.ChooseTrackVisibilityAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
           
private  javax.swing.JTable buildTable(java.lang.String[] headers, java.lang.Object[][] content)
          Builds an non-editable table whose 5th column will open a browser when double clicked.
private  java.lang.Object[][] buildTableContents()
          gathers all available data for the tracks and returns them as array of arrays in the expected column order
private  void listenToSelectionChanges(javax.swing.JTable table)
          listens to selection changes in the table and redraws the map
private  void selectVisibleTracksInTable(javax.swing.JTable table)
          selects all rows (=tracks) in the table that are currently visible
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GpxLayer.ChooseTrackVisibilityAction

public GpxLayer.ChooseTrackVisibilityAction()
Method Detail

buildTableContents

private java.lang.Object[][] buildTableContents()
gathers all available data for the tracks and returns them as array of arrays in the expected column order


buildTable

private javax.swing.JTable buildTable(java.lang.String[] headers,
                                      java.lang.Object[][] content)
Builds an non-editable table whose 5th column will open a browser when double clicked. The table will fill its parent.


selectVisibleTracksInTable

private void selectVisibleTracksInTable(javax.swing.JTable table)
selects all rows (=tracks) in the table that are currently visible


listenToSelectionChanges

private void listenToSelectionChanges(javax.swing.JTable table)
listens to selection changes in the table and redraws the map


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)


JOSM