Class UIFORM

Name

UIFORM  --  Class for manipulate form in XFL format. This format is described is section XFL forms.

Synopsis

 UIForm(<fileName>,<parent>)	--> UIForm object
 
 
 
 
 
 

Description

Class UIForm

Attributes

<className> - Class name. Value should be "UIForm".
<parent> - Window object. Parent window.
<fileName> - String. Form file name.
<root> - XMLTag object. Root element of form.
<widgets> - Associated array. Array of named widgets.
<names> - Array. Array of widget names.
<actions> - Array. Array of form actions.
<src> - Object. Object of class htmlParser.
<locale> - Associated array. Array of localization strings.

Methods

ACTIONHANDLER Run actions rule.
CREATEWIDGET Create widget from the tag.
GETPROPERTYVALUE Get the property from the widget.
I18N Returns localized string.
PARSE Parse htmlParser object. This method is internal and called from methods parseFile() or parseString().
PARSEFILE Parse form from file.
PARSESTRING Parse form from string.
SETACTION Set action described in tag <rule>.
SETPREACTION Set pre-action described in form header and run it.
SETPROPERTY Set widget property described in given tag.
SUBACTIONHANDLER Run one action.
UIFORM Constructor. Init form object.

Method UIFORM:ACTIONHANDLER()

 actionHandler(<id>,[<addVal>])

Method UIFORM:CREATEWIDGET()

 createWidget(<tag>,[<parent>])	--> <oWidget>

Method UIFORM:GETPROPERTYVALUE()

 getPropertyValue(<tagObj>)	--> <oVal>

Method UIFORM:I18N()

 i18n(<str>)	--> <sLocalString>

Method UIFORM:PARSE()

 parse()	--> <oWin>

Method UIFORM:PARSEFILE()

 parseFile()	--> <oWin>

Method UIFORM:PARSESTRING()

 parseString(<str>)	--> <oWin>

Method UIFORM:SETACTION()

 setAction(<tag>,[<lObj>])

Method UIFORM:SETPREACTION()

 setPreAction(<tag>,[<lObj>])

Method UIFORM:SETPROPERTY()

 setProperty(<tag>,[<obj>],[<value>])

Method UIFORM:SUBACTIONHANDLER()

 subActionHandler(<tag>,[<addVal>])

Method UIFORM:UIFORM()

 UIForm(<fileName>,<parent>)	--> UIForm object

Example:

 form := UIForm( fileName )
 win  := form:parseFile()
 if win == NIL
 CANCEL
 endif
 win:show()
 

Platforms

No dependies of platform.