EAF 7.4 Implementation

org.enhydra.util.chiba
Class ScriptFacade

java.lang.Object
  extended by org.enhydra.util.chiba.ScriptFacade

public class ScriptFacade
extends java.lang.Object

AJAX Facade class to hide the full functionality from the web-client.

Author:
Slobodan Vujasinovic

Field Summary
static java.lang.String FLUX_ACTIVATE_EVENT
           
 
Constructor Summary
ScriptFacade()
          grabs the actual adapter from the session.
 
Method Summary
 org.w3c.dom.Element fetchProgress(java.lang.String id, java.lang.String filename)
          fetches the progress of a running upload.
 org.w3c.dom.Element fireAction(java.lang.String id)
          executes a trigger
 java.lang.String getInfo()
           
 org.w3c.dom.Element setRepeatIndex(java.lang.String id, java.lang.String position)
           
 org.w3c.dom.Element setXFormsValue(java.lang.String id, java.lang.String value)
          sets the value of a control in the processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLUX_ACTIVATE_EVENT

public static final java.lang.String FLUX_ACTIVATE_EVENT
See Also:
Constant Field Values
Constructor Detail

ScriptFacade

public ScriptFacade()
grabs the actual adapter from the session.

Method Detail

fireAction

public org.w3c.dom.Element fireAction(java.lang.String id)
                               throws java.lang.Exception
executes a trigger

Parameters:
id - the id of the trigger to execute
Returns:
the list of events that may result through this action
Throws:
FluxException
java.lang.Exception

setXFormsValue

public org.w3c.dom.Element setXFormsValue(java.lang.String id,
                                          java.lang.String value)
                                   throws java.lang.Exception
sets the value of a control in the processor.

Parameters:
id - the id of the control in the host document
value - the new value
Returns:
the list of events that may result through this action
Throws:
FluxException
java.lang.Exception

setRepeatIndex

public org.w3c.dom.Element setRepeatIndex(java.lang.String id,
                                          java.lang.String position)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

fetchProgress

public org.w3c.dom.Element fetchProgress(java.lang.String id,
                                         java.lang.String filename)
fetches the progress of a running upload.

Parameters:
id - id of the upload control in use
filename - filename for uploaded data
Returns:
a array containing two elements for evaluation in browser. First param is the upload control id and second will be the current progress of the upload.

getInfo

public java.lang.String getInfo()

EAF 7.4 Implementation