java.lang.Objecttelosys.objects.TelosysEnv
Telosys environment object. This object stores the absolute URLs to access the server side with AJAX calls. It provides different kind of objects ( Screen, Service, Actions, ... )
Constructor Summary | |
TelosysEnv()
|
Method Summary | |
object |
getActions(object oScreen)
Creates and returns a new 'ScreenActions' object |
ScreenActions |
getActions(string sScreenName,
string sScreenId)
Creates and returns a new 'ScreenActions' object |
string |
getAjaxUrl()
Returns the absolute URL for Screen actions calls ( AJAX calls ) |
Browser |
getBrowser()
Returns the browser object |
ScreenActions |
getCurrentActions()
Returns the current 'Actions' instance Runtime error if not defined |
Screen |
getCurrentScreen()
Returns the current 'Screen' instance Runtime error if no current screen |
Keyboard |
getKeyboard()
Returns the keyboard object |
string |
getRootUrl()
Returns the absolute root URL of the WebApp |
Screen |
getScreen(string sScreenName,
string sContextId)
Creates and returns a new 'Screen' object for the given name and id |
string |
getScreenMapUrl(string sName,
string sType,
string sContextId,
string sContextType,
string sAction)
Return the absolute URL for screenmap calls with optional parameters. |
ScreenService |
getService(string sServiceName,
function callbackFunction)
Creates and returns a new 'ScreenService' object |
string |
toString_()
Returns all URLs (root, screen map, AJAX URLs) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TelosysEnv()
Method Detail |
public string getRootUrl()
public string getScreenMapUrl(string sName, string sType, string sContextId, string sContextType, string sAction)
sName
- Screen Map namesType
- Screen Map type ( "html", "xul" )sContextId
- Context idsContextType
- Context typesAction
- Context action ( "open", "use", "none" )
public string getAjaxUrl()
public Screen getCurrentScreen()
public ScreenActions getCurrentActions()
public Screen getScreen(string sScreenName, string sContextId)
sScreenName
- the screen namesContextId
- the Screen Context id
public ScreenService getService(string sServiceName, function callbackFunction)
sServiceName
- the service's namecallbackFunction
- Callback function to call to process the service response
public object getActions(object oScreen)
oScreen
- the Screen object
public ScreenActions getActions(string sScreenName, string sScreenId)
sScreenName
- the Screen namesScreenId
- the Screen id
public Keyboard getKeyboard()
public Browser getBrowser()
public string toString_()