|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.structure.table.view.concrete.TableViewImpl<E>
public class TableViewImpl<E>
TableView,
Table,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.omnaest.utils.structure.table.subspecification.TableCloneable |
|---|
TableCloneable.TableCloner<E> |
| Field Summary | |
|---|---|
protected TableSelectable.Selection<E> |
selection
|
protected Table<E> |
table
|
| Constructor Summary | |
|---|---|
TableViewImpl(TableSelectable.Selection<E> selection)
|
|
| Method Summary | ||
|---|---|---|
Iterable<Table.Cell<E>> |
cells()
Iterable for the Tables Table.Cells. |
|
TableCloneable.TableCloner<E> |
clone()
Returns the TableCloneable.TableCloner for the Table which allows to clone it. |
|
Iterable<Table.Column<E>> |
columns()
Iterable over all Table.Columns |
|
boolean |
contains(E element)
Returns true, if the whole Table contains the given element. |
|
|
convert(Table.TableCellConverter<E,TO> tableCellConverter)
Converts the current Table into a new Table instance with another element type. |
|
boolean |
equals(Object obj)
|
|
boolean |
equals(TableCoreImmutable<E> table)
Compares the data of two Table instances, if they are the same true is returned. |
|
boolean |
equals(TableView<E> tableView)
|
|
Table.Cell<E> |
getCell(int cellIndexPosition)
Returns the Table.Cell determined by the given Table.Cell index position. |
|
Table.Cell<E> |
getCell(int rowIndexPosition,
int columnIndexPosition)
Resolves the Table.Cell for the given index positions. |
|
Table.Cell<E> |
getCell(int rowIndexPosition,
Object columnTitleValue)
|
|
Table.Cell<E> |
getCell(Object rowTitleValue,
int columnIndexPosition)
|
|
Table.Cell<E> |
getCell(String rowTitleValue,
String columnTitleValue)
|
|
E |
getCellElement(int cellIndexPosition)
Returns the Table.CellImmutable.getElement() for the given Table.Cell index position |
|
E |
getCellElement(int rowIndexPosition,
int columnIndexPosition)
Resolves an element from the table at the given index positions. |
|
List<E> |
getCellElementList()
Returns a new List of all Table.Cell instances of the Table serialized . |
|
List<Table.Cell<E>> |
getCellList()
Returns a to the table backed list of all cells. |
|
Table.Column<E> |
getColumn(int columnIndexPosition)
Returns a Table.Column for the given Table.Column index position. |
|
Table.Column<E> |
getColumn(Object columnTitleValue)
Returns a Table.Column for the given Table.Column title value. |
|
List<Table.Column<E>> |
getColumnList()
Returns a List of all Table.Columns |
|
Object |
getColumnTitleValue(int columnIndexPosition)
|
|
List<Object> |
getColumnTitleValueList()
Returns a new List of all Table.Columns Table.Stripe.Title.getValue() for the Table. |
|
Table.Column<E> |
getFirstColumn()
Returns the first Table.Column of the Table |
|
Table.Row<E> |
getFirstRow()
Returns the first Table.Row of the Table |
|
Table.Column<E> |
getLastColumn()
Returns the last Table.Column of the Table |
|
Table.Row<E> |
getLastRow()
Returns the last Table.Row of the Table |
|
Table.Row<E> |
getRow(int rowIndexPosition)
Returns a new list that holds the object of the row pointed to. |
|
Table.Row<E> |
getRow(Object rowTitleValue)
Returns a Table.Row of the Table identified by the title of a row. |
|
List<Table.Row<E>> |
getRowList()
Returns a List of all Table.Rows |
|
Object |
getRowTitleValue(int rowIndexPosition)
|
|
List<Object> |
getRowTitleValueList()
Returns a new List with all the Table.Stripe.getTitleValue() for the Table. |
|
Object |
getTableName()
Returns the name for the whole table. |
|
Table.TableSize |
getTableSize()
Returns a Table.TableSize object for the table. |
|
boolean |
hasColumnTitles()
Returns true if at least one Table.Column has a Table.Stripe.Title |
|
int |
hashCode()
|
|
boolean |
hasRowTitles()
Returns true if at least one Table.Row has a Table.Stripe.Title |
|
boolean |
hasTableName()
Returns true if the TableCoreImmutable.getTableName() is not null |
|
Iterator<Table.Row<E>> |
iterator()
The same as #iteratorRow() |
|
Iterator<Table.Cell<E>> |
iteratorCell()
Returns an Iterator that goes through every Table.Column for every Table.Row. |
|
Iterator<Table.Column<E>> |
iteratorColumn()
Returns an Iterator over all Table.Columns |
|
Table<E> |
processTableCells(Table.TableCellVisitor<E> tableCellVisitor)
Helper method to do arbitrary stuff on the Table Table.Cells. |
|
TableView<E> |
refresh()
Recalculates the underlying TableSelectable.Selection and updates the TableView with the new results |
|
ListIterable<Table.Row<E>> |
rows()
ListIterable over all Table.Rows |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TableSelectable.Selection<E> selection
protected Table<E> table
| Constructor Detail |
|---|
public TableViewImpl(TableSelectable.Selection<E> selection)
selection - | Method Detail |
|---|
public TableView<E> refresh()
TableViewTableSelectable.Selection and updates the TableView with the new results
refresh in interface TableView<E>public boolean equals(TableView<E> tableView)
equals in interface TableView<E>public boolean equals(TableCoreImmutable<E> table)
TableCoreImmutableTable instances, if they are the same true is returned.
equals in interface TableCoreImmutable<E>public List<Object> getRowTitleValueList()
TableCoreImmutableList with all the Table.Stripe.getTitleValue() for the Table.
getRowTitleValueList in interface TableCoreImmutable<E>getRowTitleValueList in interface TableDataSource<E>TableCoreImmutable.getRowTitleValue(int)public Object getRowTitleValue(int rowIndexPosition)
getRowTitleValue in interface TableCoreImmutable<E>TableCoreImmutable.getRowTitleValueList()public List<Object> getColumnTitleValueList()
TableCoreImmutableList of all Table.Columns Table.Stripe.Title.getValue() for the Table.
getColumnTitleValueList in interface TableCoreImmutable<E>getColumnTitleValueList in interface TableDataSource<E>TableCoreImmutable.getColumnTitleValue(int)public Object getColumnTitleValue(int columnIndexPosition)
getColumnTitleValue in interface TableCoreImmutable<E>TableCoreImmutable.getColumnTitleValueList()public Table.TableSize getTableSize()
TableCoreImmutableTable.TableSize object for the table. The object will have always actual results, that will change if the data of
the Table is changed.
getTableSize in interface TableCoreImmutable<E>
public E getCellElement(int rowIndexPosition,
int columnIndexPosition)
TableCoreImmutable
getCellElement in interface TableCoreImmutable<E>TableCoreImmutable.getCellElement(int)public E getCellElement(int cellIndexPosition)
TableCoreImmutableTable.CellImmutable.getElement() for the given Table.Cell index position
getCellElement in interface TableCoreImmutable<E>TableCoreImmutable.getCellElement(int, int),
TableCoreImmutable.getCellElementList()public List<E> getCellElementList()
TableCoreImmutableList of all Table.Cell instances of the Table serialized .
getCellElementList in interface TableCoreImmutable<E>TableCoreImmutable.getCellElement(int)
public Table.Cell<E> getCell(int rowIndexPosition,
int columnIndexPosition)
TableCoreImmutableTable.Cell for the given index positions.
getCell in interface TableCoreImmutable<E>public Table.Cell<E> getCell(int cellIndexPosition)
TableCoreImmutableTable.Cell determined by the given Table.Cell index position. The Table.Cell index position starts with 0
and increases horizontally with each Table.Column and this through every single Table.Row down to the bottom of the
Table. Returns null if the Table.Cell index position is out of Table bounds.
getCell in interface TableCoreImmutable<E>
public Table.Cell<E> getCell(String rowTitleValue,
String columnTitleValue)
getCell in interface TableCoreImmutable<E>TableCoreImmutable.getCell(int, int)
public Table.Cell<E> getCell(Object rowTitleValue,
int columnIndexPosition)
getCell in interface TableCoreImmutable<E>TableCoreImmutable.getCell(int, int)
public Table.Cell<E> getCell(int rowIndexPosition,
Object columnTitleValue)
getCell in interface TableCoreImmutable<E>TableCoreImmutable.getCell(int, int)public List<Table.Cell<E>> getCellList()
TableCoreImmutable
getCellList in interface TableCoreImmutable<E>TableCorepublic Table.Row<E> getRow(int rowIndexPosition)
TableCoreImmutable
getRow in interface TableCoreImmutable<E>public List<Table.Row<E>> getRowList()
TableCoreImmutableList of all Table.Rows
getRowList in interface TableCoreImmutable<E>public Table.Row<E> getRow(Object rowTitleValue)
TableCoreImmutableTable.Row of the Table identified by the title of a row. Before this can be used, the titles have to be
set by #setRowTitleValues(List)
getRow in interface TableCoreImmutable<E>TableCoreImmutable.getRow(int)public Table.Column<E> getColumn(int columnIndexPosition)
TableCoreImmutableTable.Column for the given Table.Column index position.
getColumn in interface TableCoreImmutable<E>TableCoreImmutable.getColumn(Object)public List<Table.Column<E>> getColumnList()
TableCoreImmutableList of all Table.Columns
getColumnList in interface TableCoreImmutable<E>public Table.Column<E> getColumn(Object columnTitleValue)
TableCoreImmutableTable.Column for the given Table.Column title value. The Table.Column titles have to be set before with
#setColumnTitleValues(List)
getColumn in interface TableCoreImmutable<E>TableCoreImmutable.getColumn(int)public boolean contains(E element)
TableCoreImmutableTable contains the given element.
contains in interface TableCoreImmutable<E>public Iterator<Table.Cell<E>> iteratorCell()
TableCoreImmutableIterator that goes through every Table.Column for every Table.Row. Starting from left to right and
then downwards all the Table.Rows.
iteratorCell in interface TableCoreImmutable<E>#iteratorRow(),
TableCoreImmutable.iterator()public Iterable<Table.Cell<E>> cells()
TableCoreImmutableIterable for the Tables Table.Cells.
cells in interface TableCoreImmutable<E>TableCoreImmutable.iteratorCell()public ListIterable<Table.Row<E>> rows()
TableCoreImmutableListIterable over all Table.Rows
rows in interface TableCoreImmutable<E>rows in interface TableDataSource<E>public Iterable<Table.Column<E>> columns()
TableCoreImmutableIterable over all Table.Columns
columns in interface TableCoreImmutable<E>public Iterator<Table.Column<E>> iteratorColumn()
TableCoreImmutableIterator over all Table.Columns
iteratorColumn in interface TableCoreImmutable<E>public Iterator<Table.Row<E>> iterator()
TableCoreImmutable#iteratorRow()
iterator in interface TableCoreImmutable<E>#iteratorRow(),
TableCoreImmutable.iteratorCell()public <TO> Table<TO> convert(Table.TableCellConverter<E,TO> tableCellConverter)
TableCoreImmutableTable into a new Table instance with another element type.
convert in interface TableCoreImmutable<E>Table.TableCellConverterpublic Table<E> processTableCells(Table.TableCellVisitor<E> tableCellVisitor)
TableCoreImmutableTable Table.Cells. The processor loops through every Table.Column of
each Table.Row, giving a visitor the possibility to do various actions.
processTableCells in interface TableCoreImmutable<E>Table.TableCellVisitorpublic boolean hasColumnTitles()
TableCoreImmutableTable.Column has a Table.Stripe.Title
hasColumnTitles in interface TableCoreImmutable<E>public boolean hasRowTitles()
TableCoreImmutableTable.Row has a Table.Stripe.Title
hasRowTitles in interface TableCoreImmutable<E>public boolean hasTableName()
TableCoreImmutableTableCoreImmutable.getTableName() is not null
hasTableName in interface TableCoreImmutable<E>public Object getTableName()
TableCoreImmutable
getTableName in interface TableCoreImmutable<E>getTableName in interface TableDataSource<E>public Table.Row<E> getLastRow()
TableCoreImmutableTable.Row of the Table
getLastRow in interface TableCoreImmutable<E>TableCoreImmutable.getLastRow()public Table.Column<E> getLastColumn()
TableCoreImmutableTable.Column of the Table
getLastColumn in interface TableCoreImmutable<E>TableCoreImmutable.getLastColumn()public Table.Row<E> getFirstRow()
TableCoreImmutableTable.Row of the Table
getFirstRow in interface TableCoreImmutable<E>TableCoreImmutable.getFirstRow()public Table.Column<E> getFirstColumn()
TableCoreImmutableTable.Column of the Table
getFirstColumn in interface TableCoreImmutable<E>TableCoreImmutable.getFirstColumn()public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
public TableCloneable.TableCloner<E> clone()
throws CloneNotSupportedException
TableCloneableTableCloneable.TableCloner for the Table which allows to clone it.
clone in interface TableCloneable<E>clone in class ObjectCloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||