org.omnaest.utils.structure.table
Interface Table.Stripe<E>

Type Parameters:
E -
All Superinterfaces:
Iterable<Table.Cell<E>>, Serializable, Table.TableComponent
All Known Subinterfaces:
Table.Column<E>, Table.Row<E>, TableInternal.StripeInternal<E>
All Known Implementing Classes:
StripeAbstract, StripeImpl
Enclosing interface:
Table<E>

public static interface Table.Stripe<E>
extends Table.TableComponent, Iterable<Table.Cell<E>>

Common abstraction for a Table.Column and a Table.Row

Author:
Omnaest
See Also:
Table, Table.Row, Table.Column

Nested Class Summary
static class Table.Stripe.StripeType
          Table.Stripe.StripeType of a Table.Stripe
static interface Table.Stripe.Title
          Table.Stripe.Title of a single Table.Stripe.
 
Method Summary
 Iterable<Table.Cell<E>> cells()
          Returns an Iterable for all Table.Cells of this Table.Stripe
 Table.Stripe<E> clearCellElements()
          Sets all available Table.Cell.setElement(Object) to null
 boolean contains(E element)
          Returns true if one of the Table.Cells of this Table.Stripe contains the given element
 boolean contains(Table.Cell<E> cell)
          Returns true if this Table.Stripe contains the given Table.Cell.
 int determineNumberOfCells()
          Determines the number of Table.Cells currently stored within this Table.Stripe
 Table.Cell<E> getCell(int indexPosition)
          Get the Table.Cell for the given index position.
 Table.Cell<E> getCell(Object titleValue)
          Returns the Table.Cell for the title value of the orthogonal getTitleValue()
 Table.Cell<E> getCell(Table.Stripe<E> stripeOrthogonal)
          Returns the Table.Cell for the title value of the orthogonal Table.Stripe
 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
 Table<E> getTable()
          Returns the underlying Table
 Object getTitleValue()
          Returns the Table.Stripe.Title.getValue()
 boolean hasTitle()
          Returns true if the Table.Stripe has a Table.Stripe.Title value not null
 Table.Stripe<E> setCellElement(int indexPosition, E element)
          Set the Table.Cell.setElement(Object) for the Table.Cell corresponding to the given orthogonal index position
 Table.Stripe<E> setCellElement(Object titleValue, E element)
          Sets the Table.Cell.setElement(Object) for the Table.Cell corresponding to the given title value
 Table.Stripe<E> setCellElements(E... elements)
           
 Table.Stripe<E> setCellElements(Iterable<E> elements)
          Sets the Table.Cell.setElement(Object) of the whole Table.Stripe
 Table.Stripe.Title title()
          Returns the Table.Stripe.Title.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getCell

Table.Cell<E> getCell(int indexPosition)
Get the Table.Cell for the given index position.

Parameters:
indexPosition -
Returns:

getCellElement

E getCellElement(int indexPosition)
Returns the Table.CellImmutable.getElement() for the given index position

Parameters:
indexPosition -
Returns:

getCell

Table.Cell<E> getCell(Object titleValue)
Returns the Table.Cell for the title value of the orthogonal getTitleValue()

Parameters:
titleValue -
Returns:

getCell

Table.Cell<E> getCell(Table.Stripe<E> stripeOrthogonal)
Returns the Table.Cell for the title value of the orthogonal Table.Stripe

Parameters:
stripeOrthogonal -
Returns:

getCellElement

E getCellElement(Object titleValue)
Returns the Table.CellImmutable.getElement() for the given index position

Parameters:
titleValue -
Returns:

getCellElement

E getCellElement(Table.Stripe<E> stripeOrthogonal)
Returns the Table.CellImmutable.getElement() for the given orthogonal Table.Stripe

Parameters:
stripeOrthogonal -
Returns:

getCellElementList

List<E> getCellElementList()
Returns a new List instance of all Table.CellImmutable.getElement() in order

Returns:

title

Table.Stripe.Title title()
Returns the Table.Stripe.Title.

Returns:

getTitleValue

Object getTitleValue()
Returns the Table.Stripe.Title.getValue()

Returns:

contains

boolean contains(Table.Cell<E> cell)
Returns true if this Table.Stripe contains the given Table.Cell.

Parameters:
cell -
Returns:

contains

boolean contains(E element)
Returns true if one of the Table.Cells of this Table.Stripe contains the given element

Parameters:
element -
Returns:

setCellElement

Table.Stripe<E> setCellElement(Object titleValue,
                               E element)
Sets the Table.Cell.setElement(Object) for the Table.Cell corresponding to the given title value

Parameters:
titleValue -
element -
Returns:
this

setCellElements

Table.Stripe<E> setCellElements(Iterable<E> elements)
Sets the Table.Cell.setElement(Object) of the whole Table.Stripe

Parameters:
elements -
Returns:
this

setCellElements

Table.Stripe<E> setCellElements(E... elements)
Parameters:
elements -
Returns:
See Also:
setCellElements(Iterable)

setCellElement

Table.Stripe<E> setCellElement(int indexPosition,
                               E element)
Set the Table.Cell.setElement(Object) for the Table.Cell corresponding to the given orthogonal index position

Parameters:
indexPosition -
element -
Returns:
this

determineNumberOfCells

int determineNumberOfCells()
Determines the number of Table.Cells currently stored within this Table.Stripe

Returns:

hasTitle

boolean hasTitle()
Returns true if the Table.Stripe has a Table.Stripe.Title value not null

Returns:

cells

Iterable<Table.Cell<E>> cells()
Returns an Iterable for all Table.Cells of this Table.Stripe

Returns:

clearCellElements

Table.Stripe<E> clearCellElements()
Sets all available Table.Cell.setElement(Object) to null

Returns:

getTable

Table<E> getTable()
Returns the underlying Table

Returns:


Copyright © 2011. All Rights Reserved.