|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectPadContext
public class PadContext
A JavaBean that encapsulates the data needed to pad a Repeater with text. The PadContext is needed if the given consttraints, the minRepeat and maxRepeat attributes, require that the data rendered in the repeater be padded.
| Constructor Summary | |
|---|---|
PadContext(String padText,
int minRepeat,
int maxRepeat)
|
|
| Method Summary | |
|---|---|
boolean |
checkMaxRepeat(int currCount)
|
boolean |
checkMinRepeat(int currCount)
|
int |
getMaxRepeat()
Get the maximum number of times to render items in the repeater's body. |
int |
getMinRepeat()
Get the minimum number of times to render an item in the repeater's body. |
String |
getPadText()
Get the text to use when padding the Repeater |
String |
toString()
Get a debugging String that represents a PadContext. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PadContext(String padText,
int minRepeat,
int maxRepeat)
padText - the text that will be used to pad the Repeater content, if necessaryminRepeat - the minimum number of items that must be rendered in the repeater's bodymaxRepeat - the maximum number of items to render in the repeater's body| Method Detail |
|---|
public String getPadText()
Repeater
public int getMinRepeat()
public int getMaxRepeat()
public boolean checkMinRepeat(int currCount)
currCount - the count of the number of items rendered.
true if the minimum number of items have been rendered; false otherwisepublic boolean checkMaxRepeat(int currCount)
currCount - the count of the number of items rendered so far
true if the maximum number of items have been rendered; false otherwisepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||