OverviewSingleDeprecated

jsx3.gui

class Stack

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

All Implemented Interfaces:

jsx3.gui.Interactive, jsx3.util.EventDispatcher

class Stack
extends jsx3.gui.Block
This class is equivalent to a tab, but uses the stack metaphor; like a tab, it has one child—a block for its content; a jsx3.gui.Stack instance should only be contained by a jsx3.gui.StackGroup instance for proper rendering.

Field Summary
static String
ACTIVECOLOR
#aaccff
static String
BACKGROUND
static String
BORDER
border:solid 1px #9898a5;border-left-color:#ffffff;border-top-color:#ffffff;
static String
CHILDBGCOLOR
#ffffff
static String
INACTIVECOLOR
#e8e8f5
static int
ORIENTATIONH
1
static int
ORIENTATIONV
0 (default)
Constructor Summary
void
init(strName : String, strCaption : String)
instance initializer
Method Summary
void
Makes this stack the visible (expanded) stack in the parent stack group.
void
Deprecated. use doShow() instead.
void
overrides method is superclass; ensures the stack is expanded before giving focus
String
Returns valid CSS property value, (i.e.
jsx3.app.Model
Returns the child of this stack that will be painted as the content of this stack.
String
Returns valid CSS property value, (i.e.
static String
Deprecated.
boolean
Returns whether or not this stack is the active (expanded) stack
boolean
onSetParent(objParent : ?)
is called when an item is about to be set; returns false if the parent is not of the appropriate type; in this case, the parent must be a jsx3.gui.List or derivative class
String
Returns the DHTML, used for this object's on-screen VIEW
jsx3.gui.Stack
setActiveColor(strActiveColor : String)
Sets valid CSS property value, (i.e.
jsx3.gui.Stack
setInactiveColor(strInactiveColor : String)
Sets valid CSS property value, (i.e.
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
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, 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

ACTIVECOLOR

static String ACTIVECOLOR
#aaccff

BACKGROUND

static String BACKGROUND

BORDER

static String BORDER
border:solid 1px #9898a5;border-left-color:#ffffff;border-top-color:#ffffff;

CHILDBGCOLOR

static String CHILDBGCOLOR
#ffffff

INACTIVECOLOR

static String INACTIVECOLOR
#e8e8f5

ORIENTATIONH

static final int ORIENTATIONH
1

ORIENTATIONV

static final int ORIENTATIONV
0 (default)
Constructor Detail

init

void init(strName : String, strCaption : String)
instance initializer

Parameters:

strNameunique name distinguishing this object from all other JSX GUI objects in the JSX application
strCaptionif != null, will be set as the text property (label) for the stack
Method Detail

doShow

void doShow()
Makes this stack the visible (expanded) stack in the parent stack group.

doShowStack

void doShowStack()
Deprecated. use doShow() instead.
Makes this stack the visible (expanded) stack in the parent stack group. Invokes the EXECUTE model event only under the deprecated 3.0 model event protocol. Invokes the SHOW model event.

See Also:

doShow()

focus

void focus()
overrides method is superclass; ensures the stack is expanded before giving focus

Overrides:

focus in jsx3.gui.Painted

getActiveColor

String getActiveColor()
Returns valid CSS property value, (i.e., red, #ffffff) when caption bar for stack is moused over. Default: jsx3.gui.Stack.ACTIVECOLOR

Returns:

valid CSS property value, (i.e., red, #ffffff)  

getContentChild

jsx3.app.Model getContentChild()
Returns the child of this stack that will be painted as the content of this stack. This implementation returns the first child that is not a menu or a toolbar button.

Returns:

 

getInactiveColor

String getInactiveColor()
Returns valid CSS property value, (i.e., red, #ffffff) when caption bar for stack is moused out. Default: jsx3.gui.Stack.INACTIVECOLOR

Returns:

valid CSS property value, (i.e., red, #ffffff)  

getVersion

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

Returns:

 

isFront

boolean isFront()
Returns whether or not this stack is the active (expanded) stack

Returns:

 

onSetParent

boolean onSetParent(objParent : ?)
is called when an item is about to be set; returns false if the parent is not of the appropriate type; in this case, the parent must be a jsx3.gui.List or derivative class

Parameters:

objParent

Returns:

true to allow the set, false to veto  

Overrides:

onSetParent in jsx3.app.Model

paint

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

Returns:

DHTML  

Overrides:

paint in jsx3.gui.Block

setActiveColor

jsx3.gui.Stack setActiveColor(strActiveColor : String)
Sets valid CSS property value, (i.e., red, #ffffff) when caption bar for stack is moused over; returns reference to self to facilitate method chaining

Parameters:

strActiveColorvalid CSS property value, (i.e., red, #ffffff)

Returns:

this object  

setInactiveColor

jsx3.gui.Stack setInactiveColor(strInactiveColor : String)
Sets valid CSS property value, (i.e., red, #ffffff) when caption bar for stack is moused out; returns reference to self to facilitate method chaining

Parameters:

strInactiveColorvalid CSS property value, (i.e., red, #ffffff)

Returns:

this object