gate.gui
Class MainFrame.AlertAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by gate.gui.MainFrame.AlertAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
MainFrame

 class MainFrame.AlertAction
extends AbstractAction


Field Summary
(package private)  Action[] actions
           
(package private)  Throwable error
           
(package private)  String message
           
private  Timer timer
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
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
 
Constructor Summary
MainFrame.AlertAction(Throwable error, String message, Action[] actions)
          Action for the alert button that shows a message in a popup.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timer

private Timer timer

error

Throwable error

message

String message

actions

Action[] actions
Constructor Detail

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 dialogue
actions - actions the user can choose in the dialogue
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)