|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.model.treetable.ColumnModelIterator
public class ColumnModelIterator
A specialized iterator implementation for iterating over the columns of a column model. The iterator takes a so-called key column position into consideration. If the key column position is 0 then the iterator will return the columns in this order: [key, col0, col1, col2] and so on. If the key column position is 1 then the column order will be [col0, key, col1, col2]. The iterator will return the key column last if the key column position is larger than the total number of columns.
AbstractGanttChart.setKeyColumnPosition(int)
Constructor Summary | |
---|---|
ColumnModelIterator(IColumnModel model,
int keyColumnPosition)
Constructs a new column model iterator for the given column model and key column position. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns TRUE if the iterator is capable of returning one more table column. |
TreeTableColumn |
next()
Returns the next tree table column. |
void |
remove()
This method is not supported by this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnModelIterator(IColumnModel model, int keyColumnPosition)
model
- is the column model that provides the key colum and the other
column definitionskeyColumnPosition
- is the position of the key column in the view. This position
can be larger than the actual number of columns in the model.
In this case the key column will be returned after the last
column has been returned.AbstractGanttChart.getKeyColumnPosition()
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<TreeTableColumn>
public TreeTableColumn next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator<TreeTableColumn>
java.util.NoSuchElementException
- if the iterator has already returned the last columnpublic void remove()
remove
in interface java.util.Iterator<TreeTableColumn>
DefaultColumnModel.removeColumn(TreeTableColumn)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |