OverviewSingleDeprecated

jsx3.gui

class WindowBar

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

All Implemented Interfaces:

jsx3.gui.Interactive, jsx3.util.EventDispatcher

class WindowBar
extends jsx3.gui.Block
jsx3.gui.WindowBar instances are used as the captionbar for JSXDialog and JSXAlert instances. They can contain any object type supported by the JSXBlock class. Developers will not instantiate this class (although it is possible); instead, when a new dialog is instanced, it will bind an instance of this class as a child for use as a captionbar container.

Field Summary
static String
DEFAULTBACKGROUND
The default background pattern
static String
DEFAULTBG
#c8c8d5 (default)
static String
DEFAULTBGCAPTION
#ffffff (default)
static String
DEFAULTBORDER
solid 1px #e8e8f5;solid 0px;solid 1px #a8a8b5;solid 0px; (default)
static String
DEFAULTBORDERCAPTION
solid 1px #9898a5;solid 1px #9898a5;solid 1px #9898a5;solid 1px #9898a5; (default)
static int
DEFAULTFONTSIZE
11 (default)
static String
DEFAULTFONTWEIGHT
jsx3.gui.Block.FONTBOLD (default)
static int
DEFAULTHEIGHT
26 (default)
static int
TYPECAPTION
0 (default)
static int
TYPEMENU
2
static int
TYPETASK
3
static int
TYPETOOL
1
Constructor Summary
void
init(strName : String, TYPE : int)
instance initializer
Method Summary
int
Returns the type of the window bar; one of: jsx3.gui.WindowBar.TYPECAPTION, jsx3.gui.WindowBar.TYPETOOL, jsx3.gui.WindowBar.TYPEMENU, jsx3.gui.WindowBar.TYPETASK
static String
Deprecated.
String
Returns the DHTML, used for this object's on-screen VIEW
jsx3.gui.WindowBar
setText(strText : String, bRepaint : boolean)
calls super method in Block but if bRepaint is true, then also repaints task bar
jsx3.gui.WindowBar
setType(TYPE : int)
Returns the type of the window bar; 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, 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

DEFAULTBACKGROUND

static String DEFAULTBACKGROUND
The default background pattern

DEFAULTBG

static String DEFAULTBG
#c8c8d5 (default)

DEFAULTBGCAPTION

static String DEFAULTBGCAPTION
#ffffff (default)

DEFAULTBORDER

static String DEFAULTBORDER
solid 1px #e8e8f5;solid 0px;solid 1px #a8a8b5;solid 0px; (default)

DEFAULTBORDERCAPTION

static String DEFAULTBORDERCAPTION
solid 1px #9898a5;solid 1px #9898a5;solid 1px #9898a5;solid 1px #9898a5; (default)

DEFAULTFONTSIZE

static int DEFAULTFONTSIZE
11 (default)

DEFAULTFONTWEIGHT

static String DEFAULTFONTWEIGHT
jsx3.gui.Block.FONTBOLD (default)

DEFAULTHEIGHT

static int DEFAULTHEIGHT
26 (default)

TYPECAPTION

static final int TYPECAPTION
0 (default)

TYPEMENU

static final int TYPEMENU
2

TYPETASK

static final int TYPETASK
3

TYPETOOL

static final int TYPETOOL
1
Constructor Detail

init

void init(strName : String, TYPE : int)
instance initializer

Parameters:

strNameunique name distinguishing this object from all other JSX GUI objects in the JSX application
TYPEone of: jsx3.gui.WindowBar.TYPECAPTION, jsx3.gui.WindowBar.TYPETOOL, jsx3.gui.WindowBar.TYPEMENU, jsx3.gui.WindowBar.TYPETASK
Method Detail

getType

int getType()
Returns the type of the window bar; one of: jsx3.gui.WindowBar.TYPECAPTION, jsx3.gui.WindowBar.TYPETOOL, jsx3.gui.WindowBar.TYPEMENU, jsx3.gui.WindowBar.TYPETASK

Returns:

one of: jsx3.gui.WindowBar.TYPECAPTION, jsx3.gui.WindowBar.TYPETOOL, jsx3.gui.WindowBar.TYPEMENU, jsx3.gui.WindowBar.TYPETASK  

getVersion

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

Returns:

 

paint

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

Returns:

DHTML  

Overrides:

paint in jsx3.gui.Block

setText

jsx3.gui.WindowBar setText(strText : String, bRepaint : boolean)
calls super method in Block but if bRepaint is true, then also repaints task bar

Parameters:

strTexttext/HTML
bRepaintif true, the view of this object is immediately updated, obviating the need to call repaint().

Returns:

 

Overrides:

setText in jsx3.gui.Block

setType

jsx3.gui.WindowBar setType(TYPE : int)
Returns the type of the window bar; returns reference to self to facilitate method chaining;

Parameters:

TYPEone of: jsx3.gui.WindowBar.TYPECAPTION, jsx3.gui.WindowBar.TYPETOOL, jsx3.gui.WindowBar.TYPEMENU, jsx3.gui.WindowBar.TYPETASK

Returns:

this object