utyListview Class Reference
[Javascript Widgets (utywidgets.js)]

Javascript listiew widget. More...

Inheritance diagram for utyListview:
utyWidget

List of all members.

Public Member Functions

function utyListview (id, selectionMode, onselchange, onrowsubmit)
function selectionMode (mode)
function currentRow ()
function selectedIndexes (index)
function bodyElement ()
function bodyTableElement ()
function listHead ()
function columns (index)
function getColumnById (id)
function loadBody (html)
function text (row, col, text)
function mousedown (row, event)
function mouseup (row, event)
function dblclick (row, event)
function setCurrentRow (row)
function selectingRows (row, range)
function selectRow (row)
function unselectRow (row)
function unselectAll ()
function execSelect (row, append, range)
function sort (col, type, order)
function comptext (row1, row2)
function compdate (row1, row2)
function compnumber (row1, row2)
function sortingText (row)
function toString ()

Public Attributes

 onselchange
 onrowsubmit

Detailed Description

Javascript listiew widget.

See also:
uty_listview_start, uty_listview_end

Constructor & Destructor Documentation

function utyListview (   id,
  selectionMode,
  onselchange,
  onrowsubmit 
) [inline]

INTERNAL create new utyLIstview object


Member Function Documentation

function bodyElement (  )  [inline]

INTERNAL return the listview body domNode element

function bodyTableElement (  )  [inline]

INTERNAL return the list view body table domNode element

function columns (   index  )  [inline]
Returns:
if index is specified the corresponding utyListviewColumn column, otherwise the entire array
Parameters:
[index] (int) the index of he column to retrieve
Warning:
The Array is NOT copied: DON'T MAKE ANY CHANGE
function compdate (   row1,
  row2 
) [inline]

INTERNAL array.sort callback (type='date')

function compnumber (   row1,
  row2 
) [inline]

INTERNAL array.sort callback (type='number')

function comptext (   row1,
  row2 
) [inline]

INTERNAL array.sort callback (type='text')

function currentRow (  )  [inline]
Returns:
the currently active row element (domNode)
function dblclick (   row,
  event 
) [inline]

INTERNAL handle the dblclick event

function execSelect (   row,
  append,
  range 
) [inline]

INTERNAL execute user selection

function getColumnById (   id  )  [inline]
Returns:
the utyListviewColumn whith specified id
Parameters:
id (string) the id of he column to retrieve
function listHead (  )  [inline]
Returns:
the utyListviewHead owned object
function loadBody (   html  )  [inline]

load the html body table

function mousedown (   row,
  event 
) [inline]

INTERNAL handle the mousedown event for selection

function mouseup (   row,
  event 
) [inline]

INTERNAL handle the mouseuo event for selection

function selectedIndexes (   index  )  [inline]

index!==undefined

Warning:
The Array is NOT copied: DON'T MAKE ANY CHANGE
function selectingRows (   row,
  range 
) [inline]

INTERNAL return the rows the user is about to select

function selectionMode (   mode  )  [inline]

get/set seleciton mode

Parameters:
mode 0 none | 1 single | 2 multi
function selectRow (   row  )  [inline]

INTERNAL select a row element (and push to selectedIndexes)

function setCurrentRow (   row  )  [inline]

INTERNAL set teh current (active) row element

function sort (   col,
  type,
  order 
) [inline]

sort the html table by this column

Parameters:
col (utyListviewColumn) the sorting column
order the sorting order
type (string) 'text' | 'number' | 'date'
Note:
this is for internal use: you should use the utyListviewColumn::sort method instead
function sortingText (   row  )  [inline]

INTERNAL get the eaw text content to compare

function text (   row,
  col,
  text 
) [inline]

get/set the text content of the cell(row,col)

Returns:
the text content of the cell(row,col)
Parameters:
row (int) the row index
col (var) the column index (int) or the column id (string)
[text] (string) the new text, default=undefined
function toString (  )  [inline]
Returns:
utyListview

Reimplemented from utyWidget.

function unselectAll (  )  [inline]

deselect all rows

function unselectRow (   row  )  [inline]

INTERNAL restore a row element (and remove from selectedIndexes)


Member Data Documentation

javascript expression

javascript expression


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations

Copyright © 2010 Attilio Pavone - www.utillyty.eu