Name

windowpanel — A draggable panel that provides common behavior for various window classes.

Synopsis

LZX: windowpanel
JavaScript: lz.windowpanel
Type: Class
Access: public
Topic: Components.Laszlo Components
Declared in: lps/components/lz/windowpanel.lzx

Description

The windowpanel tag creates a floating view that has a title area and can be moved by the user. It provides common behavior for window, modaldialog, and alert.

Example 51. window panel

<canvas width="300" height="150">
              <windowpanel x="10" y="10" width="200" height="100" title="windowpanel" closeable="true">
              <text>Hello</text>
              </windowpanel>
              </canvas>

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basewindow » windowpanel

Known Subclasses

Details

Properties (12)

bgcolor
<attribute name="bgcolor" />
public var bgcolor;
_bgcolor
<attribute name="_bgcolor" value="null" />
private var _bgcolor;
closeable
<attribute name="closeable" value="false" />
public var closeable;
If true, the window will have a close control. Default: false
defaultplacement
<attribute name="defaultplacement" type="string" value="content" />
public var defaultplacement : String;
inset_bottom
<attribute name="inset_bottom" value="20" />
public var inset_bottom;
The bottom inset for the window content area. Default: 20
inset_left
<attribute name="inset_left" value="6" />
public var inset_left;
The left inset for the window content area. Default: 6
inset_right
<attribute name="inset_right" value="11" />
public var inset_right;
The right inset for the window content area. Default: 11
inset_top
<attribute name="inset_top" value="22" />
public var inset_top;
The top inset for the window content area. Default: 22
title
<attribute name="title" type="string" value="" />
public var title : String;
the title of a window : this string appears at the top of the window. Default: none
titlearea_inset_top
<attribute name="titlearea_inset_top" value="6" />
public var titlearea_inset_top;
The top inset for the window title area. Default: 6
_usecontentheight
<attribute name="_usecontentheight" value="true" />
private var _usecontentheight;
_usecontentwidth
<attribute name="_usecontentwidth" value="true" />
private var _usecontentwidth;

Methods (5)

_applystyle()
<method name="_applystyle" args="s" />
private function _applystyle(s);
construct()
<method name="construct" args="p, args" />
private function construct(p, args);
init()
<method name="init" />
private function init();
setBGColor()
<method name="setBGColor" args="c" />
private function setBGColor(c);
_setBGColor()
<method name="_setBGColor" args="color" />
private function _setBGColor(color);

LZX Synopsis

<class name="lz.windowpanel" extends=" lz.basewindow ">
  <attribute name=" bgcolor " />
  <attribute name=" _bgcolor " value="null" />
  <attribute name=" closeable " value="false" />
  <attribute name=" defaultplacement " type="string" value="content" />
  <attribute name=" inset_bottom " value="20" />
  <attribute name=" inset_left " value="6" />
  <attribute name=" inset_right " value="11" />
  <attribute name=" inset_top " value="22" />
  <attribute name=" title " type="string" value="" />
  <attribute name=" titlearea_inset_top " value="6" />
  <attribute name=" _usecontentheight " value="true" />
  <attribute name=" _usecontentwidth " value="true" />
  <method name=" _applystyle " args="s" />
  <method name=" construct " args="p, args" />
  <method name=" init " />
  <method name=" setBGColor " args="c" />
  <method name=" _setBGColor " args="color" />
</class>

JavaScript Synopsis

public lz.windowpanel extends  lz.basewindow  {
  public var bgcolor ;
  private var _bgcolor ;
  public var closeable ;
  public var defaultplacement  : String;
  public var inset_bottom ;
  public var inset_left ;
  public var inset_right ;
  public var inset_top ;
  public var title  : String;
  public var titlearea_inset_top ;
  private var _usecontentheight ;
  private var _usecontentwidth ;
  prototype private function _applystyle (s);
  prototype private function construct (p, args);
  prototype private function init ();
  prototype private function setBGColor (c);
  prototype private function _setBGColor (color);
}