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

java.lang.Object
  extended by org.omnaest.utils.structure.table.concrete.internal.CellDataImpl<E>
Type Parameters:
E -
All Implemented Interfaces:
TableInternal.CellData<E>

public class CellDataImpl<E>
extends Object
implements TableInternal.CellData<E>

Wrapper for an element, which can be shared between Tables to allow the modification from all of them. As a difference to CellImpl this wrapper has no reference to any TableInternal.StripeData instance.

Author:
Omnaest
See Also:
TableInternal.CellInternal, CellImpl, TableInternal.CellData

Field Summary
protected  E element
           
 
Constructor Summary
CellDataImpl()
           
 
Method Summary
 E getElement()
          Returns the element hold by the TableInternal.CellData
 boolean hasElement(E element)
          Returns true if the TableInternal.CellData element is equal to the given element
 void setElement(E element)
          Sets the given element to the TableInternal.CellData
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

element

protected E element
Constructor Detail

CellDataImpl

public CellDataImpl()
Method Detail

getElement

public E getElement()
Description copied from interface: TableInternal.CellData
Returns the element hold by the TableInternal.CellData

Specified by:
getElement in interface TableInternal.CellData<E>
Returns:

setElement

public void setElement(E element)
Description copied from interface: TableInternal.CellData
Sets the given element to the TableInternal.CellData

Specified by:
setElement in interface TableInternal.CellData<E>

hasElement

public boolean hasElement(E element)
Description copied from interface: TableInternal.CellData
Returns true if the TableInternal.CellData element is equal to the given element

Specified by:
hasElement in interface TableInternal.CellData<E>
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.