ERXTable Class Reference

Inherits er::extensions::woextensions::WOTable.

Collaboration diagram for ERXTable:

Collaboration graph
[legend]

List of all members.

Public Member Functions

int colCount ()
int displayInt ()
 ERXTable (WOContext context)
boolean goingVertically ()
boolean hasHeaders ()
String header ()
boolean isStateless ()
void pushItem ()
boolean showIndex ()

Protected Member Functions

void _resetInternalCaches ()

Protected Attributes

Boolean _goingVertically
Boolean _showIndex
String header
int index = 0


Detailed Description

Enhanced table component that adds the ability to have the table layed out in a vertical orientation and adds the ability to specify an array of header images that appear in the header cells of the table. Corrects a bug intorduced in WO 5.1 where OutOfBounds exceptions are thrown. Note that this component subclasses WOTable from this framework, not the WOTable in com.webobjects.woextensions. The reason for this is that all of the instance variables are private in JavaWOExtensions WOTable.

Synopsis:
list=anArray;item=aSettableObject;[col=aSettableNumber;][index=aSettableNumber;][row=aSettableNumber;] [maxColumns=aNumber;][tableBackgroundColor=aString;][border=aNumber;][cellpadding=aNumber;][cellspacing=aNumber;] [rowBackgroundColor=aString;][cellBackgroundColor=aString;][cellAlign=aNumber;][cellVAlign=aNumber;] [cellWidth=aNumber;][tableWidth=aNumber;] [goingVertically=aBoolean;][headerImages=anArray;][headerRowBackgroundColor=aColor;]

col pushed to the parent with the current column number index pushed to the parent indicating the current index list of objects to construct the table for maxColumns maximum number of columns fillColumns when true, loops until the last row is filled even when no more elements are left in the list row pushed to the parent with the current row number item pushed to the parent with the current object from the list tableClass CSS class for the table tableBackgroundColor background color for table border table border cellpadding cell padding cellspacing cell spacing rowBackgroundColor background color to be used for the rows of the table rowClass CSS class for the row cellBackgroundColor background color for the cell cellAlign cell's alignment cellVAlign cell's vertical alignment cellWidth cell's width cellClass CSS class for the cell tableWidth table width goingVertically boolean if the list should be layed out horizontally or vertically. headerImages array of images to be displayed in the header cells of the table headerRowBackgroundColor background color for the header row


Constructor & Destructor Documentation

ERXTable ( WOContext  context  ) 

Public constructor

Parameters:
context the context


Member Function Documentation

void _resetInternalCaches (  )  [protected]

resets the cached variables

Reimplemented from WOTable.

int colCount (  ) 

Reimplemented from WOTable.

int displayInt (  ) 

Returns a displayable value for the index starting from 1 instead of 0.

Returns:
a displayable value for the index starting from 1 instead of 0.

boolean goingVertically (  ) 

Denotes if the list should be layed out vertically or horizontally. This is the boolean value from the binding: goingVertically

Returns:
if the list of items should be layed out vertically.

boolean hasHeaders (  ) 

Conditional to determine if the binding: headerImages is present.

Returns:
if the component has the binding headerImages.

String header (  ) 

boolean isStateless (  ) 

Component is stateless.

Returns:
true

Reimplemented from WOTable.

void pushItem (  ) 

Overridden to account for when goingVertical is enabled. Also corrects a bug from the WO 5.1 release that would throw OutOfBoundsExceptions. This method pushs the current item up to the parent component.

Reimplemented from WOTable.

boolean showIndex (  ) 

Conditional to determine if the index should be shown

Returns:
if the index should be shown from the bindings


Member Data Documentation

Boolean _goingVertically [protected]

caches the value from the binding goingVertical

Boolean _showIndex [protected]

String header [protected]

used in the repetition for header images

int index = 0 [protected]


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

Generated on Sat May 26 06:43:06 2012 for Project Wonder by  doxygen 1.5.8