<basewindow>
base window class

JavaScript: lz.basewindow
extends <basecomponent> » <view> » <node> » lz.Eventable »

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.

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
allowdrag boolean boolean true read/write
  Attribute handles whether window can be dragged or not
haswindowfocus expression any false read/write
  True if the window is frontmost. Set this attribute to bring the window to the fore of its sibling windows, and bring window focus.
minheight expression any 50 initialize-only
  Minimum height for the window.
minwidth expression any 60 initialize-only
  Minimum width for the window.
state expression any 1 readonly
  The state of the window: 1=selected (frontmost) window, 2=not-selected window, 3=dragging, 4=disabled, 5=resizing.

Methods

close()
basewindow.close(ignore);
Hides the window, same as setAttribute('visible', false).
Parameter Name Type Description
ignore    

open()
basewindow.open();
Shows the window, same as setAttribute('visible', true).

setWindowFocus()
basewindow.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
Parameter Name Type Description
windowfocus Boolean whether the window should be selected

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy