PadContext Class
- public class PadContext
extends Object
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.
-
Hierarchy
-
Object
PadContext
PadContext
public PadContext(String padText,
int minRepeat,
int maxRepeat)
checkMaxRepeat(int) Method
public boolean checkMaxRepeat(int currCount)
Parameters
-
currCount
- the count of the number of items rendered so far
Returns
true if the maximum number of items have been rendered; false otherwise
checkMinRepeat(int) Method
public boolean checkMinRepeat(int currCount)
Parameters
-
currCount
- the count of the number of items rendered.
Returns
true if the minimum number of items have been rendered; false otherwise
getMaxRepeat() Method
public int getMaxRepeat()
Get the maximum number of times to render items in the repeater's body.
Returns
- the maximum number of items to render items in the repeater's body
getMinRepeat() Method
public int getMinRepeat()
Get the minimum number of times to render an item in the repeater's body.
Returns
- the minimum number of items that must be rendered in the repeater's body
getPadText() Method
public String getPadText()
Get the text to use when padding the Repeater
Returns
- the pad text
toString() Method
public String toString()
Get a debugging String that represents a PadContext.
-
Overrides
-
Object.toString()
Returns
- a String representation of the PadContext