<tabsbar>

The lz tabsbar class for laying out tab items.

JavaScript: tabsbar

Extends Basetabsbar

A tabsbar is a container that uses a default x-axis simplelayout with a spacing of -15 to lay out its tab children (which have extra spacing on each side) so they overlap.

This it the default tab bar created by tabpane. This class is dependent on tabs (or any subclass of basetabs) and shouldn't be used by itself. The default layout for its subviews is "class: simplelayout; axis: x; spacing: -15". You can pass the name of this class in the 'barclass' attribute of tabpane, basetabpane, basetabs, and tabs. Tabs uses this class as its default 'barclass'.

<canvas width="400" height="100">
  <include href="lz"/>

  <simplelayout axis="x" spacing="10"/>

  <view layout="class: simplelayout; axis: y; spacing: 5"
        bgcolor="red">
    <text>basetabs barclass=basetabsbar</text>
    <basetabs y="10" tabclass="tab" barclass="basetabsbar">
      <basetabpane text="one">
        <text>one</text>
      </basetabpane>
      <basetabpane text="two">
        <text>two</text>
      </basetabpane>
      <basetabpane text="three">
        <text>three</text>
      </basetabpane>
    </basetabs>
  </view>

  <view layout="class: simplelayout; axis: y; spacing: 5"
        bgcolor="yellow">
    <text>basetabs barclass=tabsbar</text>
    <basetabs y="10" tabclass="tab" barclass="tabsbar">
      <basetabpane text="one">
        <text>one</text>
      </basetabpane>
      <basetabpane text="two">
        <text>two</text>
      </basetabpane>
      <basetabpane text="three">
        <text>three</text>
      </basetabpane>
    </basetabs>
  </view>
</canvas>
See Also:
Attributes
Name Usage Type (Tag) Type (JS) Default Category
spacing Tag & JS number Number 0 setter
 

Spacing between tab items. Default is 0.



Attributes inherited from Basecomponent

doesenter, enabled, hasdefault, isdefault, style, styleable, text

Attributes inherited from Baseformitem

changed, ignoreform, onchanged, onvalue, rollbackvalue, submit, submitname

Attributes inherited from Baselist

dataoption, defaultselection, itemclassname, multiselect, toggleselected

Attributes inherited from Basevaluecomponent

value

Attributes inherited from Node

class, classroot, cloneManager, datapath, id, ignoreAttribute, ignoreplacement, immediateparent, initstage, name, nodeLevel, onconstruct, oninit, parent, placement, subnodes

Attributes inherited from View

aaactive, aadescription, aaname, aasilent, aatabindex, align, bgcolor, clickable, clickregion, clip, cursor, defaultplacement, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hassetheight, hassetwidth, height, layout, loadratio, mask, onblur, onclick, ondata, ondblclick, onfocus, onkeydown, onkeyup, onmousedown, onmouseout, onmouseover, onmouseup, onselect, opacity, options, pixellock, play, resource, resourceheight, resourcewidth, rotation, selectiontype, showhandcursor, source, stretches, subviews, totalframes, unstretchedheight, unstretchedwidth, valign, visible, width, x, xoffset, y, yoffset


Methods

Methods inherited from basecomponent

doEnterDown, doEnterUp, doSpaceDown, doSpaceUp, setStyle, setTint, updateDefault

Methods inherited from baseformitem

applyData, commit, findForm, init, rollback, setChanged, setValue, toXML, updateData

Methods inherited from baselist

addItem, clearSelection, getItem, getItemAt, getNumItems, getSelection, getText, getValue, moveSelection, removeItem, removeItemAt, select, selectItem, selectItemAt, selectNext, selectPrev, setHilite

Methods inherited from LzNode

animate, applyConstraint, childOf, completeInstantiation, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, lookupSourceLocator, searchImmediateSubnodes, searchSubnodes, setAttribute, setDatapath, setID, setName, setOption

Methods inherited from LzView

addProxyPolicy, addSubview, bringToFront, construct, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getContextMenu, getCurrentTime, getDepthList, getHeight, getID3, getMouse, getPan, getTotalTime, getVolume, getWidth, measureHeight, measureWidth, play, releaseLayouts, removeProxyPolicy, searchParents, searchSubviews, seek, sendBehind, sendInFrontOf, sendToBack, setAAActive, setAADescription, setAAName, setAASilent, setAATabIndex, setAlign, setAttributeRelative, setBGColor, setClickable, setColor, setColorTransform, setContextMenu, setCursor, setHeight, setLayout, setOpacity, setPan, setPlay, setResource, setResourceNumber, setRotation, setShowHandCursor, setSource, setValign, setVisible, setVolume, setWidth, setX, setY, shouldYieldFocus, stop, stretchResource, unload, updateResourceSize


Events

Events inherited from LzNode

onconstruct, ondata, oninit

Events inherited from LzView

onaddsubresource, onaddsubview, onblur, onclick, ondblclick, onerror, onfocus, onframe, onheight, onlastframe, onload, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmouseup, onmouseupoutside, onopacity, onplay, onremovesubview, onstop, ontimeout, onwidth, onx, ony