public class ColumnModelIterator extends Object implements Iterator<TreeTableColumn>
AbstractGanttChart.setKeyColumnPosition(int)
Constructor and Description |
---|
ColumnModelIterator(IColumnModel model,
int keyColumnPosition)
Constructs a new column model iterator for the given column model and key
column position.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
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()
public boolean hasNext()
hasNext
in interface Iterator<TreeTableColumn>
public TreeTableColumn next() throws NoSuchElementException
next
in interface Iterator<TreeTableColumn>
NoSuchElementException
- if the iterator has already returned the last columnpublic void remove()
remove
in interface Iterator<TreeTableColumn>
DefaultColumnModel.removeColumn(TreeTableColumn)
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.