Name

simpledefaultlist

Synopsis

LZX: simpledefaultlist
JavaScript: simpledefaultlist
Type: Class
Access: public
Topic: Incubator.Components
Declared in: lps/components/incubator/simpledefaultlist.lzx

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

Known Subclasses

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" />
public var defaultitem;
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();
keywords @private
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();
Selects the default item
setDefault()
<method name="setDefault" args="item" />
public function setDefault(item : view);
Sets default item
setDefaultByData()
<method name="setDefaultByData" args="item" />
public function setDefaultByData(item : LzDataElement);
Sets default item
toXML()
<method name="toXML" />
public function toXML();
Returns an XML representation of the data in the list format:

LZX Synopsis

<class name="simpledefaultlist" extends="">
  <attribute name=" autoselectdefault " value="true" />
  <attribute name=" defaultitem " value="null" />
  <method name=" findDefault " />
  <method name=" handleDataChange " />
  <method name=" modify " args="node" />
  <method name=" rollback " />
  <method name=" selectByData " args="data" />
  <method name=" selectDefault " />
  <method name=" setDefault " args="item" />
  <method name=" setDefaultByData " args="item" />
  <method name=" toXML " />
</class>

JavaScript Synopsis

public simpledefaultlist extends  {
  public var autoselectdefault ;
  public var defaultitem ;
  prototype public function findDefault ();
  prototype public function handleDataChange ();
  prototype public function modify (node);
  prototype public function rollback ();
  prototype public function selectByData (data : LzDataElement);
  prototype public function selectDefault ();
  prototype public function setDefault (item : view);
  prototype public function setDefaultByData (item : LzDataElement);
  prototype public function toXML ();
}