|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.ListLineIterator
Class ListLineIterator
Field Summary | |
private int |
current
The current position |
private ListDataModel |
dataModel
The data model |
private int |
maxRows
The maximum number of rows the iterator can handle before returning done() = true |
private Principal |
principal
The principal object with the users permission |
private ListStateModel |
state
The state model |
Constructor Summary | |
ListLineIterator(ListStateModel state,
ListDataModel dataModel,
int current,
int maxRows,
Principal principal)
Constructor |
|
ListLineIterator(ListStateModel state,
ListDataModel dataModel,
int current,
Principal principal)
Constructor |
Method Summary | |
java.lang.Object |
current()
Returns the Object at the current position |
java.lang.Object |
current(java.lang.String property)
Method current |
int |
currentCheckState()
Returns the Check state -1 = The Item can not be checked. |
int |
currentIndex()
Returns the current row index |
java.lang.String |
currentKey()
Method curentKey |
boolean |
done()
Checks if all items are processed |
int |
getMaxRows()
|
Principal |
getPrincipal()
|
boolean |
isMarked()
Checks if the current Item is highlighted |
boolean |
isValidProperty(java.lang.String property)
Checks if the current iteration element has the given property |
void |
next()
Moves to the next element |
void |
prev()
Moves to the previous element |
void |
reset()
resets the iterator to the first element of the collection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int current
private int maxRows
true
private ListStateModel state
private ListDataModel dataModel
private Principal principal
Constructor Detail |
public ListLineIterator(ListStateModel state, ListDataModel dataModel, int current, Principal principal)
state
- The state modeldataModel
- The data model for the list to be processedcurrent
- The index from which to startprincipal
- The principal objectpublic ListLineIterator(ListStateModel state, ListDataModel dataModel, int current, int maxRows, Principal principal)
state
- The state modeldataModel
- The data model for the list to be processedcurrent
- The index from which to startmaxRows
- The maximum number of rows the iterator can handle before
returning done() = true
principal
- The principal objectMethod Detail |
public boolean done()
LineIterator
done
in interface LineIterator
LineIterator.done()
public java.lang.Object current()
LineIterator
current
in interface LineIterator
LineIterator.current()
public java.lang.Object current(java.lang.String property)
LineIterator
current
in interface LineIterator
property
- Bean Property Name
LineIterator.current(String property)
public boolean isValidProperty(java.lang.String property)
LineIterator
isValidProperty
in interface LineIterator
property
- the property name
true
if the current bean possesses a matching
propertyLineIterator.isValidProperty(java.lang.String)
public java.lang.String currentKey()
LineIterator
currentKey
in interface LineIterator
LineIterator.currentKey()
public int currentCheckState()
LineIterator
currentCheckState
in interface LineIterator
LineIterator.currentCheckState()
public int currentIndex()
currentIndex
in interface LineIterator
public void next()
LineIterator
next
in interface LineIterator
LineIterator.next()
public void prev()
LineIterator
prev
in interface LineIterator
LineIterator.prev()
public boolean isMarked()
LineIterator
isMarked
in interface LineIterator
LineIterator.isMarked()
public void reset()
LineIterator
reset
in interface LineIterator
LineIterator.reset()
public Principal getPrincipal()
public int getMaxRows()
true
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |