Detailed Description

A html element which is created when using . They are tracked in this way so their content can be replaced if the language of the UI changes.

Inheritance diagram for PowerUI.VariableElement:
PowerUI.HtmlSpanElement Dom.ILangNode PowerUI.HtmlElement

Public Member Functions

void SetVariableName (string name)
 Changes the name of the variable. Thats the text used . More...
 
string GetArgument (int id)
 Reads the runtime argument at the given index. Used with &arg.X; where x starts from 0. The arguments themselves originate from e.g. &variableName(arg0,arg1,arg2..); More...
 
void SetArguments (string[] arguments)
 Sets the runtime argument set. See the Arguments variable. More...
 
override void ToString (System.Text.StringBuilder builder)
 
void LoadNow ()
 Loads the content of this variable element by looking up the content for the variables name. More...
 
override string ToString ()
 Gets this elements content as text. More...
 

Package Functions

override void ResetVariable (string name)
 Reloads the content of this variable if it's name matches the given one. More...
 
override void ResetAllVariables ()
 Reloads the content of this variable element. This should be used when the language of the UI changes. More...
 

Package Attributes

string Name
 The used. More...
 
string[] Arguments
 The set of arguments that can be passed into a variable at runtime. &Name(a0,a1,a2..); Arguments are accessed simply with &arg.X; More...
 

Properties

override string textContent [get, set]
 The internal text content of the lang node. More...
 
override string innerHTML [get, set]
 Gets or sets the innerHTML of this element. More...
 

Additional Inherited Members

- Public Attributes inherited from PowerUI.HtmlElement
bool IsFocusable
 True if this tag is focusable. More...
 
ElementStyle Style
 Internal use only. The style of this element. Use PowerUI.HtmlElement.style instead. More...
 
NodeList KidsToRender
 Internal use only. Children being rendered are set here. This allows multiple threads to access the DOM. More...
 
object Data
 A custom data object for whatever you would like to pass through for e.g. callbacks. More...
 
- Protected Member Functions inherited from PowerUI.HtmlElement
override bool HandleLocalEvent (Dom.Event e, bool bubblePhase)
 Runs the given function held in the named attribute (e.g. onkeydown) and checks if that function blocked the event. In the case of a blocked event, no default action should occur. Note that this is called by dispatchEvent and the attribute functions run before handlers do (same as Firefox). More...
 
- Static Package Attributes inherited from PowerUI.HtmlElement
static Node CachedFullscreenParent
 The original FS parent node. More...
 
static string CachedFullscreenStyle
 The original style of the FS element. More...
 

Member Function Documentation

string PowerUI.VariableElement.GetArgument ( int  id)
inline

Reads the runtime argument at the given index. Used with &arg.X; where x starts from 0. The arguments themselves originate from e.g. &variableName(arg0,arg1,arg2..);

void PowerUI.VariableElement.LoadNow ( )
inline

Loads the content of this variable element by looking up the content for the variables name.

Implements Dom.ILangNode.

override void PowerUI.VariableElement.ResetAllVariables ( )
inlinepackage

Reloads the content of this variable element. This should be used when the language of the UI changes.

override void PowerUI.VariableElement.ResetVariable ( string  name)
inlinepackage

Reloads the content of this variable if it's name matches the given one.

Parameters
nameThe name of the variable to reset.
void PowerUI.VariableElement.SetArguments ( string[]  arguments)
inline

Sets the runtime argument set. See the Arguments variable.

Parameters
argumentsThe new arguments.

Implements Dom.ILangNode.

void PowerUI.VariableElement.SetVariableName ( string  name)
inline

Changes the name of the variable. Thats the text used .

Implements Dom.ILangNode.

override void PowerUI.VariableElement.ToString ( System.Text.StringBuilder  builder)
inline
override string PowerUI.VariableElement.ToString ( )
inline

Gets this elements content as text.

Returns
A text string of the elements content.

Member Data Documentation

string [] PowerUI.VariableElement.Arguments
package

The set of arguments that can be passed into a variable at runtime. &Name(a0,a1,a2..); Arguments are accessed simply with &arg.X;

string PowerUI.VariableElement.Name
package

The used.

Property Documentation

override string PowerUI.VariableElement.innerHTML
getset

Gets or sets the innerHTML of this element.

override string PowerUI.VariableElement.textContent
getset

The internal text content of the lang node.