Name
basetabelement — Base class for the contents of a basetabslider.
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.
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" />
-
dlo
-
<attribute name="dlo" value="null" />
-
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}" />
The height of the tabelement. Default is minheight.
-
hideonclose
-
<attribute name="hideonclose" value="true" />
Content is automatically hidden when tabelement is closed. To
override, set this attribute to false. Default is true.
-
isopening
-
<attribute name="isopening" value="0" />
-
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()
-
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" />
Sent at the end of the open animation.
LZX Synopsis
<class name="
lz.basetabelement" extends="
lz.baselistitem
">
<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="
minheight
" type="
number" value="
22" />
<method name="
close
" args="
h,
d" />
<method name="
open
" args="
h,
d,
withAnimation" />
</class>
JavaScript Synopsis
public
lz.basetabelement extends
lz.baselistitem
{
prototype private function
close
(
h : Number,
d : Number);
prototype public function
closed
();
prototype private function
destroy
();
prototype private function
open
(
h : Number,
d : Number,
withAnimation : boolean);
prototype public function
openned
();
prototype public function
setSelected
(
isSelected : boolean);
}