Packageefnx.gui
Classpublic class Window
InheritanceWindow Inheritance flash.display.Sprite

Window is a class that provides a draggable rectangular display area, with scrollbars for overflow.



Public Properties
 PropertyDefined by
  close : Button
The close window button.
Window
  height : Number
[write-only]
Window
  label : TextField
The label textfield.
Window
  maximize : Button
The maximize button.
Window
  minimize : Button
The minimize button.
Window
  scrollArea : ScrollArea
The ScrollArea for the Window.
Window
  width : Number
[write-only]
Window
  windowBar : TileBar
The TileBar used to drag the window.
Window
Public Methods
 MethodDefined by
  
Window
  
addContent(child:DisplayObject):DisplayObject
Adds content to the ScrollArea.
Window
  
addContentAt(child:DisplayObject, index:uint):DisplayObject
Adds a Display Object to the ScrollArea as content at the level index .
Window
  
inheritSkin(parent:Window):void
Applies the skin of a parent Window to this Window.
Window
  
removeContent(child:DisplayObject):DisplayObject
Removes content from the ScrollArea added by addContent.
Window
  
removeContentAt(index:uint):DisplayObject
Removes a Display Object from the ScrollArea's content.
Window
Property detail
closeproperty
public var close:Button

The close window button.

See also

heightproperty 
height:Number  [write-only]Implementation
    public function set height(value:Number):void
labelproperty 
public var label:TextField

The label textfield. Style this how you like.

maximizeproperty 
public var maximize:Button

The maximize button.

See also

minimizeproperty 
public var minimize:Button

The minimize button.

See also

scrollAreaproperty 
public var scrollArea:ScrollArea

The ScrollArea for the Window. This ScrollArea should be supplied with all the bitmapData needed.

See also

widthproperty 
width:Number  [write-only]Implementation
    public function set width(value:Number):void
windowBarproperty 
public var windowBar:TileBar

The TileBar used to drag the window. This must be supplied with a left, middle and right bitmapData.

See also

Constructor detail
Window()constructor
public function Window()

Method detail
addContent()method
public function addContent(child:DisplayObject):DisplayObject

Adds content to the ScrollArea.

Parameters
child:DisplayObject — The child Display Object to add to the ScrollArea.

Returns
DisplayObject — The child object.

See also

addContentAt()method 
public function addContentAt(child:DisplayObject, index:uint):DisplayObject

Adds a Display Object to the ScrollArea as content at the level index . This is much like addChildAt(). Display Objects added with addContentAt can be removed with removeContent() and removeContentAt().

Parameters
child:DisplayObject — The Display Object to add.
 
index:uint — The level in which to add child.

Returns
DisplayObject — A reference to the added Display Object

See also

inheritSkin()method 
public function inheritSkin(parent:Window):void

Applies the skin of a parent Window to this Window.

Parameters
parent:Window — The Window to inherit the skin from.
removeContent()method 
public function removeContent(child:DisplayObject):DisplayObject

Removes content from the ScrollArea added by addContent.

Parameters
child:DisplayObject — The child Display Object to remove from the ScrollArea.

Returns
DisplayObject — The child object.

See also

removeContentAt()method 
public function removeContentAt(index:uint):DisplayObject

Removes a Display Object from the ScrollArea's content. This is much like removeChild(). Display Objects added with addContent() can be removed with removeContent() and removeContentAt().

Parameters
index:uint — The level from which to remove child.

Returns
DisplayObject — A reference to the added Display Object

See also