Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

sptkTablePane Class Reference

#include <sptktablepane.h>

Inheritance diagram for sptkTablePane:

sptkPane sptkGadget sptkObject List of all members.

Public Member Functions

void setBorder (int border)
int getBorder ()
void setCellPadding (int cellPadding)
int getCellPadding ()
void setCellSpacing (int cellSpacing)
int getCellSpacing ()
void setHeight (std::string height)
std::string getHeight ()
void setWidth (std::string width)
std::string getWidth ()
void setElements (spdtList *elements)
spdtList * getElements ()
void newRow ()
void add (sptkGadget *content, int colspan=1, int rowspan=1, bool header=0)
void addHead (sptkGadget *content, int colspan=1, int rowspan=1)

Protected Attributes

int border
std::string width
std::string height
int cellSpacing
int cellPadding

Detailed Description

Author:
Sven Broenstrup


Member Function Documentation

void sptkTablePane::add (  sptkGadget *    content,
int    colspan = 1,
int    rowspan = 1,
bool    header = 0
) 
 

Add a new cell to table.

Parameters:
content Content to be used in new cell.
colspan How many cols to span over; optional, default=1.
rowspan How many rows to span over; optional, default=1.
header Weather the new cell is header or data type cell.

void sptkTablePane::addHead (  sptkGadget *    content,
int    colspan = 1,
int    rowspan = 1
) 
 

Add a new cell to table as header type cell.

Parameters:
content Content to be used in new cell.
colspan How many cols to span over; optional, default=1.
rowspan How many rows to span over; optional, default=1.

int sptkTablePane::getBorder (    ) 
 

Get the width if the table borders.

Returns:
The set width.

int sptkTablePane::getCellPadding (    ) 
 

Get the padding of the table cells.

Returns:
The padding set.

int sptkTablePane::getCellSpacing (    ) 
 

Get the spacing beetween table cells.

Returns:
The spacing set.

spdtList* sptkTablePane::getElements (    ) 
 

Get the elements of table. Only usefull for debugging and usage in assossiation with sptkTableGadget::setElements.

Returns:
Pointer to elements of table. Use with attention.

std::string sptkTablePane::getHeight (    ) 
 

Get the height of table.

Returns:
The height set.

std::string sptkTablePane::getWidth (    ) 
 

Get the width of table.

Returns:
The width set.

void sptkTablePane::newRow (    ) 
 

Create new row and change new row to actual.

void sptkTablePane::setBorder (  int    border ) 
 

Set the width of the table borders.

Parameters:
border The width to set.

void sptkTablePane::setCellPadding (  int    cellPadding ) 
 

Set the padding of the table cells.

Parameters:
cellPadding The padding to set.

void sptkTablePane::setCellSpacing (  int    cellSpacing ) 
 

Set the spacing between table cells.

Parameters:
cellSpacing The spacing to set.

void sptkTablePane::setElements (  spdtList *    elements ) 
 

Set the elements of table. Caution using this with other data than returned by sptkTableGadget::getElements. Intenal Format used that my change in future.

Parameters:
elements Pointer to elements of table. Caution using this with other data than returned by sptkTableGadget::getElements. Intenal Format used that my change in future.

void sptkTablePane::setHeight (  std::string    height ) 
 

Set the height of table.

Parameters:
height The height to set.

void sptkTablePane::setWidth (  std::string    width ) 
 

Set the width of table.

Parameters:
width The width to set.


Member Data Documentation

int sptkTablePane::border [protected]
 

Size of Border around Cells

int sptkTablePane::cellPadding [protected]
 

Padding of content in Cells

int sptkTablePane::cellSpacing [protected]
 

Spacing between Cells

std::string sptkTablePane::height [protected]
 

Heigth of the Table

std::string sptkTablePane::width [protected]
 

Width of the Table


The documentation for this class was generated from the following file:
Powered by SPOM