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

Class _Cell

Known Subclasses:

Class defining a cell.

Instance Methods [hide private]
 
__init__(self, column, row, selectonclick=True)
 
_delete(self)
Delete the cell's widget, wall widget, and all references to this cell in the table.
 
colPos(self)
The x-coordinate position of the cell in the table (1=leftmost)
 
rowPos(self)
The y-coordinate position of the cell in the table (1=top)
 
_position(self)
Places the cell in the right position on the table
 
_invokeClickCallback(self)
 
post(self)
 
highlight(self)
 
bleach(self)
 
_select(self)
Select the cell w/o calling the the select callback
 
_deselect(self)
Deselect the cell w/o calling the the select callback
 
select(self)
Select this cell and call the select callback If not multi-select; deselects other cells If this cell is already selected; don't do anything.
 
selectOnly(self)
Selects this cell and deselects others; then calls the select callback
 
enable(self)
 
disable(self)
 
hide(self)
 
show(self)
 
isSelected(self)
 
_clicked(self, ctrldown, shiftdown)
Figures out which cells need to be selected/deselected based on which cells are currently selected and whether shift or control keys are held while clicking on this cell.
 
_isVisible(self)
Whether this cell is in the VISIBLE region of the table
Method Details [hide private]

_delete(self)

 

Delete the cell's widget, wall widget, and all references to this cell in the table. Returns True if the cell was selected

select(self)

 

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

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

selectOnly(self)

 

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

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