Class UrlColumnConfigurator.LocationColumnActivator
java.lang.Object
uk.ac.starlink.topcat.activate.UrlColumnConfigurator.LocationColumnActivator
- All Implemented Interfaces:
Activator
- Direct Known Subclasses:
UrlColumnConfigurator.UrlColumnActivator
- Enclosing class:
UrlColumnConfigurator
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLocationColumnActivator(uk.ac.starlink.table.ColumnData cdata, boolean invokeOnEdt) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract OutcomeactivateLocation(String loc, long lrow) Consumes the location string corresponding to the row to perform the activation action.activateRow(long lrow, ActivationMeta meta) Invokes some kind of action on the table row indicated by a given index.booleanIndicates how this activator'sactivateRowmethod should be executed.
-
Constructor Details
-
LocationColumnActivator
protected LocationColumnActivator(uk.ac.starlink.table.ColumnData cdata, boolean invokeOnEdt) Constructor.- Parameters:
cdata- column data containing location stringsinvokeOnEdt- whether to invoke on the EDT
-
-
Method Details
-
activateRow
Description copied from interface:ActivatorInvokes some kind of action on the table row indicated by a given index.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.
- Specified by:
activateRowin interfaceActivator- Parameters:
lrow- row indexmeta- additional activation metadata if available; may be null if no special information is available- Returns:
- outcome
-
invokeOnEdt
public boolean invokeOnEdt()Description copied from interface:ActivatorIndicates how this activator'sactivateRowmethod 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.- Specified by:
invokeOnEdtin interfaceActivator- Returns:
- true if it is a good idea to invoke this activator on the EDT
-
activateLocation
-