gate.gui
Class MainFrame.AlertAction
java.lang.Object
javax.swing.AbstractAction
gate.gui.MainFrame.AlertAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
- MainFrame
class MainFrame.AlertAction
- extends AbstractAction
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
timer
private Timer timer
error
Throwable error
message
String message
actions
Action[] actions
MainFrame.AlertAction
public MainFrame.AlertAction(Throwable error,
String message,
Action[] actions)
- Action for the alert button that shows a message in a popup.
A detailed dialog can be shown when the button or popup are clicked.
Log the message and error as soon as the action is created.
- Parameters:
error - can be null in case of info message.message - text to be displayed in a popup and dialogueactions - actions the user can choose in the dialogue
actionPerformed
public void actionPerformed(ActionEvent e)