Name
basewindow — base window class
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.
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()
-
Hides the window, same as setVisible(false).
-
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="
minwidth
" value="
60" />
<attribute name="
state
" value="
1" />
<method name="
close
" />
</class>
JavaScript Synopsis
public
basewindow extends
basecomponent
{
public read-only var
state
;
prototype public function
close
();
prototype public function
open
();
prototype public function
setVisible
(
isVisible : Boolean);
}