org.omnaest.utils.structure.table.internal
Interface TableInternal.StripeDataList<E>

Type Parameters:
E -
All Superinterfaces:
Iterable<TableInternal.StripeData<E>>, Serializable, Table.TableComponent, TableInternal.TableComponentInternal
All Known Implementing Classes:
StripeDataListImpl
Enclosing interface:
TableInternal<E>

public static interface TableInternal.StripeDataList<E>
extends Iterable<TableInternal.StripeData<E>>, TableInternal.TableComponentInternal

Author:
Omnaest
See Also:
TableInternal

Method Summary
 void addAllStripeData(Iterable<TableInternal.StripeData<E>> stripeDataIterable)
           
 TableInternal.StripeData<E> addNewStripeData()
          Adds a new created TableInternal.StripeData instance to the end of the TableInternal.StripeDataList
 TableInternal.StripeData<E> addNewStripeData(int indexPosition)
          Adds a new created TableInternal.StripeData instance into the given index position of the TableInternal.StripeDataList.
 void addStripeData(TableInternal.StripeData<E> stripeData)
          Adds a TableInternal.StripeData instance to the current TableInternal.StripeDataList
 void clear()
          Clears the TableInternal.StripeDataList.
 boolean contains(Object titleValue)
          Returns true if the TableInternal.StripeDataList contains a Table.Stripe with the given Table.Stripe.Title.getValue()
 boolean contains(TableInternal.StripeData<E> stripeData)
          Returns true if the TableInternal.StripeDataList contains the given TableInternal.StripeData
 List<TableInternal.StripeData<E>> findStripeDataListContaining(TableInternal.CellData<E> cellData)
          Returns the List of TableInternal.StripeData which contains the given Table.Cell
 TableInternal.StripeData<E> getStripeData(int indexPosition)
          Returns the stripe at the given index position.
 TableInternal.StripeData<E> getStripeData(Object titleValue)
          Returns the TableInternal.StripeData with the given Table.Stripe.Title.getValue().
 Table.Stripe.StripeType getStripeType()
          Returns the Table.Stripe.StripeType information of the TableInternal.StripeDataList
 int indexOf(TableInternal.StripeData<E> stripeData)
          Returns the index of a given Table.Stripe
 boolean isEmpty()
          Returns true if the TableInternal.StripeDataList does not contain any Table.Stripe instance.
 void registerStripeDataForCellDatas(Collection<TableInternal.CellData<E>> cellDataCollection, TableInternal.StripeData<E> stripeData)
          Registers a TableInternal.StripeData instance for the given TableInternal.CellData instances
 TableInternal.StripeData<E> removeStripeData(int indexPosition)
          Removes a TableInternal.StripeData from the TableInternal.StripeDataList without detaching its TableInternal.CellData from the orthogonal TableInternal.StripeData instances.
 void removeStripeData(TableInternal.StripeData<E> stripeData)
          Removes a TableInternal.StripeData from the TableInternal.StripeDataList without detaching its TableInternal.CellData instances from the orthogonal TableInternal.StripeData instances
 void setStripeType(Table.Stripe.StripeType stripeType)
          Sets the Table.Stripe.StripeType information of the TableInternal.StripeDataList
 int size()
          Returns the size of the TableInternal.StripeDataList
 void unregisterCells(Iterable<TableInternal.CellData<E>> cellDataIterable)
          Unregisters the given TableInternal.CellData instances from all TableInternal.StripeData contained within this TableInternal.StripeDataList
 void unregisterStripeDataForCellDatas(Collection<TableInternal.CellData<E>> cellDataCollection, TableInternal.StripeData<E> stripeData)
          Unregisters the given Collection of TableInternal.CellData instances for the TableInternal.StripeData
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getStripeType

Table.Stripe.StripeType getStripeType()
Returns the Table.Stripe.StripeType information of the TableInternal.StripeDataList

Returns:

setStripeType

void setStripeType(Table.Stripe.StripeType stripeType)
Sets the Table.Stripe.StripeType information of the TableInternal.StripeDataList

Parameters:
stripeType -

indexOf

