|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.widgets.PopupActionManager
public class PopupActionManager
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 |
---|
public static void registerAsListener(UICTextField textField)
public static void registerAsListener(JTextComponent textField)
public void processMouseEvent(MouseEvent event, int button)
public static void show(MouseEvent me)
public void undoPressedSlot() throws CannotUndoException
CannotUndoException
public void redoPressedSlot() throws CannotRedoException
CannotRedoException
public void clearPressedSlot() throws BadLocationException
BadLocationException
public void cutPressedSlot()
public void copyPressedSlot()
public void pastePressedSlot()
public void selectAllPressedSlot()
public TranslationInterface translate()
Translate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |