Description
A list class that handles a default value.
Input and output for the list is defined to be in this format:
<list>
<item></item>
<item></item>
</list>
Currently only works with dataoption="lazy" or "pooling"
Superclass Chain
??? » simpledefaultlist
Details
Properties (2)
-
autoselectdefault
-
<attribute name="autoselectdefault" value="true" />
public var autoselectdefault;
Set to true if the default item should be selected whenever
data is received
-
defaultitem
-
<attribute name="defaultitem" value="null" />
LzDataElement of the default node
null means the list has no default
Methods (9)
-
findDefault()
-
<method name="findDefault" />
public function findDefault();
Searches through the data to find a default item.
Called when data is read into the list
@returns: lzDataElement default: dataelement for default
-
handleDataChange()
-
<method name="handleDataChange" />
public function handleDataChange();
-
modify()
-
<method name="modify" args="node" />
public function modify(node);
Should be called when an item has been modified.
-
rollback()
-
<method name="rollback" />
public function rollback();
-
selectByData()
-
<method name="selectByData" args="data" />
public function selectByData(data : LzDataElement);
Selects an item based on a dataelement
-
selectDefault()
-
<method name="selectDefault" />
public function selectDefault();
-
setDefault()
-
<method name="setDefault" args="item" />
public function setDefault(item : view);
-
setDefaultByData()
-
<method name="setDefaultByData" args="item" />
public function setDefaultByData(item : LzDataElement);
-
toXML()
-
Returns an XML representation of the data in the list
format:
LZX Synopsis
<class name="
simpledefaultlist" extends="">
<method name="
modify
" args="
node" />
<method name="
toXML
" />
</class>
JavaScript Synopsis
public
simpledefaultlist extends {
prototype public function
modify
(
node);
prototype public function
selectByData
(
data : LzDataElement);
prototype public function
setDefault
(
item : view);
prototype public function
toXML
();
}