org.omnaest.utils.structure.table.concrete.internal
Class StripeAbstract<E>

java.lang.Object
  extended by org.omnaest.utils.structure.table.concrete.internal.StripeAbstract<E>
Type Parameters:
E -
All Implemented Interfaces:
Serializable, Iterable<Table.Cell<E>>, TableInternal.StripeInternal<E>, Table.Column<E>, Table.Row<E>, Table.Stripe<E>, Table.TableComponent
Direct Known Subclasses:
StripeImpl

public abstract class StripeAbstract<E>
extends Object
implements TableInternal.StripeInternal<E>

Author:
Omnaest
See Also:
TableInternal.StripeInternal, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.omnaest.utils.structure.table.Table.Stripe
Table.Stripe.StripeType, Table.Stripe.Title
 
Field Summary
protected  TableInternal.StripeData<E> stripeData
           
protected  TableInternal<E> tableInternal
           
 
Constructor Summary
StripeAbstract(TableInternal<E> tableInternal, TableInternal.StripeData<E> stripeData)
           
 
Method Summary
 int determineColumnIndexPosition()
          Determines the index position of this Table.Column within the Table
 int determineRowIndexPosition()
          Determines the index position of this Table.Row within the Table
 boolean equals(Object obj)
           
 E getCellElement(int indexPosition)
          Returns the Table.CellImmutable.getElement() for the given index position
 E getCellElement(Object titleValue)
          Returns the Table.CellImmutable.getElement() for the given index position
 E getCellElement(Table.Stripe<E> stripeOrthogonal)
          Returns the Table.CellImmutable.getElement() for the given orthogonal Table.Stripe
 List<E> getCellElementList()
          Returns a new List instance of all Table.CellImmutable.getElement() in order
 List<Object> getColumnTitleValueList()
           
 Table<E> getTable()
          Returns the underlying Table
 TableInternal<E> getTableInternal()
          Returns the TableInternal reference the current TableInternal.StripeInternal belongs to
 int hashCode()
           
 Table.Stripe<E> setCellElements(E... elements)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omnaest.utils.structure.table.internal.TableInternal.StripeInternal
determineIndexPosition, getStripeData
 
Methods inherited from interface org.omnaest.utils.structure.table.Table.Stripe
cells, clearCellElements, contains, contains, determineNumberOfCells, getCell, getCell, getCell, getTitleValue, hasTitle, setCellElement, setCellElement, setCellElements, title
 
Methods inherited from interface java.lang.Iterable
iterator
 

Field Detail

tableInternal

protected TableInternal<E> tableInternal

stripeData

protected TableInternal.StripeData<E> stripeData
Constructor Detail

StripeAbstract

public StripeAbstract(TableInternal<E> tableInternal,
                      TableInternal.StripeData<E> stripeData)
Parameters:
tableInternal -
stripeData -
Method Detail

determineColumnIndexPosition

public int determineColumnIndexPosition()
Description copied from interface: Table.Column
Determines the index position of this Table.Column within the Table

Specified by:
determineColumnIndexPosition in interface Table.Column<E>
Returns:

determineRowIndexPosition

public int determineRowIndexPosition()
Description copied from interface: Table.Row
Determines the index position of this Table.Row within the Table

Specified by:
determineRowIndexPosition in interface Table.Row<E>
Returns:

setCellElements

public Table.Stripe<E> setCellElements(E... elements)
Specified by:
setCellElements in interface Table.Stripe<E>
Returns:
See Also:
Table.Stripe.setCellElements(Iterable)

getTableInternal

public TableInternal<E> getTableInternal()
Description copied from interface: TableInternal.StripeInternal
Returns the TableInternal reference the current TableInternal.StripeInternal belongs to

Specified by:
getTableInternal in interface TableInternal.StripeInternal<E>
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getCellElementList

public List<E> getCellElementList()
Description copied from interface: Table.Stripe
Returns a new List instance of all Table.CellImmutable.getElement() in order

Specified by:
getCellElementList in interface Table.Stripe<E>
Returns:

getCellElement

public E getCellElement(int indexPosition)
Description copied from interface: Table.Stripe
Returns the Table.CellImmutable.getElement() for the given index position

Specified by:
getCellElement in interface Table.Stripe<E>
Returns:

getCellElement

public E getCellElement(Object titleValue)
Description copied from interface: Table.Stripe
Returns the Table.CellImmutable.getElement() for the given index position

Specified by:
getCellElement in interface Table.Stripe<E>
Returns:

getCellElement

public E getCellElement(Table.Stripe<E> stripeOrthogonal)
Description copied from interface: Table.Stripe
Returns the Table.CellImmutable.getElement() for the given orthogonal Table.Stripe

Specified by:
getCellElement in interface Table.Stripe<E>
Returns:

getTable

public Table<E> getTable()
Description copied from interface: Table.Stripe
Returns the underlying Table

Specified by:
getTable in interface Table.Stripe<E>
Returns:

getColumnTitleValueList

public List<Object> getColumnTitleValueList()
Specified by:
getColumnTitleValueList in interface Table.Row<E>
Returns:
See Also:
TableCoreImmutable.getColumnTitleValueList()


Copyright © 2011. All Rights Reserved.