de.jsystems.framework.common.actions
Class PasteAction
java.lang.Object
de.jsystems.framework.common.action.AbstractAction
de.jsystems.framework.common.action.awt.ActionAction
de.jsystems.framework.common.actions.PasteAction
- All Implemented Interfaces:
- ActionListener, EventListener
- public class PasteAction
- extends ActionAction
Die Action gehoert entweder zum BusinessMenu
oder zur BusinessToolbar
. Aufgerufen wird
die Action, wenn der zugehoerige Menuepunkt oder Toolbarbutton angewaehlt wird.
Die Action ruft dann im Controller
die
Methode Controller.paste()
auf.
Damit koennte zum Beispile ein makierter Text aus der Zwischenablage eingefuegt
werden. Zu beachten ist hier aber, das SWING-Controls ihre eigene PasteAction
haben, die genau das macht. Das ist also ein SWING-spezifisches verhalten.
Diese Action wird nur benoetigt, wenn eigene Objekte aus der Zwischenablage
eingefuegt werden sollen.
- Version:
- 1.0
Copyright by Jens Homm 2000 - 2004
- Author:
- Jens Homm JSYSTEMS
Constructor Summary |
PasteAction()
Erzeugt eine neue PasteAction. |
Methods inherited from class de.jsystems.framework.common.action.AbstractAction |
addControl, disable, enable, exceptionInAction, getController, getControls, getException, getView, hasException, initialize, isEnabled, removeAll, removeControl, setException |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasteAction
public PasteAction()
- Erzeugt eine neue PasteAction.
doActionPerformed
public void doActionPerformed(ActionEvent ae)
throws Exception
- Ruft im Controller die Methode
Controller.paste()
auf.
- Overrides:
doActionPerformed
in class ActionAction
- Parameters:
ae
- Das ausgeloeste ActionEvent.
- Throws:
Exception
- wenn in der Action ein Fehler auftritt.