Name

tab

Synopsis

LZX: tab
JavaScript: lz.tab
Type: Class
Access: public
Topic: Components.Laszlo Components
Declared in: lps/components/lz/tabs.lzx

Description

The default tab used by tabsbar. This class isn't meant to be used standalone. You can pass the name of this class in the 'tabclass' attribute of basetabpane, tabpane, basetabs, and tabs classes. Tabs uses this class as its default 'tabclass'.

Superclass Chain

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

Known Subclasses

Details

Properties (5)

MIN_TEXT_BORDER
<attribute name="MIN_TEXT_BORDER" type="number" value="2" />
private var MIN_TEXT_BORDER : Number;
padding
<attribute name="padding" value="20" />
public var padding;
Text padding. Default is 20.
tabstate
<attribute name="tabstate" type="number" value="2" />
private var tabstate : Number;
titleshift
<attribute name="titleshift" type="number" value="${this.tabstate == 4 ? 4 : 0}" />
private var titleshift : Number;
width
<attribute name="width" value="${tabview.labeltext.getTextWidth() + 2*padding}" />
private var width;

Methods (4)

_applystyle()
<method name="_applystyle" args="s" />
private function _applystyle(s);
setHilite()
<method name="setHilite" args="dohilite" />
private function setHilite(dohilite);
setSelected()
<method name="setSelected" args="s" />
private function setSelected(s);
_showEnabled()
<method name="_showEnabled" />
private function _showEnabled();

LZX Synopsis

<class name="lz.tab" extends=" lz.basetab ">
  <attribute name=" MIN_TEXT_BORDER " type="number" value="2" />
  <attribute name=" padding " value="20" />
  <attribute name=" tabstate " type="number" value="2" />
  <attribute name=" titleshift " type="number" value="${this.tabstate == 4 ? 4 : 0}" />
  <attribute name=" width " value="${tabview.labeltext.getTextWidth() + 2*padding}" />
  <method name=" _applystyle " args="s" />
  <method name=" setHilite " args="dohilite" />
  <method name=" setSelected " args="s" />
  <method name=" _showEnabled " />
</class>

JavaScript Synopsis

public lz.tab extends  lz.basetab  {
  private var MIN_TEXT_BORDER  : Number;
  public var padding ;
  private var tabstate  : Number;
  private var titleshift  : Number;
  private var width ;
  prototype private function _applystyle (s);
  prototype private function setHilite (dohilite);
  prototype private function setSelected (s);
  prototype private function _showEnabled ();
}