<basewindow>

base window class

JavaScript: basewindow

Extends Basecomponent

This abstract class provides useful methods and states for a view that is moveable and resizeable.

See Also:
Attributes
Name Usage Type (Tag) Type (JS) Default Category
allowdrag Tag & JS boolean Boolean true setter
 

Attribute handles whether window can be dragged or not @keywords public


datacontrolsvisibility Tag only expression false final
 

Controls the datapath of this window. If true, the datapath associated with the window will cause the window to be invisible if it matches no data or visible if it does match data, overriding whatever had been set as the visible attribute of the window. Default: false.


haswindowfocus Tag & JS expression any false defaultsetter
 

True if the window is frontmost, default: false. Set this attribute to bring the window to the fore of its sibling windows, and bring window focus.


minheight Tag only expression 50 final
 

Minimum height for the window, default: 50.


minwidth Tag only expression 60 final
 

Minimum width for the windowy, default: 60.


state Tag & JS expression any 1 readonly
 

The state of the window: 1=selected (frontmost) window, 2=not-selected window, 3=dragging, 4=disabled, 5=resizing. Default: 1



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

bringToFront()
basewindow.bringToFront()


close()
basewindow.close()

Hides the window, same as setVisible(false).



open()
basewindow.open()

Shows the window, same as setVisible(true).



sendBehind()
basewindow.sendBehind(v)
Parameters
Name Type Desc
v None


sendInFrontOf()
basewindow.sendInFrontOf(v)
Parameters
Name Type Desc
v None


sendToBack()
basewindow.sendToBack()


setVisible()
basewindow.setVisible(isVisible)

Setter for the visible property that also brings the window to the front.

Parameters
Name Type Desc
isVisible Boolean whether the window should be made visible.


setWindowFocus()
basewindow.setWindowFocus(windowfocus)

Brings the window to front when it has the windowfocus and sets the 'state' to 2, the selected state. Subclasses may override to create different behavior

Parameters
Name Type Desc
windowfocus Boolean whether the window should be selected


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