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

Class CellFormatter

source code

object --+    
         |    
   Applier --+
             |
            CellFormatter

Instance Methods [hide private]
 
_getElementProps(self) source code
 
__init__(self, outer, **kwargs)
use this to apply properties as a dictionary, e.g.:
source code
 
_setStyleName(self, row, column, styleName, add) source code
 
addStyleName(self, row, column, styleName) source code
 
getElement(self, row, column) source code
 
getStyleName(self, row, column) source code
 
isVisible(self, row, column)
DEPRECATED: please use getVisible
source code
 
getVisible(self, row, column) source code
 
removeStyleName(self, row, column, styleName) source code
 
setAlignment(self, row, column, hAlign, vAlign) source code
 
setHeight(self, row, column, height) source code
 
setHorizontalAlignment(self, row, column, align) source code
 
setStyleName(self, row, column, styleName, add=None) source code
 
setVerticalAlignment(self, row, column, align) source code
 
setVisible(self, row, column, visible) source code
 
setWidth(self, row, column, width) source code
 
setWordWrap(self, row, column, wrap) source code
 
getCellElement(self, table, row, col) source code
 
getRawElement(self, row, column) source code
 
ensureElement(self, row, column) source code
 
getStyleAttr(self, row, column, attr) source code
 
setStyleAttr(self, row, column, attrName, value) source code
 
getAttr(self, row, column, attr) source code
 
setAttr(self, row, column, attrName, value) source code

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]

Inherited from Applier (private): _getProps

Class Variables [hide private]
  _elem_props = [("wordwrap", "Word Wrap", "WordWrap", None, Tru...

Inherited from Applier (private): _props

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_getElementProps(self)

source code 
Overrides: Applier._getElementProps

__init__(self, outer, **kwargs)
(Constructor)

source code 

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

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

will do:

   x = klass(...)
   x.setStyleName('class-name')

and:

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

will do:

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

Class Variable Details [hide private]

_elem_props

Value:
[("wordwrap", "Word Wrap", "WordWrap", None, True), ("stylename", "Sty\
le Name", "StyleName", None, ""), ("height", "Height", "Height", None,\
 None), ("width", "Width", "Width", None, None), ("halign", "Horizonta\
l Alignment", "HorizontalAlignment", str, ""), ("valign", "Vertical Al\
ignment", "VerticalAlignment", str, ""),]