org.rosuda.deducer.widgets.event
Class RListener

java.lang.Object
  extended by org.rosuda.deducer.widgets.event.RListener
Direct Known Subclasses:
RActionListener, RCaretListener, RChangeListener, RComponentListener, RDocumentListener, RFocusListener, RKeyListener, RListSelectionListener, RMouseListener, RMouseMotionListener, RMouseWheelListener, RWindowListener

public abstract class RListener
extends java.lang.Object


Constructor Summary
RListener()
           
 
Method Summary
protected  void eventOccured(java.lang.Object event, java.lang.String type)
           
 REXPReference getFunction()
          get callback function
 void setFunction(REXPReference function)
          Set callback function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RListener

public RListener()
Method Detail

getFunction

public REXPReference getFunction()
get callback function

Returns:

setFunction

public void setFunction(REXPReference function)
Set callback function

Parameters:
function - the function to call upon action. should take two parameters. the first is a string representing the type of event, the second is a java object representing the event

eventOccured

protected void eventOccured(java.lang.Object event,
                            java.lang.String type)