Name

LzDataSelectionManager

Synopsis

JavaScript: LzDataSelectionManager
Type: Class
Access: public
Topic: LFC.Helpers
Declared in: WEB-INF/lps/lfc/helpers/LzDataSelectionManager.lzs

Description

Implements same functionality as a normal selection manager, but without storing view references, which become invalid as views created by a datapath that uses lazy replication do. Does this by storing subview numbers.

Superclass Chain

node (LzNode) » selectionmanager (LzSelectionManager) » LzDataSelectionManager

Known Subclasses

Details

Methods (7)

clearSelection()
public function clearSelection();
Unselects everything that is currently selected and clears the selection list
getSelection()
public function getSelection() : Array;
Returns a list of datapointers, which point to the selected records
isSelected()
public function isSelected(o : LzView) : Boolean;
Tests whether the given view is selected
__LZsetSelected()
private function __LZsetSelected(p : LzDataElement, val : Boolean);
sets the selected attribute of the data, if there is a clone, it will call setselected on the clone
makeSelected()
protected function makeSelected(o : LzView);
Makes the given view selected
selectRange()
private function selectRange(s : LzDataPath, e : LzView);
Selects the range between the datapath that was lastselected and the newly selected view
unselect()
public function unselect(o : LzView);
Unselect the given view

JavaScript Synopsis

public LzDataSelectionManager extends  LzSelectionManager  {
  prototype public function clearSelection ();
  prototype public function getSelection () : Array;
  prototype public function isSelected (o : LzView) : Boolean;
  prototype private function __LZsetSelected (p : LzDataElement, val : Boolean);
  prototype protected function makeSelected (o : LzView);
  prototype private function selectRange (s : LzDataPath, e : LzView);
  prototype public function unselect (o : LzView);
}