java.lang.Object
WOComponent
er.extensions.WOTable
er.extensions.ERXTable
- public class ERXTable
- extends WOTable
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;]
|
Constructor Summary |
ERXTable(WOContext context)
Public constructor |
|
Method Summary |
protected void |
_resetInternalCaches()
resets the cached variables |
boolean |
goingVertically()
Denotes if the list should be layed out vertically
or horizontally. |
boolean |
hasHeaders()
Conditional to determine if the binding: headerImages
is present. |
boolean |
isStateless()
Component is stateless. |
void |
pushItem()
Overridden to account for when goingVertical is
enabled. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
header
protected java.lang.String header
- used in the repetition for header images
_goingVertically
protected java.lang.Boolean _goingVertically
- caches the value from the binding goingVertical
ERXTable
public ERXTable(WOContext context)
- Public constructor
isStateless
public boolean isStateless()
- Component is stateless.
- Overrides:
isStateless in class WOTable
_resetInternalCaches
protected void _resetInternalCaches()
- resets the cached variables
- Overrides:
_resetInternalCaches in class WOTable
goingVertically
public boolean goingVertically()
- Denotes if the list should be layed out vertically
or horizontally. This is the boolean value from the
binding: goingVertically
pushItem
public 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.
- Overrides:
pushItem in class WOTable
hasHeaders
public boolean hasHeaders()
- Conditional to determine if the binding: headerImages
is present.