Package schrodinger :: Package ui :: Module widgettable :: Class _Row
[hide private]
[frames] | no frames]

Class _Row

object --+
         |
        _Row

Row of a table

Each row has an id. This number is NOT connected to the position of the row in the table in order to make it possible to sort rows without changing the rowid.

row id's are never reused.

Instance Methods [hide private]
 
__init__(self, table, rowid)
x.__init__(...) initializes x; see help(type(x)) for signature
 
_getCellIterator(self)
 
rowPos(self)
The y-coordinate position of the row in the table (1=top)
 
highlight(self)
 
bleach(self)
 
isSelected(self)
 
_select(self)
Select the row w/o calling the the select callback
 
_deselect(self)
Deselect the row w/o calling the the select callback
 
select(self)
Select this row and call the select callback If not multi-select; deselects other rows If this row is already selected; don't do anything.
 
selectOnly(self)
Selects this row and deselects others; then calls the select callback
 
deselect(self)
Deselect this row and call the select callback
 
_isVisible(self)
Return whether this row is in the VISIBLE region of the table
 
_clicked(self, ctrldown, shiftdown)
Figures out which rows need to be selected/deselected based on which rows are currently selected and whether shift or control keys are held while clicking on this row.
 
_position(self)
 
getCell(self, column)
Given a column reference, return the cell of this row and that column.
 
disable(self)
Disable the row
 
enable(self)
Enable the row

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  cell

Inherited from object: __class__

Method Details [hide private]

__init__(self, table, rowid)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

select(self)

 

Select this row and call the select callback If not multi-select; deselects other rows If this row is already selected; don't do anything.

If the selected row is out of view in WidgetTable, then scroll the table to show the row.

selectOnly(self)

 

Selects this row and deselects others; then calls the select callback

If the selected row is out of view in WidgetTable, then scroll the table to show the row.


Property Details [hide private]

cell

Get Method:
_getCellIterator(self)