protected abstract static class UrlColumnConfigurator.LocationColumnActivator extends Object implements Activator
Modifier | Constructor and Description |
---|---|
protected |
LocationColumnActivator(uk.ac.starlink.table.ColumnData cdata,
boolean invokeOnEdt)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Outcome |
activateLocation(String loc,
long lrow)
Consumes the location string corresponding to the row
to perform the activation action.
|
Outcome |
activateRow(long lrow,
ActivationMeta meta)
Invokes some kind of action on the table row indicated by a given index.
|
boolean |
invokeOnEdt()
Indicates how this activator's
activateRow method
should be executed. |
protected LocationColumnActivator(uk.ac.starlink.table.ColumnData cdata, boolean invokeOnEdt)
cdata
- column data containing location stringsinvokeOnEdt
- whether to invoke on the EDTpublic Outcome activateRow(long lrow, ActivationMeta meta)
Activator
Note that the row index supplied is that from the TopcatModel's DataModel, not the Apparent Table, so that remapping the row index according to any current row sorting has already been applied. Possibly that's not the way it should have been done, and it may be desirable to change that in future, but at time of writing that's the way it is.
activateRow
in interface Activator
lrow
- row indexmeta
- additional activation metadata if available;
may be null if no special information is availablepublic boolean invokeOnEdt()
Activator
activateRow
method
should be executed.
If true, it is intended to be invoked synchronously
on the Event Dispatch Thread.
If false, it is intended to be invoked asynchronously
on some less time-critical thread.
False should be returned if this activator may be time-consuming.invokeOnEdt
in interface Activator
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.