public class ChooseTrackVisibilityAction extends AbstractAction
Modifier and Type | Class and Description |
---|---|
private static class |
ChooseTrackVisibilityAction.LengthContentComparator
Comparator for TrackLength objects
|
private static class |
ChooseTrackVisibilityAction.TrackLength
Class to format a length according to SystemOfMesurement.
|
Modifier and Type | Field and Description |
---|---|
(package private) DateFilterPanel |
dateFilter |
private GpxLayer |
layer |
(package private) boolean |
noUpdates |
(package private) JTable |
table |
changeSupport, enabled
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 and Description |
---|
ChooseTrackVisibilityAction(GpxLayer layer)
Constructs a new
ChooseTrackVisibilityAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent arg0) |
private JTable |
buildTable(Object[][] content)
Builds an non-editable table whose 5th column will open a browser when double clicked.
|
private Object[][] |
buildTableContents()
gathers all available data for the tracks and returns them as array of arrays
in the expected column order
|
private void |
listenToSelectionChanges()
listens to selection changes in the table and redraws the map
|
private void |
selectVisibleTracksInTable()
selects all rows (=tracks) in the table that are currently visible on the layer
|
private void |
updateVisibilityFromTable() |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
DateFilterPanel dateFilter
boolean noUpdates
public ChooseTrackVisibilityAction(GpxLayer layer)
ChooseTrackVisibilityAction
.layer
- The associated GPX layerprivate Object[][] buildTableContents()
private JTable buildTable(Object[][] content)
private void selectVisibleTracksInTable()
private void listenToSelectionChanges()
private void updateVisibilityFromTable()
public void actionPerformed(ActionEvent arg0)