Package uk.ac.starlink.topcat.activate
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
protected abstract static class UrlColumnConfigurator.LocationColumnActivator extends java.lang.Object implements Activator
Utility class providing a partial Activator implementation for UrlColumnConfigurators that want a location (file or URL) value.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLocationColumnActivator(uk.ac.starlink.table.ColumnData cdata, boolean invokeOnEdt)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract OutcomeactivateLocation(java.lang.String loc, long lrow)Consumes the location string corresponding to the row to perform the activation action.OutcomeactivateRow(long lrow, ActivationMeta meta)Invokes some kind of action on the table row indicated by a given index.booleaninvokeOnEdt()Indicates how this activator'sactivateRowmethod should be executed.
-
-
-
Method Detail
-
activateRow
public Outcome activateRow(long lrow, ActivationMeta meta)
Description copied from interface:ActivatorInvokes some kind of action on the table row indicated by a given index.- 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
protected abstract Outcome activateLocation(java.lang.String loc, long lrow)
Consumes the location string corresponding to the row to perform the activation action.- Parameters:
loc- location string, not null or blanklrow- row index- Returns:
- outcome
-
-