|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.jpivot.table.span.SpanConfigSupport
public class SpanConfigSupport
Created on 29.10.2002
Field Summary |
---|
Fields inherited from interface com.tonbeller.jpivot.table.span.SpanDirections |
---|
HIERARCHY_SPAN, HIERARCHY_THEN_POSITION_SPAN, NO_SPAN, POSITION_SPAN, POSITION_THEN_HIERARCHY_SPAN |
Constructor Summary | |
---|---|
SpanConfigSupport()
|
Method Summary | |
---|---|
int |
chooseSpanDirection(Span span)
returns the direction for span. |
boolean |
equals(Span span1,
Span span2)
returns true, if the objects returned by getObject() are equal. |
int |
getDefaultDirection()
Returns the defaultDirection. |
void |
setDefaultDirection(int defaultDirection)
Sets the defaultDirection. |
void |
setDirection(java.lang.Class clazz,
int direction)
sets the span direction for a specific class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpanConfigSupport()
Method Detail |
---|
public void setDirection(java.lang.Class clazz, int direction)
The order is significant, its the order that chooseDirection will use to test. So you *must* call setDirection with a more specific class before the less specific, e.g. after setDirection(Object.class) no other classes will be recognized, because every class is assignable to object.
public int chooseSpanDirection(Span span)
chooseSpanDirection
in interface SpanConfig
public int getDefaultDirection()
public void setDefaultDirection(int defaultDirection)
defaultDirection
- The defaultDirection to setpublic boolean equals(Span span1, Span span2)
equals
in interface SpanConfig
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |