Name

basefloatinglist

Synopsis

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

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basevaluecomponent » baseformitem » baselist » list » basefloatinglist

Known Subclasses

Details

Properties (9)

attach
<attribute name="attach" type="string" value="bottom" />
public var attach : String;
Where this floatinglist should attach to its owner. Possible values: bottom, top, left, right. In the event of a canvas out-of-bounds, the floating list will attach in a visible location.
attachoffset
<attribute name="attachoffset" value="0" />
public var attachoffset;
The distance from the attachtarget.
attachtarget
<attribute name="attachtarget" value="null" />
public var attachtarget;
The view to which this floatinglist will attach. By default, this will be the lexical parent. The style of the attachtarget will be inherited.
_constraintsApplied
<attribute name="_constraintsApplied" value="false" />
private var _constraintsApplied;
_currentattachx
<attribute name="_currentattachx" type="string" value="bottom" />
private var _currentattachx : String;
_currentattachy
<attribute name="_currentattachy" type="string" value="bottom" />
private var _currentattachy : String;
_origshownitems
<attribute name="_origshownitems" type="number" value="-2" />
private var _origshownitems : Number;
Number of items originally requested to display.
owner
<attribute name="owner" />
private var owner;
style
<attribute name="style" value="${attachtarget ? attachtarget['style'] : null}" />
private var style;
our style is contrained to the style of our attachtarget TODO: [hqm 2006-09] LPP-2820 attachtarget is sometimes null, should it be initialized with a sentinel?

Methods (12)

construct()
<method name="construct" args="parent, args" />
private function construct(parent, args);
destroy()
<method name="destroy" args="recursiveCall" />
private function destroy(recursiveCall);
getMenuCapHeight()
<method name="getMenuCapHeight" />
private function getMenuCapHeight();
getNextSelection()
<method name="getNextSelection" />
private function getNextSelection();
For focus control - next focus from here is relative to our owner.
getPrevSelection()
<method name="getPrevSelection" />
private function getPrevSelection();
For focus control. Defer to owner's context.
init()
<method name="init" />
private function init();
setAttachTarget()
<method name="setAttachTarget" args="target" />
public function setAttachTarget(target : LzView);
Set the target to which the floating list will attach. Set the "attach" attribute for attachment location relative to this attach target. Our style will be inherited from this attachtarget.
_setScroll()
<method name="_setScroll" />
private function _setScroll();
_setShownItems()
<method name="_setShownItems" args="n, keeporig" />
private function _setShownItems(n, keeporig);
Save original shown items unless overridden by user call or is initial call.
setVisible()
<method name="setVisible" args="v" />
private function setVisible(v);
toString()
<method name="toString" />
private function toString();
updateAttachLocation()
<method name="updateAttachLocation" />
public function updateAttachLocation();
Adjusts the location of the floatinglist relative to its attachtarget, taking into account the attach location and the canvas bounds.

LZX Synopsis

<class name="lz.basefloatinglist" extends=" lz.list ">
  <attribute name=" attach " type="string" value="bottom" />
  <attribute name=" attachoffset " value="0" />
  <attribute name=" attachtarget " value="null" />
  <attribute name=" _constraintsApplied " value="false" />
  <attribute name=" _currentattachx " type="string" value="bottom" />
  <attribute name=" _currentattachy " type="string" value="bottom" />
  <attribute name=" _origshownitems " type="number" value="-2" />
  <attribute name=" owner " />
  <attribute name=" style " value="${attachtarget ? attachtarget['style'] : null}" />
  <method name=" construct " args="parent, args" />
  <method name=" destroy " args="recursiveCall" />
  <method name=" getMenuCapHeight " />
  <method name=" getNextSelection " />
  <method name=" getPrevSelection " />
  <method name=" init " />
  <method name=" setAttachTarget " args="target" />
  <method name=" _setScroll " />
  <method name=" _setShownItems " args="n, keeporig" />
  <method name=" setVisible " args="v" />
  <method name=" toString " />
  <method name=" updateAttachLocation " />
</class>

JavaScript Synopsis

public lz.basefloatinglist extends  lz.list  {
  public var attach  : String;
  public var attachoffset ;
  public var attachtarget ;
  private var _constraintsApplied ;
  private var _currentattachx  : String;
  private var _currentattachy  : String;
  private var _origshownitems  : Number;
  private var owner ;
  private var style ;
  prototype private function construct (parent, args);
  prototype private function destroy (recursiveCall);
  prototype private function getMenuCapHeight ();
  prototype private function getNextSelection ();
  prototype private function getPrevSelection ();
  prototype private function init ();
  prototype public function setAttachTarget (target : LzView);
  prototype private function _setScroll ();
  prototype private function _setShownItems (n, keeporig);
  prototype private function setVisible (v);
  prototype private function toString ();
  prototype public function updateAttachLocation ();
}