int indexOf(TableInternal.StripeData<E> stripeData)
Returns the index of a given Table.Stripe

Parameters:
stripeData -
Returns:

getStripeData

TableInternal.StripeData<E> getStripeData(int indexPosition)
Returns the stripe at the given index position. If the index position is out of bounds null is returned.

Parameters:
indexPosition -
Returns:

findStripeDataListContaining

List<TableInternal.StripeData<E>> findStripeDataListContaining(TableInternal.CellData<E> cellData)
Returns the List of TableInternal.StripeData which contains the given Table.Cell

Parameters:
cellData -
Returns:

isEmpty

boolean isEmpty()
Returns true if the TableInternal.StripeDataList does not contain any Table.Stripe instance.

Returns:

size

int size()
Returns the size of the TableInternal.StripeDataList

Returns:

clear

void clear()
Clears the TableInternal.StripeDataList.


addNewStripeData

TableInternal.StripeData<E> addNewStripeData()
Adds a new created TableInternal.StripeData instance to the end of the TableInternal.StripeDataList

Returns:

addNewStripeData

TableInternal.StripeData<E> addNewStripeData(int indexPosition)
Adds a new created TableInternal.StripeData instance into the given index position of the TableInternal.StripeDataList. This moves an already existing Table.Stripe at that position and all following Table.Stripe instances one position further.

Parameters:
indexPosition -
Returns:

addStripeData

void addStripeData(TableInternal.StripeData<E> stripeData)
Adds a TableInternal.StripeData instance to the current TableInternal.StripeDataList

Parameters:
stripeData -
See Also:
#addAllStripeData(Collection)

addAllStripeData

void addAllStripeData(Iterable<TableInternal.StripeData<E>> stripeDataIterable)
Parameters:
stripeDataIterable -
See Also:
#addStripeData(StripeData)

contains

boolean contains(TableInternal.StripeData<E> stripeData)
Returns true if the TableInternal.StripeDataList contains the given TableInternal.StripeData

Parameters:
stripeData -
Returns:

contains

boolean contains(Object titleValue)
Returns true if the TableInternal.StripeDataList contains a Table.Stripe with the given Table.Stripe.Title.getValue()

Parameters:
stripe -
Returns:

getStripeData

TableInternal.StripeData<E> getStripeData(Object titleValue)
Returns the TableInternal.StripeData with the given Table.Stripe.Title.getValue(). If no Table.Stripe has the given Table.Stripe.Title null is returned.

Parameters:
titleValue -
Returns:

removeStripeData

void removeStripeData(TableInternal.StripeData<E> stripeData)
Removes a TableInternal.StripeData from the TableInternal.StripeDataList without detaching its TableInternal.CellData instances from the orthogonal TableInternal.StripeData instances

Parameters:
stripeData -

removeStripeData

TableInternal.StripeData<E> removeStripeData(int indexPosition)
Removes a TableInternal.StripeData from the TableInternal.StripeDataList without detaching its TableInternal.CellData from the orthogonal TableInternal.StripeData instances.

Parameters:
indexPosition -
Returns:
the removed TableInternal.StripeData instance

registerStripeDataForCellDatas

void registerStripeDataForCellDatas(Collection<TableInternal.CellData<E>> cellDataCollection,
                                    TableInternal.StripeData<E> stripeData)
Registers a TableInternal.StripeData instance for the given TableInternal.CellData instances

Parameters:
cellDataCollection -
stripeData -

unregisterStripeDataForCellDatas

void unregisterStripeDataForCellDatas(Collection<TableInternal.CellData<E>> cellDataCollection,
                                      TableInternal.StripeData<E> stripeData)
Unregisters the given Collection of TableInternal.CellData instances for the TableInternal.StripeData

Parameters:
cellDataCollection -
stripeData -

unregisterCells

void unregisterCells(Iterable<TableInternal.CellData<E>> cellDataIterable)
Unregisters the given TableInternal.CellData instances from all TableInternal.StripeData contained within this TableInternal.StripeDataList

Parameters:
cellDataIterable -


Copyright © 2011. All Rights Reserved.