|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.structure.table.concrete.TableAbstract<E>
org.omnaest.utils.structure.table.concrete.TableBasic<E>
E - public abstract class TableBasic<E>
Declares the methods of basic subspecifications like TableSerializer, TableAdaptable
Table,
TableSerializer,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.omnaest.utils.structure.table.Table |
|---|
Table.Cell<E>, Table.CellImmutable<E>, Table.Column<E>, Table.Row<E>, Table.Stripe<E>, Table.TableCellConverter<FROM,TO>, Table.TableCellVisitor<E>, Table.TableComponent, Table.TableSize |
| Nested classes/interfaces inherited from interface org.omnaest.utils.structure.table.subspecification.TableCloneable |
|---|
TableCloneable.TableCloner<E> |
| Nested classes/interfaces inherited from interface org.omnaest.utils.structure.table.subspecification.TableSelectable |
|---|
TableSelectable.Predicate<E>, TableSelectable.Selection<E>, TableSelectable.SelectionJoin<E>, TableSelectable.Where<E> |
| Nested classes/interfaces inherited from interface org.omnaest.utils.structure.table.subspecification.TableSerializable |
|---|
TableSerializable.TableSerializer<E> |
| Nested classes/interfaces inherited from interface org.omnaest.utils.structure.table.subspecification.TableAdaptable |
|---|
TableAdaptable.TableAdapterProvider<E> |
| Field Summary | |
|---|---|
protected TableAdaptable.TableAdapterProvider<E> |
tableAdapterProvider
|
protected TableCloneable.TableCloner<E> |
tableCloner
|
protected TableSerializable.TableSerializer<E> |
tableSerializer
|
| Constructor Summary | |
|---|---|
TableBasic()
|
|
| Method Summary | ||
|---|---|---|
TableAdaptable.TableAdapterProvider<E> |
as()
|
|
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 |
|
|
convert(Table.TableCellConverter<E,TO> tableCellConverter)
Converts the current Table into a new Table instance with another element type. |
|
Table<E> |
copyFrom(TableDataSource<E> tableDataSource)
Clears the Table and copies the Table.CellImmutable.getElement() values from a given TableDataSource Copyies the
cell |
|
boolean |
equals(Object object)
|
|
boolean |
equals(TableCoreImmutable<E> table)
Compares the data of two Table instances, if they are the same true is returned. |
|
Object |
getColumnTitleValue(int columnIndexPosition)
|
|
List<Object> |
getColumnTitleValueList()
Returns a new List of all Table.Columns Table.Stripe.Title.getValue() for the Table. |
|
Object |
getRowTitleValue(int rowIndexPosition)
|
|
List<Object> |
getRowTitleValueList()
Returns a new List with all the Table.Stripe.getTitleValue() for the Table. |
|
protected abstract Object |
getStripeTitleValue(Table.Stripe.StripeType stripeType,
int indexPosition)
Returns the Table.Stripe.Title.getValue() object for the given index position within the respective
TableContent#getStripeDataList(StripeType) |
|
protected abstract List<Object> |
getStripeTitleValueList(Table.Stripe.StripeType stripeType)
Returns the Table.Stripe.Title.getValue() elements within a List |
|
int |
hashCode()
|
|
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. |
|
Table<E> |
putArray(E[][] elementArray,
int rowIndexPosition,
int columnIndexPosition)
Puts an array into the table. |
|
Table<E> |
putTable(TableDataSource<E> tableDataSource,
int rowIndexPosition,
int columnIndexPosition)
Puts a foreign table into the current table at the given index position. |
|
ListIterable<Table.Row<E>> |
rows()
ListIterable over all Table.Rows |
|
TableSerializable.TableSerializer<E> |
serializer()
|
|
Table<E> |
setColumnTitleValues(List<?> titleValueList)
Sets the Table.Stripe.Titles of the Table.Columns. |
|
Table<E> |
setColumnTitleValues(Object... titleValues)
|
|
Table<E> |
setRowTitleValues(List<?> titleValueList)
Sets the Table.Stripe.Title for the Table.Rows. |
|
Table<E> |
setRowTitleValues(Object... titleValues)
|
|
protected abstract void |
setStripeTitleValueList(List<?> titleValueList,
Table.Stripe.StripeType row)
Sets the Table.Stripe.Title.setValue(Object) of the Rows or Columns |
|
String |
toString()
|
|
| Methods inherited from class org.omnaest.utils.structure.table.concrete.TableAbstract |
|---|
contains, convertFirstColumnToTitle, convertFirstRowToTitle, ensureNumberOfColumns, ensureNumberOfRows, getCellElement, getCellElementList, getCellList, getColumnList, getFirstColumn, getFirstRow, getLastColumn, getLastRow, getRowList, hasColumnTitles, hasRowTitles, hasTableName, removeColumn, removeRow, removeRows, setColumnCellElements, setNumberOfColumns, setNumberOfRows, setRowCellElements, truncateRows |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.omnaest.utils.structure.table.subspecification.TableCore |
|---|
addColumnCellElements, addColumnCellElements, addRowCellElements, addRowCellElements, clear, removeColumn, removeRow, setCellElement, setCellElement, setColumnTitleValue, setRowTitleValue, setTableName, transpose |
| Methods inherited from interface org.omnaest.utils.structure.table.subspecification.TableCoreImmutable |
|---|
getCell, getCell, getCell, getCell, getCell, getCellElement, getColumn, getColumn, getRow, getRow, getTableName, getTableSize |
| Methods inherited from interface org.omnaest.utils.structure.table.subspecification.TableSelectable |
|---|
select |
| Field Detail |
|---|
protected TableSerializable.TableSerializer<E> tableSerializer
protected TableAdaptable.TableAdapterProvider<E> tableAdapterProvider
protected TableCloneable.TableCloner<E> tableCloner
| Constructor Detail |
|---|
public TableBasic()
| Method Detail |
|---|
protected abstract Object getStripeTitleValue(Table.Stripe.StripeType stripeType,
int indexPosition)
Table.Stripe.Title.getValue() object for the given index position within the respective
TableContent#getStripeDataList(StripeType)
stripeType - indexPosition -
protected abstract List<Object> getStripeTitleValueList(Table.Stripe.StripeType stripeType)
Table.Stripe.Title.getValue() elements within a List
stripeType -
protected abstract void setStripeTitleValueList(List<?> titleValueList,
Table.Stripe.StripeType row)
Table.Stripe.Title.setValue(Object) of the Rows or Columns
titleValueList - stripeType - public Table<E> setRowTitleValues(List<?> titleValueList)
TableCoreTable.Stripe.Title for the Table.Rows. This means the visual identifiers at the left of the Table.
TableCore.setRowTitleValue(Object, int),
TableCore.setRowTitleValues(Object...)public Table<E> setColumnTitleValues(List<?> titleValueList)
TableCoreTable.Stripe.Titles of the Table.Columns. The Table.Stripe.Titles can be used to identify a Table.Column, or together with
a Table.Row a single Table.Cell.
TableCore.setColumnTitleValues(Object...)public List<Object> getRowTitleValueList()
TableCoreImmutableList with all the Table.Stripe.getTitleValue() for the Table.
TableCoreImmutable.getRowTitleValue(int)public Object getRowTitleValue(int rowIndexPosition)
TableCoreImmutable.getRowTitleValueList()public List<Object> getColumnTitleValueList()
TableCoreImmutableList of all Table.Columns Table.Stripe.Title.getValue() for the Table.
TableCoreImmutable.getColumnTitleValue(int)public Object getColumnTitleValue(int columnIndexPosition)
TableCoreImmutable.getColumnTitleValueList()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.
#iteratorRow(),
TableCoreImmutable.iterator()public 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.
Table.TableCellVisitorpublic <TO> Table<TO> convert(Table.TableCellConverter<E,TO> tableCellConverter)
TableCoreImmutableTable into a new Table instance with another element type.
Table.TableCellConverterpublic Iterator<Table.Row<E>> iterator()
TableCoreImmutable#iteratorRow()
#iteratorRow(),
TableCoreImmutable.iteratorCell()
public Table<E> putTable(TableDataSource<E> tableDataSource,
int rowIndexPosition,
int columnIndexPosition)
TableCore
public Iterable<Table.Cell<E>> cells()
TableCoreImmutableIterable for the Tables Table.Cells.
TableCoreImmutable.iteratorCell()public ListIterable<Table.Row<E>> rows()
TableCoreImmutableListIterable over all Table.Rows
public Iterable<Table.Column<E>> columns()
TableCoreImmutableIterable over all Table.Columns
public Table<E> putArray(E[][] elementArray,
int rowIndexPosition,
int columnIndexPosition)
TableCore
public Iterator<Table.Column<E>> iteratorColumn()
TableCoreImmutableIterator over all Table.Columns
public int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectpublic boolean equals(TableCoreImmutable<E> table)
TableCoreImmutableTable instances, if they are the same true is returned.
public String toString()
toString in class Objectpublic TableSerializable.TableSerializer<E> serializer()
TableSerializable.TableSerializerpublic Table<E> copyFrom(TableDataSource<E> tableDataSource)
TableAdaptableTable and copies the Table.CellImmutable.getElement() values from a given TableDataSource Copyies the
cell
public Table<E> setRowTitleValues(Object... titleValues)
TableCore.setRowTitleValues(List)public Table<E> setColumnTitleValues(Object... titleValues)
TableCore.setColumnTitleValues(List)public TableAdaptable.TableAdapterProvider<E> as()
TableAdaptable.TableAdapterProvider
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 TableAbstract<E>CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||