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

java.lang.Object
  extended by org.omnaest.utils.structure.table.concrete.internal.StripeDataImpl<E>
Type Parameters:
E -
All Implemented Interfaces:
Serializable, TableInternal.StripeData<E>, TableInternal.TableComponentInternal, Table.TableComponent

public class StripeDataImpl<E>
extends Object
implements TableInternal.StripeData<E>

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.omnaest.utils.structure.table.internal.TableInternal.StripeData
TableInternal.StripeData.TitleInternal
 
Field Summary
protected  Set<TableInternal.CellData<E>> cellDataSet
           
protected  TableInternal.StripeDataList<E> stripeDataList
           
protected  TableInternal.StripeData.TitleInternal title
           
 
Constructor Summary
StripeDataImpl(TableInternal.StripeDataList<E> stripeDataList)
           
 
Method Summary
 boolean contains(E element)
          Returns true if one of the Table.Cells of this TableInternal.StripeData contains the given element
 boolean contains(TableInternal.CellData<E> cellData)
          Returns true if this TableInternal.StripeData contains the given TableInternal.CellData.
 Set<TableInternal.CellData<E>> findCellDataSetHavingCellElement(E element)
          Returns a new Set of TableInternal.CellData instances which contains the given element
 Set<TableInternal.CellData<E>> getCellDataSet()
          Returns the internal Table.Cell Set
 List<E> getCellElementList()
          Returns all Table.CellImmutable.getElement() instances as ordered List as currently ordered within the Table.
 TableInternal.StripeData.TitleInternal getTitleInternal()
          Returns the TableInternal.StripeData.TitleInternal.
 void registerCell(TableInternal.CellData<E> cellData)
          Adds a TableInternal.CellData to the TableInternal.StripeData if it does not contain the TableInternal.CellData already.
 void registerCells(Collection<TableInternal.CellData<E>> cellDataCollection)
           
 Table.Stripe.StripeType resolveStripeType()
          Resolves the Table.Stripe.StripeType from the underlying TableInternal.StripeDataList
 String toString()
           
 void unregisterCell(TableInternal.CellData<E> cellData)
          Removes a TableInternal.CellData from the TableInternal.StripeData
 void unregisterCells(Collection<TableInternal.CellData<E>> cellDataCollection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

title

protected TableInternal.StripeData.TitleInternal title

cellDataSet

protected Set<TableInternal.CellData<E>> cellDataSet

stripeDataList

protected TableInternal.StripeDataList<E> stripeDataList
Constructor Detail

StripeDataImpl

public StripeDataImpl(TableInternal.StripeDataList<E> stripeDataList)
Parameters:
stripeDataList -
Method Detail

resolveStripeType

public Table.Stripe.StripeType resolveStripeType()
Description copied from interface: TableInternal.StripeData
Resolves the Table.Stripe.StripeType from the underlying TableInternal.StripeDataList

Specified by:
resolveStripeType in interface TableInternal.StripeData<E>
Returns:

getTitleInternal

public TableInternal.StripeData.TitleInternal getTitleInternal()
Description copied from interface: TableInternal.StripeData
Returns the TableInternal.StripeData.TitleInternal.

Specified by:
getTitleInternal in interface TableInternal.StripeData<E>
Returns:

contains

public boolean contains(TableInternal.CellData<E> cellData)
Description copied from interface: TableInternal.StripeData
Returns true if this TableInternal.StripeData contains the given TableInternal.CellData.

Specified by:
contains in interface TableInternal.StripeData<E>
Returns:

contains

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

Specified by:
contains in interface TableInternal.StripeData<E>
Returns:

registerCell

public void registerCell(TableInternal.CellData<E> cellData)
Description copied from interface: TableInternal.StripeData
Adds a TableInternal.CellData to the TableInternal.StripeData if it does not contain the TableInternal.CellData already. This should allow registering from Table.Cell constructor.

Specified by:
registerCell in interface TableInternal.StripeData<E>
See Also:
#unregisterCell(CellData)

unregisterCell

public void unregisterCell(TableInternal.CellData<E> cellData)
Description copied from interface: TableInternal.StripeData
Removes a TableInternal.CellData from the TableInternal.StripeData

Specified by:
unregisterCell in interface TableInternal.StripeData<E>
See Also:
#registerCell(CellData))

getCellDataSet

public Set<TableInternal.CellData<E>> getCellDataSet()
Description copied from interface: TableInternal.StripeData
Returns the internal Table.Cell Set

Specified by:
getCellDataSet in interface TableInternal.StripeData<E>
Returns:

getCellElementList

public List<E> getCellElementList()
Description copied from interface: TableInternal.StripeData
Returns all Table.CellImmutable.getElement() instances as ordered List as currently ordered within the Table. If the Table order changes the List will not change. Changes to the List are not reflected into the Table.

Specified by:
getCellElementList in interface TableInternal.StripeData<E>
Returns:

unregisterCells

public void unregisterCells(Collection<TableInternal.CellData<E>> cellDataCollection)
Specified by:
unregisterCells in interface TableInternal.StripeData<E>
See Also:
#unregisterCell(CellData)

registerCells

public void registerCells(Collection<TableInternal.CellData<E>> cellDataCollection)
Specified by:
registerCells in interface TableInternal.StripeData<E>
See Also:
TableInternal.StripeData.registerCells(Collection)

findCellDataSetHavingCellElement

public Set<TableInternal.CellData<E>> findCellDataSetHavingCellElement(E element)
Description copied from interface: TableInternal.StripeData
Returns a new Set of TableInternal.CellData instances which contains the given element

Specified by:
findCellDataSetHavingCellElement in interface TableInternal.StripeData<E>
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.