|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.topcat.activate.ActivationEntry
public class ActivationEntry
Manages the GUI and behaviour for one entry in the list of activation options displayed in the ActivationWindow.
Constructor Summary | |
---|---|
ActivationEntry(ActivationType atype,
TopcatModelInfo tinfo)
Constructor. |
Method Summary | |
---|---|
void |
activateRowAsync(long lrow,
ActivationMeta meta)
Invokes the currently configured activation action for this entry, scheduling it on an appropriate thread and directing the output to a suitable destination for display. |
void |
activateRowSync(Activator activator,
long lrow,
ActivationMeta meta)
Invokes the currently configured activation action for this entry, returning only when it has completed. |
ActivatorConfigurator |
getConfigurator()
Returns the GUI configuration component associated with this entry. |
JComponent |
getLogPanel()
Returns the GUI component that displays the results of activation actions associated with this entry. |
ActivationType |
getType()
Returns the activation type managed by this entry. |
boolean |
isBlocked()
Indicates whether this entry is considered a potential security risk. |
void |
setBlocked(boolean isBlocked)
Sets whether this entry is considered a potential security risk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActivationEntry(ActivationType atype, TopcatModelInfo tinfo)
atype
- activation typetinfo
- information about TopcatModel for which this entry
will workMethod Detail |
---|
public ActivationType getType()
public ActivatorConfigurator getConfigurator()
public JComponent getLogPanel()
The returned component should manage its own scrolling if required; that is, it will not be wrapped in a JScrollPane.
public boolean isBlocked()
public void setBlocked(boolean isBlocked)
isBlocked
- blocking flagpublic void activateRowAsync(long lrow, ActivationMeta meta)
This method should be called on the EDT. It should return in a short amount of time.
lrow
- row index to activatemeta
- activation metadatapublic void activateRowSync(Activator activator, long lrow, ActivationMeta meta)
This method should not be called on the EDT. It may take some time to execute.
activator
- activatorlrow
- row index to activatemeta
- activation metadata
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |