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

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

public class TableContentImpl<E>
extends TableContentAbstract<E>

Author:
Omnaest
See Also:
TableContentAbstract, TableInternal.TableContent, Serialized Form

Field Summary
protected  List<TableInternal.StripeDataList<E>> stripeListList
           
 
Fields inherited from class org.omnaest.utils.structure.table.concrete.internal.TableContentAbstract
tableSize
 
Constructor Summary
TableContentImpl()
           
 
Method Summary
 void clear()
          Clears the TableInternal.TableContent
 TableInternal.TableContent<E> cloneStructure()
          Returns a copy of this object, instead of a shallow copy like Object.clone().
 int determineStripeListSize(Table.Stripe.StripeType stripeType)
          Determines the size of the TableInternal.StripeDataList for the given Table.Stripe.StripeType
 TableInternal.StripeDataList<E> getStripeDataList(Table.Stripe.StripeType stripeType)
          Returns the Stripe for the given type.
 void removeStripeDataAndItsCellDatasInOrthogonalStripeDatas(TableInternal.StripeData<E> stripeData)
          Removes the given TableInternal.StripeData from the TableInternal.TableContent including the TableInternal.CellData contained in the orthogonal TableInternal.StripeData instances.
 void switchRowAndColumnStripeList()
          Switches the TableInternal.StripeDataList for the Table.Row and Table.Column.
 
Methods inherited from class org.omnaest.utils.structure.table.concrete.internal.TableContentAbstract
getColumnStripeDataList, getRowStripeDataList, getTableSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stripeListList

protected List<TableInternal.StripeDataList<E>> stripeListList
Constructor Detail

TableContentImpl

public TableContentImpl()
Method Detail

removeStripeDataAndItsCellDatasInOrthogonalStripeDatas

public void removeStripeDataAndItsCellDatasInOrthogonalStripeDatas(TableInternal.StripeData<E> stripeData)
Description copied from interface: TableInternal.TableContent
Removes the given TableInternal.StripeData from the TableInternal.TableContent including the TableInternal.CellData contained in the orthogonal TableInternal.StripeData instances. This should be used to remove complete Table.Rows or Table.Columns


switchRowAndColumnStripeList

public void switchRowAndColumnStripeList()
Description copied from interface: TableInternal.TableContent
Switches the TableInternal.StripeDataList for the Table.Row and Table.Column.


getStripeDataList

public TableInternal.StripeDataList<E> getStripeDataList(Table.Stripe.StripeType stripeType)
Returns the Stripe for the given type.

Parameters:
stripeType -
Returns:

determineStripeListSize

public int determineStripeListSize(Table.Stripe.StripeType stripeType)
Description copied from interface: TableInternal.TableContent
Determines the size of the TableInternal.StripeDataList for the given Table.Stripe.StripeType

Returns:

clear

public void clear()
Description copied from interface: TableInternal.TableContent
Clears the TableInternal.TableContent


cloneStructure

public TableInternal.TableContent<E> cloneStructure()
Description copied from interface: CloneableStructure
Returns a copy of this object, instead of a shallow copy like Object.clone(). For high level structures like e.g. a Map only the Map structure is cloned not the content.

Returns:


Copyright © 2011. All Rights Reserved.