Name

basetabelement — Base class for the contents of a basetabslider.

Synopsis

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

Description

basetabelement is the base class for the contents of a basetabslider. The basetabelement is focusable if it is closed, and not focusable when it is open.

Basetabelements are children of basetabslider.

Superclass Chain

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

Known Subclasses

Details

Properties (11)

contentvisible
<attribute name="contentvisible" value="$once{! hideonclose}" />
public var contentvisible;
This is set to true when a basetabelement begins to open and is set to false when it finishes its close. Default is the inverse of hideonclose.
dlc
<attribute name="dlc" value="null" />
private var dlc;
dlo
<attribute name="dlo" value="null" />
private var dlo;
headerheight
<attribute name="headerheight" type="number" value="$once{minheight}" />
public var headerheight : Number;
The height of the header. Default is minheight.
height
<attribute name="height" value="$once{minheight}" />
public var height;
The height of the tabelement. Default is minheight.
hideonclose
<attribute name="hideonclose" value="true" />
public var hideonclose;
Content is automatically hidden when tabelement is closed. To override, set this attribute to false. Default is true.
isopening
<attribute name="isopening" value="0" />
private var isopening;
itemclassname
<attribute name="itemclassname" type="string" value="" />
public var itemclassname : String;
When creating tabelements via additem, this is the class that gets created. The default value is the class of the first tabelement or its descendant.
minheight
<attribute name="minheight" type="number" value="22" />
public var minheight : Number;
The height the tab will close to. Default is 22.
_originalheight
<attribute name="_originalheight" value="null" />
private var _originalheight;
Can be use in subclasses if the height in the tag is needed.
setvisiblestate
<attribute name="setvisiblestate" value="null" />
private var setvisiblestate;
Deprecated: now use onclosestop.

Methods (8)

close()
<method name="close" args="h, d" />
private function close(h : Number, d : Number);
Close the tabelement by a certain height.
closed()
<method name="closed" />
public function closed();
Called when the tabelement is completely closed.
destroy()
<method name="destroy" />
private function destroy();
doSpaceUp()
<method name="doSpaceUp" />
private function doSpaceUp();
Select this basetabelement if it has the focus and the space bar goes up.
open()
<method name="open" args="h, d, withAnimation" />
private function open(h : Number, d : Number, withAnimation : boolean);
Called to open this tabelement by a certain height.
openned()
<method name="openned" />
public function openned();
Called when the tabelement is completely opened.
setSelected()
<method name="setSelected" args="isSelected" />
public function setSelected(isSelected : boolean);
The selection manager associated with a tabslider sends an onselect event to the tabelement that is being opened or closed.
_setSelected()
<method name="_setSelected" args="s" />
private function _setSelected(s);

Events (4)

onclosestart
<attribute name="onclosestart" />
public event onclosestart;
Sent at the start of the close animation.
onclosestop
<attribute name="onclosestop" />
public event onclosestop;
Sent at the start of the close animation.
onopenstart
<attribute name="onopenstart" />
public event onopenstart;
Sent at the start of the open animation.
onopenstop
<attribute name="onopenstop" />
public event onopenstop;
Sent at the end of the open animation.

LZX Synopsis

<class name="lz.basetabelement" extends=" lz.baselistitem ">
  <attribute name=" contentvisible " value="$once{! hideonclose}" />
  <attribute name=" dlc " value="null" />
  <attribute name=" dlo " value="null" />
  <attribute name=" headerheight " type="number" value="$once{minheight}" />
  <attribute name=" height " value="$once{minheight}" />
  <attribute name=" hideonclose " value="true" />
  <attribute name=" isopening " value="0" />
  <attribute name=" itemclassname " type="string" value="" />
  <attribute name=" minheight " type="number" value="22" />
  <attribute name=" _originalheight " value="null" />
  <attribute name=" setvisiblestate " value="null" />
  <method name=" close " args="h, d" />
  <method name=" closed " />
  <method name=" destroy " />
  <method name=" doSpaceUp " />
  <event name=" onclosestart " />
  <event name=" onclosestop " />
  <event name=" onopenstart " />
  <event name=" onopenstop " />
  <method name=" open " args="h, d, withAnimation" />
  <method name=" openned " />
  <method name=" setSelected " args="isSelected" />
  <method name=" _setSelected " args="s" />
</class>

JavaScript Synopsis

public lz.basetabelement extends  lz.baselistitem  {
  public var contentvisible ;
  private var dlc ;
  private var dlo ;
  public var headerheight  : Number;
  public var height ;
  public var hideonclose ;
  private var isopening ;
  public var itemclassname  : String;
  public var minheight  : Number;
  private var _originalheight ;
  private var setvisiblestate ;
  prototype private function close (h : Number, d : Number);
  prototype public function closed ();
  prototype private function destroy ();
  prototype private function doSpaceUp ();
  prototype public event onclosestart ;
  prototype public event onclosestop ;
  prototype public event onopenstart ;
  prototype public event onopenstop ;
  prototype private function open (h : Number, d : Number, withAnimation : boolean);
  prototype public function openned ();
  prototype public function setSelected (isSelected : boolean);
  prototype private function _setSelected (s);
}