public class ActionView extends javax.swing.AbstractAction implements TabListener, Resetable
ANYTAB
Constructor and Description |
---|
ActionView(ComponentRepository componentRepository,
SwingConfig swingConfig) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Opens a
FileView
dialog if the current form is not null. |
boolean |
isReady()
Returns true if this Action is ready to show a file with findings.
|
void |
refresh()
Refreshes the enabled/disabled status.
|
void |
reset()
Disables this action.
|
void |
setEnabled(boolean enabled)
Overwrites the super implementation to keep the component state
aligned with the state of the environment.
|
void |
setSelectedFile(TargetFile file)
Sets the File that should be displayd by this Action.
|
void |
tabSelected(TabEvent event)
Called when the components tab is selected.
|
void |
tabUnselected(TabEvent event)
Called when the components tab becomes unselected.
|
public ActionView(ComponentRepository componentRepository, SwingConfig swingConfig)
public void setEnabled(boolean enabled)
setEnabled
in interface javax.swing.Action
setEnabled
in class javax.swing.AbstractAction
public void setSelectedFile(TargetFile file)
file
- to be displayed or null for nonepublic void refresh()
public void reset()
public void actionPerformed(java.awt.event.ActionEvent e)
FileView
dialog if the current form is not null.actionPerformed
in interface java.awt.event.ActionListener
public boolean isReady()
public void tabSelected(TabEvent event)
tabSelected
in interface TabListener
event
- related eventpublic void tabUnselected(TabEvent event)
tabUnselected
in interface TabListener
event
- related event