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

java.lang.Object
  extended by org.omnaest.utils.structure.table.concrete.internal.StripeAbstract<E>
      extended by org.omnaest.utils.structure.table.concrete.internal.StripeImpl<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

public class StripeImpl<E>
extends StripeAbstract<E>

Author:
Omnaest
See Also:
TableInternal.StripeInternal, StripeAbstract, 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
 
Fields inherited from class org.omnaest.utils.structure.table.concrete.internal.StripeAbstract
stripeData, tableInternal
 
Constructor Summary
StripeImpl(TableInternal<E> tableInternal, TableInternal.StripeData<E> stripeData)
           
 
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 determineIndexPosition()
          Determines the index position of this Table.Stripe within the Table
 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 Table.Stripe.getTitleValue()
 Table.Cell<E> getCell(Table.Stripe<E> stripeOrthogonal)
          Returns the Table.Cell for the title value of the orthogonal Table.Stripe
 TableInternal.StripeData<E> getStripeData()
          Returns the underlying TableInternal.StripeData
 Object getTitleValue()
          Returns the Table.Stripe.Title.getValue()
 boolean hasTitle()
          Returns true if the Table.Stripe has a Table.Stripe.Title value not null
 Iterator<Table.Cell<E>> iterator()
           
protected  Table.Cell<E> resolvesOrCreateCellWithinNewTableArea(int indexPosition)
           
protected  Table.Cell<E> resolvesOrCreateCellWithinNewTableArea(Object titleValue)
           
 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(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 class org.omnaest.utils.structure.table.concrete.internal.StripeAbstract
determineColumnIndexPosition, determineRowIndexPosition, equals, getCellElement, getCellElement, getCellElement, getCellElementList, getColumnTitleValueList, getTable, getTableInternal, hashCode, setCellElements, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StripeImpl

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

title

public Table.Stripe.Title title()
Description copied from interface: Table.Stripe
Returns the Table.Stripe.Title.

Returns:

iterator

public Iterator<Table.Cell<E>> iterator()

contains

public boolean contains(Table.Cell<E> cell)
Description copied from interface: Table.Stripe
Returns true if this Table.Stripe contains the given Table.Cell.

Returns:

cells

public Iterable<Table.Cell<E>> cells()
Description copied from interface: Table.Stripe
Returns an Iterable for all Table.Cells of this Table.Stripe

Returns:

getCell

public Table.Cell<E> getCell(int indexPosition)
Description copied from interface: Table.Stripe
Get the Table.Cell for the given index position.

Returns:

getCell

public Table.Cell<E> getCell(Object titleValue)
Description copied from interface: Table.Stripe
Returns the Table.Cell for the title value of the orthogonal Table.Stripe.getTitleValue()

Returns:

getCell

public Table.Cell<E> getCell(Table.Stripe<E> stripeOrthogonal)
Description copied from interface: Table.Stripe
Returns the Table.Cell for the title value of the orthogonal Table.Stripe

Returns:

setCellElement

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

Returns:
this

setCellElement

public Table.Stripe<E> setCellElement(Object titleValue,
                                      E element)
Description copied from interface: Table.Stripe
Sets the Table.Cell.setElement(Object) for the Table.Cell corresponding to the given title value

Returns:
this

determineNumberOfCells

public int determineNumberOfCells()
Description copied from interface: Table.Stripe
Determines the number of Table.Cells currently stored within this Table.Stripe

Returns:

contains

public boolean contains(E element)
Description copied from interface: Table.Stripe
Returns true if one of the Table.Cells of this Table.Stripe contains the given element

Returns:

getStripeData

public TableInternal.StripeData<E> getStripeData()
Description copied from interface: TableInternal.StripeInternal
Returns the underlying TableInternal.StripeData

Returns:

resolvesOrCreateCellWithinNewTableArea

protected Table.Cell<E> resolvesOrCreateCellWithinNewTableArea(int indexPosition)
Parameters:
indexPosition -
Returns:

resolvesOrCreateCellWithinNewTableArea

protected Table.Cell<E> resolvesOrCreateCellWithinNewTableArea(Object titleValue)
Parameters:
titleValue -
Returns:

hasTitle

public boolean hasTitle()
Description copied from interface: Table.Stripe
Returns true if the Table.Stripe has a Table.Stripe.Title value not null

Returns:

determineIndexPosition

public int determineIndexPosition()
Description copied from interface: TableInternal.StripeInternal
Determines the index position of this Table.Stripe within the Table

Returns:

setCellElements

public Table.Stripe<E> setCellElements(Iterable<E> elements)
Description copied from interface: Table.Stripe
Sets the Table.Cell.setElement(Object) of the whole Table.Stripe

Returns:
this

clearCellElements

public Table.Stripe<E> clearCellElements()
Description copied from interface: Table.Stripe
Sets all available Table.Cell.setElement(Object) to null

Returns:

getTitleValue

public Object getTitleValue()
Description copied from interface: Table.Stripe
Returns the Table.Stripe.Title.getValue()

Returns:


Copyright © 2011. All Rights Reserved.