java.lang.Object |
↳ |
javax.swing.AbstractAction |
|
↳ |
org.mbari.awt.event.ActionAdapter |
|
|
↳ |
vars.annotation.ui.actions.NewObservationAction |
Class Overview
Action to add a new VideoFrame and a 'nearly' empty Observation
to the ObservationTable. Persistence is NOT done in the action but
is handled by the table.
Summary
[Expand]
Inherited Constants |
From interface
javax.swing.Action
String |
ACCELERATOR_KEY |
|
String |
ACTION_COMMAND_KEY |
|
String |
DEFAULT |
|
String |
DISPLAYED_MNEMONIC_INDEX_KEY |
|
String |
LARGE_ICON_KEY |
|
String |
LONG_DESCRIPTION |
|
String |
MNEMONIC_KEY |
|
String |
NAME |
|
String |
SELECTED_KEY |
|
String |
SHORT_DESCRIPTION |
|
String |
SMALL_ICON |
|
|
[Expand]
Inherited Fields |
From class
javax.swing.AbstractAction
protected
SwingPropertyChangeSupport |
changeSupport |
|
protected
boolean |
enabled |
|
|
Public Methods |
void
|
doAction()
Initiates the action.
|
Observation
|
doAction(String conceptName)
Inserts a new Observation using the supplied conceptName.
|
Observation
|
doAction(String conceptName, String timecode)
Inserts a new Observation using the supplied conceptName and timecode.
|
[Expand]
Inherited Methods |
From class
org.mbari.awt.event.ActionAdapter
final
void
|
actionPerformed(ActionEvent arg0)
|
abstract
void
|
doAction()
|
|
From class
javax.swing.AbstractAction
synchronized
void
|
addPropertyChangeListener(PropertyChangeListener arg0)
|
Object
|
clone()
|
void
|
firePropertyChange(String arg0, Object arg1, Object arg2)
|
Object[]
|
getKeys()
|
synchronized
PropertyChangeListener[]
|
getPropertyChangeListeners()
|
Object
|
getValue(String arg0)
|
boolean
|
isEnabled()
|
void
|
putValue(String arg0, Object arg1)
|
synchronized
void
|
removePropertyChangeListener(PropertyChangeListener arg0)
|
void
|
setEnabled(boolean arg0)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0)
|
final
void
|
wait(long arg0, int arg1)
|
|
From interface
java.awt.event.ActionListener
abstract
void
|
actionPerformed(ActionEvent arg0)
|
|
From interface
javax.swing.Action
abstract
void
|
addPropertyChangeListener(PropertyChangeListener arg0)
|
abstract
Object
|
getValue(String arg0)
|
abstract
boolean
|
isEnabled()
|
abstract
void
|
putValue(String arg0, Object arg1)
|
abstract
void
|
removePropertyChangeListener(PropertyChangeListener arg0)
|
abstract
void
|
setEnabled(boolean arg0)
|
|
From interface
org.mbari.awt.event.IAction
|
Public Constructors
public
NewObservationAction
(ToolBelt toolBelt)
Constructor for the NewVideoFrameAction object
Public Methods
public
void
doAction
()
Initiates the action. using the DEFAULT_CONCEPTNAME
See Also
- org.mbari.awt.event.IAction
public
Observation
doAction
(String conceptName)
Inserts a new Observation using the supplied conceptName. The new
observation will be attached to a new VideoFrame if no matching time
code was found. Otherwise a pre-existing videoFrame will be used.
NOTE: The insertion and naming needs to be done in one step. Originally, the
code was inserting an observation o f'object' then renaming it.
However, during certain observations the row would not get moved to the
newly inserted observation and we would end up renaming the wrong object.
Returns
- The observation created. null if none was created.
public
Observation
doAction
(String conceptName, String timecode)
Inserts a new Observation using the supplied conceptName and timecode. The new
observation will be attached to a new VideoFrame if no matching time
code was found. Otherwise a pre-existing videoFrame will be used.
Parameters
timecode
| A timecode in the format of HH:MM:SS:FF |
Returns
- The observation created. null if none was created.