org.scilab.modules.types
Class ScilabVariablesRefresh

java.lang.Object
  extended by org.scilab.modules.types.ScilabVariablesRefresh
All Implemented Interfaces:
ScilabVariablesHandler

public final class ScilabVariablesRefresh
extends java.lang.Object
implements ScilabVariablesHandler

Class to handle the refresh


Method Summary
static void addScilabVariablesListener(ScilabVariablesListener listener)
          Add a new ScilabVariablesListener
static java.lang.String[] getAllListenedVariables()
          Get all the listened variables from the different listeners This function is used from C++ to retrieve exactly what is needed and should not be used from Java.
static int getScilabVariablesRefreshId()
          Get the id to use to send data from C/C++ to this Java handler
 void handle(ScilabType var)
          Handle a Scilab variable
static void removeScilabVariablesListener(ScilabVariablesListener listener)
          Remove a ScilabVariablesListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

handle

public void handle(ScilabType var)
Handle a Scilab variable

Specified by:
handle in interface ScilabVariablesHandler
Parameters:
var - the variable

getScilabVariablesRefreshId

public static final int getScilabVariablesRefreshId()
Get the id to use to send data from C/C++ to this Java handler

Returns:
the handler id

getAllListenedVariables

public static final java.lang.String[] getAllListenedVariables()
Get all the listened variables from the different listeners This function is used from C++ to retrieve exactly what is needed and should not be used from Java.

Returns:
all the listened variables

addScilabVariablesListener

public static final void addScilabVariablesListener(ScilabVariablesListener listener)
Add a new ScilabVariablesListener

Parameters:
listener - the listener to add

removeScilabVariablesListener

public static final void removeScilabVariablesListener(ScilabVariablesListener listener)
Remove a ScilabVariablesListener

Parameters:
listener - the listener to remove