OverviewSingleDeprecated

jsx3.gui

class TabbedPane

Object
->jsx3.lang.Object
  ->jsx3.app.Model
    ->jsx3.gui.Painted
      ->jsx3.gui.Block
        ->jsx3.gui.TabbedPane

All Implemented Interfaces:

jsx3.gui.Interactive, jsx3.util.EventDispatcher

class TabbedPane
extends jsx3.gui.Block
Renders a tabbed pane, which consists of a set of tabs, only one of which is visible at a time.

See Also:

jsx3.gui.Tab

Field Summary
static int
AUTO_SCROLL_INTERVAL
50
static int
DEFAULTTABHEIGHT
20 (default)
static String
LSCROLLER
jsx:///images/tab/l.png
static String
RSCROLLER
jsx:///images/tab/r.png
Constructor Summary
void
init(strName : String)
instance initializer
Method Summary
int
Returns the zero-based child index of the active child tab.
void
whether or not to show the tabs of the tabbed pane.
int
Returns the CSS height property (in pixels) for child tabs
static String
Deprecated.
String
Returns the DHTML, used for this object's on-screen VIEW
jsx3.gui.TabbedPane
setSelectedIndex(intIndex : int | jsx3.gui.Tab, bRepaint : boolean)
Sets the active tab of this tabbed pane.
void
setShowTabs(intShowTabs : ?)
whether or not to show the tabs of the tabbed pane.
jsx3.gui.TabbedPane
setTabHeight(intTabHeight : int)
Sets the CSS height property for the object (in pixels) for child tabs; returns reference to self to facilitate method chaining
Methods Inherited From jsx3.gui.Block
getBackground, getBackgroundColor, getBorder, getCSSOverride, getClassName, getColor, getCursor, getDimensions, getDisplay, getFontName, getFontSize, getFontWeight, getHeight, getIndex, getLeft, getMargin, getOverflow, getPadding, getRelativePosition, getTagName, getText, getTextAlign, getTip, getTop, getVisibility, getWidth, getZIndex, hideMask, setBackground, setBackgroundColor, setBorder, setCSSOverride, setClassName, setColor, setCursor, setDimensions, setDisplay, setFontName, setFontSize, setFontWeight, setHeight, setIndex, setLeft, setMargin, setOverflow, setPadding, setRelativePosition, setTagName, setText, setTextAlign, setTip, setTop, setVisibility, setWidth, setZIndex, showMask
Methods Inherited From jsx3.gui.Interactive
doEvent, getCanDrag, getCanDrop, getCanMove, getCanSpy, getEvent, getEvents, getMenu, hasEvent, registerHotKey, removeEvent, removeEvents, setCanDrag, setCanDrop, setCanMove, setCanSpy, setEvent, setMenu, setSpyStyles, showSpy
Methods Inherited From jsx3.gui.Painted
focus, getAbsolutePosition, getAttribute, getAttributes, getDynamicProperty, getRendered, insertHTML, onAfterPaint, paintChild, paintChildren, recalcBox, removeAttribute, removeAttributes, repaint, setAttribute, setDynamicProperty
Methods Inherited From jsx3.app.Model
adoptChild, doClone, findAncestor, findDescendants, getAncestorOfName, getAncestorOfType, getChild, getChildIndex, getChildren, getDescendantOfName, getDescendantsOfType, getFirstChild, getFirstChildOfType, getHelpId, getId, getLastChild, getLoadType, getMetaValue, getNS, getName, getNextSibling, getParent, getPersistence, getPreviousSibling, getServer, getUriResolver, insertBefore, load, loadAndCache, loadXML, onAfterAssemble, onAfterAttach, onBeforeAssemble, onChangeServer, onDestroy, onRemoveChild, onSetChild, onSetParent, removeChild, removeChildren, setChild, setHelpId, setLoadType, setMetaValue, setName, setPersistence, toString, toXML, toXMLDoc
Methods Inherited From jsx3.util.EventDispatcher
publish, subscribe, unsubscribe, unsubscribeAll
Methods Inherited From jsx3.lang.Object
clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf
Field Detail

AUTO_SCROLL_INTERVAL

static int AUTO_SCROLL_INTERVAL
50

DEFAULTTABHEIGHT

static int DEFAULTTABHEIGHT
20 (default)

LSCROLLER

static String LSCROLLER
jsx:///images/tab/l.png

RSCROLLER

static String RSCROLLER
jsx:///images/tab/r.png
Constructor Detail

init

void init(strName : String)
instance initializer

Parameters:

strNameunique name distinguishing this object from all other JSX GUI objects in the JSX application
Method Detail

getSelectedIndex

int getSelectedIndex()
Returns the zero-based child index of the active child tab.

Returns:

 

getShowTabs

void getShowTabs()
whether or not to show the tabs of the tabbed pane. if false then only the content of each tab is drawn.

getTabHeight

int getTabHeight()
Returns the CSS height property (in pixels) for child tabs

Returns:

height (in pixels)  

getVersion

static String getVersion()
Deprecated.
Returns the release/build for the class (i.e., "3.0.00")

Returns:

 

paint

String paint()
Returns the DHTML, used for this object's on-screen VIEW

Returns:

DHTML  

Overrides:

paint in jsx3.gui.Block

setSelectedIndex

jsx3.gui.TabbedPane setSelectedIndex(intIndex : int | jsx3.gui.Tab, bRepaint : boolean)
Sets the active tab of this tabbed pane. Pass either the zero-based child index of the tab to activate or the tab itself.

Parameters:

intIndex
bRepaintif true, immediately updates the view to reflect the new active tab.

Returns:

this object.  

setShowTabs

void setShowTabs(intShowTabs : ?)
whether or not to show the tabs of the tabbed pane. if false then only the content of each tab is drawn.

Parameters:

intShowTabs

setTabHeight

jsx3.gui.TabbedPane setTabHeight(intTabHeight : int)
Sets the CSS height property for the object (in pixels) for child tabs; returns reference to self to facilitate method chaining

Parameters:

intTabHeightheight (in pixels)

Returns:

this object