<basetabpane>

A non-visual tabpane for the basetabs component.

JavaScript: basetabpane

Extends Basecomponent

A basetabpane is the non-visual container for content in basetabs. Each basetabpane has a corresponding basetab created. Normally, you won't want to extend this class. If you want a consistent background across all basetabpanes, you can add a background to your basetabscontent component. If you want a different background for each basetabpane, you could do that in the content placed inside of your basetabpane.

Be aware that the content of basetabpane is initstage="late" . You can override this by declaring an initstage on a specific subclass or instance of basetabpane.

<basetabpane initstage="normal">
  <!-- ..content... -->
</basetabpane>

Note: The parent of a <basetabpane> is <basetabs>, but its immediate parent is the default placement of the basetabscontent.

Example 1. parent and immediate parent of basetabpane
<canvas width="500" height="140" debug="true">
  <debug x="150" y="10"/>
  
  <include href="base"/>

  <class name="aquatab" extends="basetab" width="40" height="20" bgcolor="aqua">
    <text>tab</text>
  </class>
  
  <class name="borderedtabscontent" extends="basetabscontent" bgcolor="black">
    <attribute name="defaultplacement" value="borderedcontent" type="string"/>
    <view name="borderedcontent"
          x="${parent.parent.bordersize}"
          y="${parent.parent.bordersize}"
          width="${parent.width-(2*parent.parent.bordersize)}"
          height="${parent.height-(2*parent.parent.bordersize)}"
          clip="true" bgcolor="red"/>
  </class>

  <basetabs x="10" y="10" bordersize="3" 
            tabclass="aquatab" 
            contentclass="borderedtabscontent">
    <basetabpane name="one">
      <handler name="onvisible" args="isvisible">
        if (isvisible) {
          Debug.write("parent: " + parent);
          Debug.write("immediate parent: " + immediateparent);
        }
      </handler>
      <text>one</text>
    </basetabpane>
    <basetabpane>
      <text>two</text>
    </basetabpane>
    <basetabpane>
      <text height="${parent.height}" width="${parent.width}" 
            bgcolor="green">
        three
      </text>
    </basetabpane>
  </basetabs>
</canvas>
See Also:
Attributes
Name Usage Type (Tag) Type (JS) Default Category
datacontrolsvisibility Tag & JS expression any false setter
 

If a datapath tag is declared, this attribute will be passed to the datapath when it's created. Default is false.


inset_bottom Tag & JS number Number   setter
 

Bottom inset for basetabpane in tabs content. Default is basetabs's inset_bottom.


inset_left Tag & JS number Number   setter
 

Left inset for basetabpane in tabs content. Default is basetabs's inset_left.


inset_right Tag & JS number Number   setter
 

Right inset for basetabpane in tabs content. Default is basetabs's inset_right.


inset_top Tag & JS number Number   setter
 

Top inset for basetabpane in tabs content. Default is basetabs's inset_top.


selected Tag & JS boolean Boolean false setter
 

If a basetabpane is selected, then it will be shown. Its associated tab will be also be selected.


tab Tag & JS expression any null readonly
 

The tab associated with this basetabpane.


tabclass Tag only string   final
 

The tabclass to use to instantiate its associated tab. This overrides the basetabs tabclass. Leave undefined here so that basetabs can have it.



Attributes inherited from Basecomponent

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

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 LzNode

animate, applyConstraint, applyData, 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, init, 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