|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.wlw.netui.tags.databinding.repeater.pad.PadContext
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.
Field Summary | |
---|---|
static int |
DEFAULT_VALUE
|
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_VALUE
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 bodyMethod 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
|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |