Module BaseDoc :: Class TableCellStyle
[frames] | no frames]

Class TableCellStyle

source code

Defines the style of a particular table cell. Characteristics are: right border, left border, top border, bottom border, and padding.

Instance Methods
 
__init__(self, obj=None)
Create a new TableCellStyle instance.
source code
 
set_padding(self, val)
Return the cell padding in centimeters
source code
 
set_right_border(self, val)
Defines if a right border in used
source code
 
set_left_border(self, val)
Defines if a left border in used
source code
 
set_top_border(self, val)
Defines if a top border in used
source code
 
set_bottom_border(self, val)
Defines if a bottom border in used
source code
 
set_longlist(self, val) source code
 
get_padding(self)
Return the cell padding in centimeters
source code
 
get_right_border(self)
Return 1 if a right border is requested
source code
 
get_left_border(self)
Return 1 if a left border is requested
source code
 
get_top_border(self)
Return 1 if a top border is requested
source code
 
get_bottom_border(self)
Return 1 if a bottom border is requested
source code
 
get_longlist(self) source code
Method Details

__init__(self, obj=None)
(Constructor)

source code 

Create a new TableCellStyle instance.

Parameters:
  • obj - if not None, specifies that the values should be copied from the passed object instead of being initialized to empty.

set_right_border(self, val)

source code 

Defines if a right border in used

Parameters:
  • val - if True, a right border is used, if False, it is not

set_left_border(self, val)

source code 

Defines if a left border in used

Parameters:
  • val - if True, a left border is used, if False, it is not

set_top_border(self, val)

source code 

Defines if a top border in used

Parameters:
  • val - if True, a top border is used, if False, it is not

set_bottom_border(self, val)

source code 

Defines if a bottom border in used

Parameters:
  • val - if 1, a bottom border is used, if 0, it is not