Package library :: Package pyjamas :: Package ui :: Module HTMLTable :: Class HTMLTable
[hide private]
[frames] | no frames]

Class HTMLTable

source code

           object --+        
      Panel.PanelBase --+    
   object --+           |    
            |           |    
      Applier --+       |    
                |       |    
UIObject.UIObject --+   |    
                    |   |    
        Widget.Widget --+    
              Panel.Panel --+

Instance Methods [hide private]
__init__(self, **kwargs)
use this to apply properties as a dictionary, e.g.:
source code
addDblTableListener(self, listener) source code
addTableListener(self, listener) source code
use this method, due to list changing as it's being iterated.
source code
clearCell(self, row, column) source code
getCellCount(self, row) source code
getCellFormatter(self) source code
getCellPadding(self) source code
getCellSpacing(self) source code
getHTML(self, row, column) source code
getRowCount(self) source code
getRowFormatter(self) source code
getText(self, row, column) source code
getWidget(self, row, column=None) source code
getIndex(self, widget)
given a widget, return its index.
source code
getIndexedChild(self, index) source code
addIndexedItem(self, index, item) source code
add(self, item, row, col) source code
isCellPresent(self, row, column) source code
only gets widgets: does not obtain HTML or Text cells!
source code
_onBrowserEvent(self, event, event_type) source code
onBrowserEvent(self, event) source code
remove(self, widget) source code
removeDblClickTableListener(self, listener) source code
removeTableListener(self, listener) source code
setBorderWidth(self, width) source code
setCellPadding(self, padding) source code
setCellSpacing(self, spacing) source code
setHTML(self, row, column, html) source code
setText(self, row, column, text) source code
setWidget(self, row, column, widget)
Insert (or optionally replace) the widget at the given index with a new one
source code
_mapWidget(self, widget) source code
cleanCell(self, row, column) source code
computeKey(self, row, column) source code
computeKeyForElement(self, widgetElement) source code
removeWidget(self, widget) source code
_unmapWidget(self, widget) source code
checkCellBounds(self, row, column) source code
checkRowBounds(self, row) source code
createCell(self) source code
getBodyElement(self) source code
getDOMCellCount(self, element, row=None) source code
getDOMCellCountImpl(self, element, row) source code
getDOMRowCount(self, element=None) source code
getDOMRowCountImpl(self, element) source code
getEventTargetCell(self, event) source code
insertCell(self, row, column) source code
insertCells(self, row, column, count) source code
insertRow(self, beforeRow) source code
internalClearCell(self, td) source code
prepareCell(self, row, column) source code
prepareRow(self, row) source code
removeCell(self, row, column) source code
removeRow(self, row) source code
setCellFormatter(self, cellFormatter) source code
setRowFormatter(self, rowFormatter) source code

Inherited from Panel.Panel: adopt, disown

Inherited from Panel.PanelBase: __getitem__, __len__, __nonzero__, __setitem__, append, doAttachChildren, doDetachChildren, getChildren, getWidgetCount, getWidgetIndex

Inherited from Widget.Widget: getID, getLayoutData, getParent, isAttached, onAttach, onDetach, onLoad, removeFromParent, setContextMenu, setID, setLayoutData, setParent

Inherited from UIObject.UIObject: addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getClientHeight, getClientWidth, getElement, getHeight, getOffsetHeight, getOffsetWidth, getStyleAttribute, getStyleName, getStylePrimaryName, getTitle, getVisible, getWidth, isVisible, removeStyleDependentName, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleAttribute, setStyleName, setTitle, setVisible, setWidth, setzIndex, sinkEvents, unsinkEvents

Inherited from Applier: applyValues, retrieveValues, setDefaults, setElementProperties, updateInstance

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

Class Methods [hide private]
_getProps(self) source code

Inherited from Applier (private): _getElementProps

Class Variables [hide private]
  _props = [("border", "Border width", "BorderWidth", int), ("sp...

Inherited from Applier (private): _elem_props

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)

source code 

use this to apply properties as a dictionary, e.g.:

   x = klass(..., StyleName='class-name')

will do:

   x = klass(...)


   x = klass(..., Size=("100%", "20px"), Visible=False)

will do:

   x = klass(...)
   x.setSize("100%", "20px")
Overrides: object.__init__
(inherited documentation)

Class Method

source code 
Overrides: Applier._getProps


source code 

use this method, due to list changing as it's being iterated. also, it's possible to use this method even

Overrides: Panel.PanelBase.clear
(inherited documentation)

getWidget(self, row, column=None)

source code 
Overrides: Panel.PanelBase.getWidget

getIndexedChild(self, index)

source code 
Overrides: Panel.PanelBase.getIndexedChild

addIndexedItem(self, index, item)

source code 
Overrides: Panel.PanelBase.addIndexedItem


source code 

only gets widgets: does not obtain HTML or Text cells!

Overrides: Panel.PanelBase.__iter__

onBrowserEvent(self, event)

source code 
Overrides: Widget.Widget.onBrowserEvent

setWidget(self, row, column, widget)

source code 

Insert (or optionally replace) the widget at the given index with a new one

Overrides: Panel.PanelBase.setWidget
(inherited documentation)

Class Variable Details [hide private]


[("border", "Border width", "BorderWidth", int), ("spacing", "Spacing"\
, "CellSpacing", None), ("padding", "Padding", "CellPadding", None)]