Class f_service

Object
  extended by f_object
      extended by f_service
All Implemented Interfaces:
fa_commands, fa_eventTarget, fa_filterProperties, fa_serializable

public class f_service
extends f_object
implements fa_filterProperties, fa_eventTarget, fa_commands, fa_serializable

Service class.


Field Summary
static Number ERRORED_STATE
           
static Number INIT_STATE
           
static Number LOADED_STATE
           
static Number LOADING_STATE
           
static Number REQUESTING_STATE
           
 
Method Summary
 String f_asyncCall(Function resultCallback, any parameter, f_progressMonitor progressMonitor, Number contentSizePercent)
           
 HTMLElement f_findComponent(String id)
           
 HTMLElement f_findSiblingComponent(String id)
           
 Number f_getRequestState(String requestId)
           
 String f_getServiceId()
           
 any f_syncCall(any parameter, f_progressMonitor progressMonitor)
           
 
Methods inherited from class fa_filterProperties
f_getFilterProperties, f_setFilterProperties, f_setFilterProperty
 
Methods inherited from class fa_eventTarget
f_addEventListener, f_fireEvent, f_removeEventListener
 
Methods inherited from class f_object
f_getClass, toString
 
Methods inherited from class Object
toString
 

Field Detail

LOADED_STATE

public static final Number LOADED_STATE

ERRORED_STATE

public static final Number ERRORED_STATE

INIT_STATE

public static final Number INIT_STATE

LOADING_STATE

public static final Number LOADING_STATE

REQUESTING_STATE

public static final Number REQUESTING_STATE
Method Detail

f_asyncCall

public String f_asyncCall(Function resultCallback,
                          any parameter,
                          f_progressMonitor progressMonitor,
                          Number contentSizePercent)
Parameters:
resultCallback - Callback which will be called, when the result has been received.
parameter - Parameters of the request.
progressMonitor - Progress monitor associated to the call.
contentSizePercent -
Returns:
Request identifier.

f_findSiblingComponent

public HTMLElement f_findSiblingComponent(String id)
Parameters:
id - Identifier of component.

f_findComponent

public HTMLElement f_findComponent(String id)
Parameters:
id - Identifier of component.

f_getRequestState

public Number f_getRequestState(String requestId)
Parameters:
requestId - Request identifier. (returned by f_asyncCall() )
Returns:
State of the request, or -1 if the request is unknown !
See Also:
#f_asyncCall

f_syncCall

public any f_syncCall(any parameter,
                      f_progressMonitor progressMonitor)
Parameters:
parameter - Parameters of the request. (Supported types: String, object, and number)
progressMonitor - Progress monitor associated to the call.
Returns:
Result of request.

f_getServiceId

public String f_getServiceId()