|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.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 object
public 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() = trueprincipal - The principal object| Method Detail |
public boolean done()
LineIterator
done in interface LineIteratorLineIterator.done()public java.lang.Object current()
LineIterator
current in interface LineIteratorLineIterator.current()public java.lang.Object current(java.lang.String property)
LineIterator
current in interface LineIteratorproperty - Bean Property Name
LineIterator.current(String property)public boolean isValidProperty(java.lang.String property)
LineIterator
isValidProperty in interface LineIteratorproperty - 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 LineIteratorLineIterator.currentKey()public int currentCheckState()
LineIterator
currentCheckState in interface LineIteratorLineIterator.currentCheckState()public int currentIndex()
currentIndex in interface LineIteratorpublic void next()
LineIterator
next in interface LineIteratorLineIterator.next()public void prev()
LineIterator
prev in interface LineIteratorLineIterator.prev()public boolean isMarked()
LineIterator
isMarked in interface LineIteratorLineIterator.isMarked()public void reset()
LineIterator
reset in interface LineIteratorLineIterator.reset()public Principal getPrincipal()
public int getMaxRows()
true
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||