Home | Trees | Indices | Help |
|
---|
|
1 # Copyright 2006 James Tauber and contributors 2 # Copyright (C) 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net> 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 from pyjamas import DOM 16 from pyjamas import Factory 17 from pyjamas.ui import Applier 1820 2411626 self.outer.prepareCell(row, column) 27 self.outer.setStyleName(self.getElement(row, column), styleName, True)2830 self.outer.checkCellBounds(row, column) 31 return DOM.getChild(self.outer.rowFormatter.getRow(self.outer.bodyElem, row), column)32 35 3941 self.outer.checkCellBounds(row, column) 42 self.outer.setStyleName(self.getElement(row, column), styleName, False)4345 self.setHorizontalAlignment(row, column, hAlign) 46 self.setVerticalAlignment(row, column, vAlign)4749 self.outer.prepareCell(row, column) 50 element = self.getCellElement(self.outer.bodyElem, row, column) 51 DOM.setStyleAttribute(element, "height", height)5254 self.outer.prepareCell(row, column) 55 element = self.getCellElement(self.outer.bodyElem, row, column) 56 DOM.setAttribute(element, "align", align)57 6163 self.outer.prepareCell(row, column) 64 DOM.setStyleAttribute(self.getCellElement(self.outer.bodyElem, row, column), "verticalAlign", align)65 6971 self.outer.prepareCell(row, column) 72 DOM.setStyleAttribute(self.getCellElement(self.outer.bodyElem, row, column), "width", width)7375 self.outer.prepareCell(row, column) 76 if wrap: 77 wrap_str = "" 78 else: 79 wrap_str = "nowrap" 80 81 DOM.setStyleAttribute(self.getElement(row, column), "whiteSpace", wrap_str)8284 length = table.rows.length 85 if row >= length: 86 return None 87 cols = table.rows.item(row).cells 88 length = cols.length 89 if col >= length: 90 return None 91 item = cols.item(col) 92 return item9395 return self.getCellElement(self.outer.bodyElem, row, column)9698 self.outer.prepareCell(row, column) 99 return DOM.getChild(self.outer.rowFormatter.ensureElement(row), column)100 104 108 112
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jun 16 12:42:36 2010 | http://epydoc.sourceforge.net |