Detailed Description

Represents code parsed and loaded from a script block.

Inheritance diagram for PowerUI.UICode:
Nitro.Script

Public Member Functions

virtual void OnWindowLoaded ()
 Always called when the script is ready to go. More...
 
virtual void Start ()
 Always called when the script is ready to go. More...
 
virtual void OnWindowClose ()
 Can be called when the script is finished with. More...
 
bool ContainsMethod (string methodName)
 Returns true if this code contains the method with the given name. More...
 
bool ContainsField (string fieldName)
 Returns true if this code contains the field with the given name. More...
 
void alert (object value)
 
void eval (string text)
 
string escapeHTML (string html)
 Escapes the given string, essentially making any HTML it contains literal. More...
 
int parseInt (string text)
 Parses the given text into a number. More...
 
UITimer setInterval (DynamicMethod< Nitro.Void > method, int ms)
 
UITimer setTimeout (DynamicMethod< Nitro.Void > method, int ms)
 
void clearInterval (UITimer timer)
 
- Public Member Functions inherited from Nitro.Script
object Run (string functionName, params object[] args)
 Runs the named method that is contained within this script. More...
 
object Run (string functionName, Type[] typeSet, params object[] args)
 Runs the named overloaded method that is contained within this script. More...
 
virtual void OnScriptReady ()
 Any code found outside of functions is placed into this method. It's done like this so when the code is instanced it can have properties set then have this called. More...
 
object RunLiteral (string functionName, object[] args)
 Runs the named method that is contained within this script. More...
 
object RunLiteral (string functionName, Type[] typeSet, object[] args)
 Runs the named overloaded method that is contained within this script. More...
 
object RunLiteral (string functionName, object[] args, bool optional)
 Runs the named overloaded method that is contained within this script. More...
 
object RunLiteral (string functionName, Type[] typeSet, object[] args, bool optional)
 Runs the named overloaded method that is contained within this script. More...
 

Public Attributes

HtmlElement This
 The current element that script is relative to. Accessible in nitro as 'this'. More...
 
Window window
 The window that contains the document. More...
 
HtmlDocument document
 The document the script belongs to. Accessible in nitro as 'document'. More...
 
NitroCode BaseScript
 The script this was compiled from. More...
 

Additional Inherited Members

- Properties inherited from Nitro.Script
object this[string property] [get, set]
 Gets or sets a field with the given name. More...
 

Member Function Documentation

void PowerUI.UICode.alert ( object  value)
inline
void PowerUI.UICode.clearInterval ( UITimer  timer)
inline
bool PowerUI.UICode.ContainsField ( string  fieldName)
inline

Returns true if this code contains the field with the given name.

bool PowerUI.UICode.ContainsMethod ( string  methodName)
inline

Returns true if this code contains the method with the given name.

string PowerUI.UICode.escapeHTML ( string  html)
inline

Escapes the given string, essentially making any HTML it contains literal.

void PowerUI.UICode.eval ( string  text)
inline
virtual void PowerUI.UICode.OnWindowClose ( )
inlinevirtual

Can be called when the script is finished with.

virtual void PowerUI.UICode.OnWindowLoaded ( )
inlinevirtual

Always called when the script is ready to go.

int PowerUI.UICode.parseInt ( string  text)
inline

Parses the given text into a number.

UITimer PowerUI.UICode.setInterval ( DynamicMethod< Nitro.Void method,
int  ms 
)
inline
UITimer PowerUI.UICode.setTimeout ( DynamicMethod< Nitro.Void method,
int  ms 
)
inline
virtual void PowerUI.UICode.Start ( )
inlinevirtual

Always called when the script is ready to go.

Member Data Documentation

NitroCode PowerUI.UICode.BaseScript

The script this was compiled from.

HtmlDocument PowerUI.UICode.document

The document the script belongs to. Accessible in nitro as 'document'.

HtmlElement PowerUI.UICode.This

The current element that script is relative to. Accessible in nitro as 'this'.

Window PowerUI.UICode.window

The window that contains the document.