PadContext Class

com.bea.wlw.netui.tags.databinding.repeater.pad
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

Field Summary

 

Constructor Summary

PadContext(String padText, int minRepeat, int maxRepeat)

 

Method Summary

public boolean
checkMaxRepeat(int currCount)
public boolean
checkMinRepeat(int currCount)
public int
getMaxRepeat()
Get the maximum number of times to render items in the repeater's body.
public int
getMinRepeat()
Get the minimum number of times to render an item in the repeater's body.
public String
getPadText()
Get the text to use when padding the Repeater
public String
toString()
Get a debugging String that represents a PadContext.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
   

Field Detail

Constructor Detail

PadContext

public PadContext(String padText, 
                  int minRepeat, 
                  int maxRepeat)
 

Method Detail

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