org.omnaest.utils.structure.table.concrete.internal
Class StripeDataImpl<E>
java.lang.Object
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
title
protected TableInternal.StripeData.TitleInternal title
cellDataSet
protected Set<TableInternal.CellData<E>> cellDataSet
stripeDataList
protected TableInternal.StripeDataList<E> stripeDataList
StripeDataImpl
public StripeDataImpl(TableInternal.StripeDataList<E> stripeDataList)
- Parameters:
stripeDataList -
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.