Sydney

Class Table

Object
   |
   +--Widget
         |
         +--Container
               |
               +--Table

class Table
extends Container

Raises:

selectionchanged
whenever the selection changes. Listeners are passed an AbstractList of TableRows that are currently selected.
rowdoubleclicked
whenever a row is double-clicked. Listeners are passed the TableRow that was double-clicked.
sortrequest
whenever a column-header is clicked. Listeners are passed the index of the column-header that was clicked (the left-most column has index 0 and indexes increase to the right).
Defined in table.js


Field Summary
 var _sortColumn
          
 var _sortOrder
          
 var children
          
 var selection
          
<static>  var SORT_ASCENDING
          
<static>  var SORT_DESCENDING
          
<static>  var SORT_NONE
          
   
Fields inherited from class Container
children
   
Fields inherited from class Widget
html, id, parent, layoutData, eventTable
 
Constructor Summary
Table (<boolean> multiSelect, <boolean> disableSelection)
            Creates a table.
 
Method Summary
 void appendColumn(<TableColumn> column, <boolean> layout)
           Appends a column to this table.
 void blur()
          
 function disableSelection(disable)
          
 void focus()
          
 Pixels getClientWidth()
          
 int getColumnCount()
           Returns the column count for this table.
 Object getColumnWidth(<int> index)
           Returns the width of column index.
 AbstractList getSelection()
          
 void handleClick(row, isShiftPressed, isCtrlPressed)
           Updates the table's selection based on the current selection, the row that was just clicked, the shift- and ctrl-states, whether or not selection is allowed, and whether or not multi-selection is allowed.
 void prependColumn(<TableColumn> column, <boolean> layout)
           Prepends a column to this table.
 void removeAllColumns()
          
 void removeColumn(<TableColumn> column, <boolean> layout)
           Removes the given column.
 void setColumnWidth(<int> column, <float> width, <float> weight, <boolean> usePixels)
           Sets the width of column column to width.
 void setDefaultRowHeight(<float> height, <boolean> canGrow, <boolean> usePixels)
           Sets the default row height to height.
 void setSelection(<Object> selection)
           Selects the rows indicated by selection.
 void setSortOrder(<int> column, <int> direction)
           Updates the table's column headers to reflect the table being sorted by column column in direction order.
 
Methods inherited from class Container
appendChild, clear, contains, insertAfter, insertAt, insertBefore, isEmpty, prependChild, removeChild, replaceChild, setLayout, setEnabled
   
Methods inherited from class Widget
installContextMenu, installDefaultContextMenu, uninstallContextMenu, isDraggable, setDraggable, addEventListener, createEventTable, dispose, getAbsoluteBottom, getAbsoluteLeft, getAbsoluteRight, getAbsoluteTop, getBottom, getBounds, getClientHeight, getCorner, getHeight, getLeft, getPixelsPerEm, getRight, getToolTip, getTop, getWidth, isDisposed, isEnabled, layout, moveToAbsolute, moveTo, raiseEvent, registerEventType, removeEventListener, setAbsoluteBottom, setAbsoluteLeft, setAbsoluteRight, setAbsoluteTop, setBottom, setBounds, setHeight, setLeft, setRight, setToolTip, setTop, setWidth, setParent, toString
 

Field Detail

_sortColumn

var _sortColumn

_sortOrder

var _sortOrder

children

var children

selection

var selection

SORT_ASCENDING

<static> var SORT_ASCENDING

SORT_DESCENDING

<static> var SORT_DESCENDING

SORT_NONE

<static> var SORT_NONE

Constructor Detail

Table

function Table(<boolean> multiSelect, <boolean> disableSelection)
Method Detail

appendColumn

void appendColumn(<TableColumn> column, <boolean> layout)

blur

void blur()

disableSelection

function disableSelection(disable)

focus

void focus()

getClientWidth

Pixels getClientWidth()

getColumnCount

int getColumnCount()

getColumnWidth

Object getColumnWidth(<int> index)

getSelection

AbstractList getSelection()

handleClick

void handleClick(row, isShiftPressed, isCtrlPressed)

prependColumn

void prependColumn(<TableColumn> column, <boolean> layout)

removeAllColumns

void removeAllColumns()

removeColumn

void removeColumn(<TableColumn> column, <boolean> layout)

setColumnWidth

void setColumnWidth(<int> column, <float> width, <float> weight, <boolean> usePixels)

setDefaultRowHeight

void setDefaultRowHeight(<float> height, <boolean> canGrow, <boolean> usePixels)

setSelection

void setSelection(<Object> selection)

setSortOrder

void setSortOrder(<int> column, <int> direction)

Sydney

SourceForge.net Logo