uic.widgets
Class PopupActionManager

java.lang.Object
  extended by uic.widgets.PopupActionManager

public class PopupActionManager
extends Object

This class is a singleton that creates a set of Action objects and manages the popup. All the actions and keyboard shortcuts for undo/redo and other actions that are accessable via the pupup menu are registered here and are managed by this class. The idea is that having only one manager (since its a singleton) will limit memory usage and speed things up like showing the popup because no construction has to be done.


Method Summary
 void clearPressedSlot()
           
 void copyPressedSlot()
           
 void cutPressedSlot()
           
 void pastePressedSlot()
           
 void processMouseEvent(MouseEvent event, int button)
           
 void redoPressedSlot()
           
static void registerAsListener(JTextComponent textField)
          Add undo and redo support to the argument textField via keyboard shortcuts.
static void registerAsListener(UICTextField textField)
          Add undo and redo support to the argument textField via keyboard shortcuts.
 void selectAllPressedSlot()
           
static void show(MouseEvent me)
          Show the popup menu based on the coordinates from the mouseEvent.
 TranslationInterface translate()
          The translator that translates texts into foreign languages.
 void undoPressedSlot()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerAsListener

public static void registerAsListener(UICTextField textField)
Add undo and redo support to the argument textField via keyboard shortcuts.


registerAsListener

public static void registerAsListener(JTextComponent textField)
Add undo and redo support to the argument textField via keyboard shortcuts.


processMouseEvent

public void processMouseEvent(MouseEvent event,
                              int button)

show

public static void show(MouseEvent me)
Show the popup menu based on the coordinates from the mouseEvent.


undoPressedSlot

public void undoPressedSlot()
                     throws CannotUndoException
Throws:
CannotUndoException

redoPressedSlot

public void redoPressedSlot()
                     throws CannotRedoException
Throws:
CannotRedoException

clearPressedSlot

public void clearPressedSlot()
                      throws BadLocationException
Throws:
BadLocationException

cutPressedSlot

public void cutPressedSlot()

copyPressedSlot

public void copyPressedSlot()

pastePressedSlot

public void pastePressedSlot()

selectAllPressedSlot

public void selectAllPressedSlot()

translate

public TranslationInterface translate()
The translator that translates texts into foreign languages.

See Also:
Translate


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence