Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gjt.sp.jedit
Class EditAction.Wrapper  view EditAction.Wrapper download EditAction.Wrapper.java

java.lang.Object
  extended byorg.gjt.sp.jedit.EditAction.Wrapper
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Enclosing class:
EditAction

public static class EditAction.Wrapper
extends java.lang.Object
implements java.awt.event.ActionListener

'Wrap' EditActions in this class to turn them into AWT ActionListeners, that can be attached to buttons, menu items, etc.


Field Summary
private  java.lang.String actionName
           
private  ActionContext context
           
 
Constructor Summary
EditAction.Wrapper(ActionContext context, java.lang.String actionName)
          Creates a new action listener wrapper.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Called when the user selects this action from a menu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

private ActionContext context

actionName

private java.lang.String actionName
Constructor Detail

EditAction.Wrapper

public EditAction.Wrapper(ActionContext context,
                          java.lang.String actionName)
Creates a new action listener wrapper.

Since:
jEdit 4.2pre1
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Called when the user selects this action from a menu. It passes the action through the InputHandler.invokeAction(EditAction)>InputHandler.invokeAction(EditAction) 55 method, which performs any recording or repeating.

Specified by:
actionPerformed in interface java.awt.event.ActionListener