Name

baselistitem — a group of these are managed by a baselist

Synopsis

LZX: baselistitem
JavaScript: lz.baselistitem
Type: Class
Access: public
Topic: Components.Base Components
Declared in: lps/components/base/baselistitem.lzx

Description

See baselist for details.

A group of items that typically is used within a baselist.

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basevaluecomponent » baselistitem

Known Subclasses

Details

Properties (4)

selected
<attribute name="selected" value="false" />
public var selected;
Whether this item is selected. Our containing list will adopt the value of this component when it is selected.
_selectonevent
<attribute name="_selectonevent" type="string" value="onclick" />
private var _selectonevent : String;
This is the event that sets this item as selected with its parent( an extension of baselist ). The default is onclick, but it can be set to anything like onmousetrackup as in the combobox component.
_textdatapath
<attribute name="_textdatapath" value="null" />
private var _textdatapath;
_valuedatapath
<attribute name="_valuedatapath" value="null" />
private var _valuedatapath;

Methods (7)

dataBindAttribute()
<method name="dataBindAttribute" args="attr, path" />
private function dataBindAttribute(attr, path);
doClick()
<method name="doClick" />
private function doClick();
_doMousedown()
<method name="_doMousedown" />
private function _doMousedown();
when the user clicks on an item, the parent component needs to get the focus, so that the user may start navigating with the arrow keys after a click
setDatapath()
<method name="setDatapath" args="dp" />
private function setDatapath(dp);
setSelected()
<method name="setSelected" args="s" />
private function setSelected(s);
sets the selected attribute, called by the selection manager if this is within a baselist, this method is guaranteed to be called after all subviews are initialized
_setSelected()
<method name="_setSelected" args="s" />
protected function _setSelected(s);
this is a setter for the selected attribute it simply calls the parent's select method, which is responsible for calling setSelected If you want to set whether this view is selected, use setAttribute('selected', true)
setSelectOnEvent()
<method name="setSelectOnEvent" args="es" />
private function setSelectOnEvent(es);

Events (2)

onselect
<attribute name="onselect" />
public event onselect;
Event sent when the user makes a selection.
onselected
<attribute name="onselected" />
public event onselected;
Event sent when this item is selected.

LZX Synopsis

<class name="lz.baselistitem" extends=" lz.basevaluecomponent ">
  <attribute name=" selected " value="false" />
  <attribute name=" _selectonevent " type="string" value="onclick" />
  <attribute name=" _textdatapath " value="null" />
  <attribute name=" _valuedatapath " value="null" />
  <method name=" dataBindAttribute " args="attr, path" />
  <method name=" doClick " />
  <method name=" _doMousedown " />
  <event name=" onselect " />
  <event name=" onselected " />
  <method name=" setDatapath " args="dp" />
  <method name=" setSelected " args="s" />
  <method name=" _setSelected " args="s" />
  <method name=" setSelectOnEvent " args="es" />
</class>

JavaScript Synopsis

public lz.baselistitem extends  lz.basevaluecomponent  {
  public var selected ;
  private var _selectonevent  : String;
  private var _textdatapath ;
  private var _valuedatapath ;
  prototype private function dataBindAttribute (attr, path);
  prototype private function doClick ();
  prototype private function _doMousedown ();
  prototype public event onselect ;
  prototype public event onselected ;
  prototype private function setDatapath (dp);
  prototype private function setSelected (s);
  prototype protected function _setSelected (s);
  prototype private function setSelectOnEvent (es);
}