|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portlet.forums.helper.Range
Generate a jump bar like : [0,1,2,...,10,11,12,...,21,22,23]
Field Summary | |
protected int |
left
DOCUMENT_ME |
protected int |
middle
DOCUMENT_ME |
protected int |
right
DOCUMENT_ME |
Constructor Summary | |
Range(int left,
int middle,
int right)
|
Method Summary | |
protected java.lang.String |
build(int size,
int offset)
Do the job. |
protected void |
end(java.lang.StringBuffer buffer)
End the generated string. |
protected void |
enhanced(java.lang.StringBuffer buffer,
int index)
Generates a non last enhanced item. |
protected void |
gap(java.lang.StringBuffer buffer)
Generates a gap. |
protected void |
lastEnhanced(java.lang.StringBuffer buffer,
int index)
Generates a last enhanced item. |
protected void |
lastNormal(java.lang.StringBuffer buffer,
int index)
Generates a last normal item. |
protected void |
normal(java.lang.StringBuffer buffer,
int index)
Generates a non last normal item. |
protected void |
separe(java.lang.StringBuffer buffer)
Generates a separator. |
protected void |
start(java.lang.StringBuffer buffer)
Begin the generated string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final int left
protected final int middle
protected final int right
Constructor Detail |
public Range(int left, int middle, int right)
left
- is the max number of items displayed on the left partmiddle
- is the max number of items displayed in the middle partright
- is the max number of items displayed in the right partMethod Detail |
protected void start(java.lang.StringBuffer buffer)
protected void end(java.lang.StringBuffer buffer)
protected void normal(java.lang.StringBuffer buffer, int index)
protected void lastNormal(java.lang.StringBuffer buffer, int index)
protected void enhanced(java.lang.StringBuffer buffer, int index)
protected void lastEnhanced(java.lang.StringBuffer buffer, int index)
protected void gap(java.lang.StringBuffer buffer)
protected void separe(java.lang.StringBuffer buffer)
protected final java.lang.String build(int size, int offset)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |