Documentation in progress: please use the 3.4 Reference Manual.

Name

basewindow — base window class

Synopsis

LZX: basewindow
JavaScript: lz.basewindow
Type: Class
Access: public
Topic: Components.Base Components
Declared in: lps/components/base/basewindow.lzx

Description

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

The basewindow class defines methods, attributes that are used by window subclasses.

Superclass Chain

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

Known Subclasses

Details

Properties (5)

allowdrag
<attribute name="allowdrag" type="boolean" value="true" />
public var allowdrag : boolean;
Attribute handles whether window can be dragged or not @keywords public
haswindowfocus
<attribute name="haswindowfocus" value="false" />
public var haswindowfocus;
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
<attribute name="minheight" value="50" />
public final var minheight;
Minimum height for the window, default: 50.
minwidth
<attribute name="minwidth" value="60" />
public final var minwidth;
Minimum width for the windowy, default: 60.
state
<attribute name="state" value="1" />
public read-only var state;
The state of the window: 1=selected (frontmost) window, 2=not-selected window, 3=dragging, 4=disabled, 5=resizing. Default: 1

Methods (8)

bringToFront()
<method name="bringToFront" />
public function bringToFront();
close()
<method name="close" />
public function close();
Hides the window, same as setVisible(false).
open()
<method name="open" />
public function open();
Shows the window, same as setVisible(true).
sendBehind()
<method name="sendBehind" args="v" />
public function sendBehind(v);
sendInFrontOf()
<method name="sendInFrontOf" args="v" />
public function sendInFrontOf(v);
sendToBack()
<method name="sendToBack" />
public function sendToBack();
setVisible()
<method name="setVisible" args="isVisible" />
public function setVisible(isVisible : Boolean);
Setter for the visible property that also brings the window to the front.
setWindowFocus()
<method name="setWindowFocus" args="windowfocus" />
public function setWindowFocus(windowfocus : Boolean);
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

LZX Synopsis

<class name="lz.basewindow" extends=" lz.basecomponent ">
  <attribute name=" allowdrag " type="boolean" value="true" />
  <attribute name=" haswindowfocus " value="false" />
  <attribute name=" minheight " value="50" />
  <attribute name=" minwidth " value="60" />
  <attribute name=" state " value="1" />
  <method name=" bringToFront " />
  <method name=" close " />
  <method name=" open " />
  <method name=" sendBehind " args="v" />
  <method name=" sendInFrontOf " args="v" />
  <method name=" sendToBack " />
  <method name=" setVisible " args="isVisible" />
  <method name=" setWindowFocus " args="windowfocus" />
</class>

JavaScript Synopsis

public lz.basewindow extends  lz.basecomponent  {
  public var allowdrag  : boolean;
  public var haswindowfocus ;
  public final var minheight ;
  public final var minwidth ;
  public read-only var state ;
  prototype public function bringToFront ();
  prototype public function close ();
  prototype public function open ();
  prototype public function sendBehind (v);
  prototype public function sendInFrontOf (v);
  prototype public function sendToBack ();
  prototype public function setVisible (isVisible : Boolean);
  prototype public function setWindowFocus (windowfocus : Boolean);
}