org.omegahat.R.Java
Class RManualFunctionActionListener

java.lang.Object
  |
  +--org.omegahat.Interfaces.NativeInterface.ForeignReference
        |
        +--org.omegahat.R.Java.RForeignReference
              |
              +--org.omegahat.R.Java.RManualFunctionActionListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, ForeignReferenceInt

public class RManualFunctionActionListener
extends RForeignReference
implements java.awt.event.ActionListener

A class that allows an R object (function or closure) to be used as an ActionListener for Swing buttons, etc. so that when an event happens on that component, the appropriate R function is invoked. This differs from the automatically generated versions (using the dynamic compiler via ForeignReferenceClassGenerator) in that


Fields inherited from class org.omegahat.Interfaces.NativeInterface.ForeignReference
evaluator, name
 
Constructor Summary
RManualFunctionActionListener(ForeignReference ref)
           
RManualFunctionActionListener(ForeignReference ref, OmegaInterfaceManager evaluator)
           
RManualFunctionActionListener(java.lang.String id)
           
RManualFunctionActionListener(java.lang.String id, OmegaInterfaceManager evaluator)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
           
 
Methods inherited from class org.omegahat.R.Java.RForeignReference
localEval, reval
 
Methods inherited from class org.omegahat.Interfaces.NativeInterface.ForeignReference
convertResult, eval, getEvaluator, getReferenceName, processArg, processArgs, removeTemporaryAnonymousReferences, setEvaluator, setReferenceName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RManualFunctionActionListener

public RManualFunctionActionListener(java.lang.String id)

RManualFunctionActionListener

public RManualFunctionActionListener(java.lang.String id,
                                     OmegaInterfaceManager evaluator)

RManualFunctionActionListener

public RManualFunctionActionListener(ForeignReference ref,
                                     OmegaInterfaceManager evaluator)

RManualFunctionActionListener

public RManualFunctionActionListener(ForeignReference ref)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Specified by:
actionPerformed in interface java.awt.event.ActionListener