HappyDoc Generated Documentation Class: pwTable

widget.py / pwTable 

Table widget class
The table widget is the most complicated widget from the standpoint of the constructor and widget construction. The table widget takes several arguments and has many keyword options. The basic widget takes a matrix which forms the data portion of the table. The contents must either be base types (e.g. Strings or numbers) or a pyWidget. If the caller wishes to have have row and column headers, those are provided as keyword arguments as separate matrices. To support a column header span, place the value in the first cell to be spanned and then nulls in the subsequent cells.

Arguments:

  • data: data is a list of lists where each list represents a row and each element within the list is either a value, or a pwWidget to be displayed

Common Keywords:

  • divClass: allows the user to override the class of the
  • fieldSpecial: allows the user to add "special" HTML attributes to the output element
  • id: overrides the HTML "id" attribute
  • selectable: controls whether this field is selectable or not
  • inputType: mostly for internal use -- overrides the type designation in the output hidden fields

Keywords:

  • rowlabels: a list of lists representing the labels for each row. May have multiple labels for a row, and missing labels are spanned.
  • colheaders: a list of lists repesenting the headers for each column. May have multiple headers for a column and missing headers are spanned.
  • caption: the caption for the table
  • rowalign: a list that sets the default alignment for the row (valign)
  • colalign: a list that sets the default alignment for the column (align)

Default divClass: pwTable

Base Classes   

pwTable
  pyWidget

Methods   
  Cell 
Cell (
        self,
        lvl,
        cell,
        row,
        col,
        )
  Header 
Header (
        self,
        lvl,
        row,
        )
  display 
display ( self,  lvl )
  __init__ 
__init__ (
        self,
        data,
        **kwlist,
        )
  Label 
Label (
        self,
        lvl,
        row,
        )

This document was automatically generated Tue Sep 21 18:50:54 2004 by HappyDoc version 3.0.a1