Class: CUI.ListView
Defined in: | elements/ListView/ListView.coffee |
Inherits: | CUI.SimplePane |
Overview
- coffeescript-ui - Coffeescript User Interface System (CUI)
- Copyright (c) 2013 - 2016 Programmfabrik GmbH
- MIT Licence
- https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org
Direct Known Subclasses
Variables Summary
- defaults =
-
{ row_move_handle_tooltip: "Drag to move row" }
- counter =
-
0
Variable inherited from CUI.SimplePane
Instance Method Summary
- # (void) initListView()
- # (void) initOpts()
- # (void) readOpts()
- # (void) destroy()
- # (void) getListViewClass()
- # (void) getGrid()
- # (void) hasResizableColumns()
- # (void) hasMovableRows()
- # (void) isInactive()
- # (void) setInactive(inactive, addClass = "inactive")
- # (void) render()
- # (void) __getScrolling()
- # (void) getScrollingContainer()
- # (void) __setScrolling(scroll)
- # (void) __syncScrolling()
- # (void) __setMargins()
- # (void) getSelectedRows()
- # (void) hasSelectableRows()
- # (void) selectRowById(row_id)
- # (void) selectRowByDisplayIdx(row_display_idx)
- # (void) selectRow(ev, rowChosen, noDeselect = false)
- # (void) getCellByTarget($target)
- # (void) getRowMoveTool(opts = {})
- # (void) getListViewRow(row_i)
- # (void) getDisplayColIdx(col_i)
- # (void) getDisplayRowIdx(row_i)
- # (void) getColIdx(display_col_i)
- # (void) getRowIdx(display_row_i)
- # (void) moveInOrderArray(from_i, to_i, array, after)
- # (void) moveRow(from_i, to_i, after = false, trigger_row_moved = true)
- # (void) rowAddClass(row_i, cls)
- # (void) rowRemoveClass(row_i, cls)
- # (void) getColdef(col_i)
- # (void) getColsCount()
- # (void) resetColWidth(col_i)
- # (void) setColWidth(col_i, width)
- # (void) getManualColWidth(col_i)
- # (void) getRowHeight(row_i)
- # (void) getColWidth(col_i)
- # (void) getCellGridRect(row_i, col_i)
- # (void) getRowGridRect(row_i)
- # (void) appendRow(row, _defer)
- # (void) prependRow(row)
- # (void) replaceRow(row_i, row)
- # (void) insertRowAt(display_row_i, row)
- # (void) insertRowAfter(sibling_row_i, row)
- # (void) insertRowBefore(sibling_row_i, row)
- # (void) removeAllRows()
- # (void) removeDeferredRow(listViewRow)
- # (void) removeRow(row_i)
- # (void) appendDeferredRows()
- # (void) getRow(row_i)
- # (void) getBottom()
- # (void) getTop()
- # (void) __scheduleLayout()
- # (void) layoutIsStopped()
- # (void) stopLayout()
- # (void) startLayout()
- # (void) __doLayout(opts = {})
- # (void) __addRowsOddEvenClasses()
- # (void) __getValue(px)
- # (void) hideWaitBlock()
- # (void) showWaitBlock()
- # (void) __debugRect(func, ms)
- # (void) appendRows(rows)
- # (void) __getColsFromAndTo(qi)
- # (void) __deferRow(row)
- # (void) __addRow(row_i, listViewRow = null, mode = "append", sibling_row_i = null)
- # (void) __getQuadrants(row_i) return the two quadrant pairs for the given row.
- # (void) __addRows(_row_i, listViewRows = [], mode = "append", sibling_row_i = null)
- # (void) __appendCells(listViewRow, row_i)
- # (void) __getColClass(col_i)
- # (void) __resetRowDim(row_i)
- # (void) __resetCellStyle(row_i, col_i)
- # (void) __resetColWidth(col_i)
- # (void) __resetCellDims(col_i)
- # (void) __isMaximizedCol(col_i)
- # (void) __getColWidth(row_i, col_i) use row_i == null to not check for colspan
- # (void) __debugCall(name, func)
- # (void) __addDebugControl()
Inherited Method Summary
Methods inherited from
CUI.SimplePane
#__init #initOpts #readOpts #forceHeader #forceFooter #hasHeader #hasFooter #destroy #getPaneAndKey #empty #append #replace #getFillScreenState #endFillScreen #startFillScreen #toggleFillScreen .getToggleFillScreenButton #getName #getMapPrefix #hasFlexHandles #getPanes #getSupportedPanes #maximizeAddClasses #maximizeReadOpts #init #getTemplateMap #__initPane #initDefaultPanes #getLayout #getButtonbar #__callAutoButtonbar #setAbsolute #unsetAbsolute .__all .all #registerTemplate #getDOMElementClasses #registerDOMElement #getElementForLayer #unregisterDOMElement #__assertDOMElement #__assertTemplateElement #addClass #setAria #removeClass #hide #show #hasClass #isDestroyed #prepend #text #get #getFlexHandle #getElementClass #getUniqueId #getOpts #getOpt #hasOpt #getSetOpt #hasSetOpt #copy #mergeOpt #removeOpt #addOpt #addOpts #mergeOpts #__getCheckMap #readOptsFromAttr #proxy .getOptKeys
Constructor Details
#
(void)
constructor(opts = {})
Construct a new CUI.ListView.
Instance Method Details
#
(void)
initListView()
#
(void)
initOpts()
#
(void)
readOpts()
#
(void)
destroy()
#
(void)
getListViewClass()
#
(void)
getGrid()
#
(void)
hasResizableColumns()
#
(void)
hasMovableRows()
#
(void)
isInactive()
#
(void)
setInactive(inactive, addClass = "inactive")
#
(void)
render()
#
(void)
__getScrolling()
#
(void)
getScrollingContainer()
#
(void)
__setScrolling(scroll)
#
(void)
__syncScrolling()
#
(void)
__setMargins()
#
(void)
getSelectedRows()
#
(void)
hasSelectableRows()
#
(void)
selectRowById(row_id)
#
(void)
selectRowByDisplayIdx(row_display_idx)
#
(void)
selectRow(ev, rowChosen, noDeselect = false)
#
(void)
getCellByTarget($target)
#
(void)
getRowMoveTool(opts = {})
#
(void)
getListViewRow(row_i)
#
(void)
getDisplayColIdx(col_i)
#
(void)
getDisplayRowIdx(row_i)
#
(void)
getColIdx(display_col_i)
#
(void)
getRowIdx(display_row_i)
#
(void)
moveInOrderArray(from_i, to_i, array, after)
#
(void)
moveRow(from_i, to_i, after = false, trigger_row_moved = true)
#
(void)
rowAddClass(row_i, cls)
#
(void)
rowRemoveClass(row_i, cls)
#
(void)
getColdef(col_i)
#
(void)
getColsCount()
#
(void)
resetColWidth(col_i)
#
(void)
setColWidth(col_i, width)
#
(void)
getManualColWidth(col_i)
#
(void)
getRowHeight(row_i)
#
(void)
getColWidth(col_i)
#
(void)
getCellGridRect(row_i, col_i)
#
(void)
getRowGridRect(row_i)
#
(void)
appendRow(row, _defer)
#
(void)
prependRow(row)
#
(void)
replaceRow(row_i, row)
#
(void)
insertRowAt(display_row_i, row)
#
(void)
insertRowAfter(sibling_row_i, row)
#
(void)
insertRowBefore(sibling_row_i, row)
#
(void)
removeAllRows()
#
(void)
removeDeferredRow(listViewRow)
#
(void)
removeRow(row_i)
#
(void)
appendDeferredRows()
#
(void)
getRow(row_i)
#
(void)
getBottom()
#
(void)
getTop()
#
(void)
__scheduleLayout()
#
(void)
layoutIsStopped()
#
(void)
stopLayout()
#
(void)
startLayout()
#
(void)
__doLayout(opts = {})
#
(void)
__addRowsOddEvenClasses()
#
(void)
__getValue(px)
#
(void)
hideWaitBlock()
#
(void)
showWaitBlock()
#
(void)
__debugRect(func, ms)
#
(void)
appendRows(rows)
#
(void)
__getColsFromAndTo(qi)
#
(void)
__deferRow(row)
#
(void)
__addRow(row_i, listViewRow = null, mode = "append", sibling_row_i = null)
#
(void)
__getQuadrants(row_i)
return the two quadrant pairs for the given row.
#
(void)
__addRows(_row_i, listViewRows = [], mode = "append", sibling_row_i = null)
#
(void)
__appendCells(listViewRow, row_i)
#
(void)
__getColClass(col_i)
#
(void)
__resetRowDim(row_i)
#
(void)
__resetCellStyle(row_i, col_i)
#
(void)
__resetColWidth(col_i)
#
(void)
__resetCellDims(col_i)
#
(void)
__isMaximizedCol(col_i)
#
(void)
__getColWidth(row_i, col_i)
use row_i == null to not check for colspan
#
(void)
__debugCall(name, func)
#
(void)
__addDebugControl()