Name

basewindow — base window class

Synopsis

LZX: basewindow
JavaScript: 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

Known Direct Subclasses: windowpanel

Details

Properties (6)

allowdrag
<attribute name="allowdrag" type="boolean" value="true" />
public var allowdrag : Boolean;
Attribute handles whether window can be dragged or not @keywords public
datacontrolsvisibility
<attribute name="datacontrolsvisibility" type="expression" value="false" />
public final var datacontrolsvisibility : Object;
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
<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="basewindow" extends=" basecomponent ">
  <attribute name=" allowdrag " type="boolean" value="true" />
  <attribute name=" datacontrolsvisibility " type="expression" value="false" />
  <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 basewindow extends  basecomponent  {
  public var allowdrag  : Boolean;
  public final var datacontrolsvisibility  : Object;
  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);
}