Class TableCell
java.lang.Object
com.aquima.interactions.composer.model.Element
com.aquima.interactions.composer.model.CompositeElement
com.aquima.interactions.composer.model.Container
com.aquima.interactions.composer.model.table.TableElement
com.aquima.interactions.composer.model.table.TableCell
- All Implemented Interfaces:
ICompositeElement
,IContainer
,IElement
,Serializable
This class defines a single cell from a table.
For internal use only. The TableBuilder class may be used to create a table container structure.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
TableCell
(Serializable objValue) Constructs the cell without a style and with a colspan of one.TableCell
(Serializable objValue, int colspan) Constructs a cell with a value and colspan.TableCell
(Serializable objValue, int colspan, String style) Constructs a cell with a value, colspan and style. -
Method Summary
Modifier and TypeMethodDescriptionThis method will invoke the visitor for this runtime element.This method duplicates the container element.boolean
Compare this container to another (not its elements, @seeCompositeElement.equalsContent(com.aquima.interactions.composer.ICompositeElement)
to compare its elements).boolean
equalsContent
(ICompositeElement other) This methods checks if this table cell equals the content of another table cell.This method returns the alignment of the cell.int
This method returns the colspan of the cell (usually 1).getValue()
This method returns the value of the cell.int
hashCode()
setAlignment
(AlignType alignType) This method may be used to specify the alignment of the cell.Methods inherited from class com.aquima.interactions.composer.model.table.TableElement
setParent
Methods inherited from class com.aquima.interactions.composer.model.Container
addMessage, clearMessages, collectMessages, getDisplayText, getEntityInstanceId, getMessages, getProperty, getReferenceAttribute, getTypeName, setDisplayText, setEntityContext, setProperty, setReferenceAttribute, setTypeName, toString
Methods inherited from class com.aquima.interactions.composer.model.CompositeElement
addElement, addElements, getContentStyle, getElement, getElement, getElementCount, getElements, insertElement, removeAllElements, removeElement, replaceElementWithElements, setContentStyle, setElements
Methods inherited from class com.aquima.interactions.composer.model.Element
addPresentationStyle, evaluateTsl, getName, getParent, getPresentationStyles, getPropertyKeys, getRuntimeKey, getVisibilityCondition, hasFocus, hasPresentationStyle, isReadonly, isReadonlyInheritFromParent, isVisible, setFocus, setParent, setPresentationStyle, setPresentationStyles, setPresentationStyles, setReadonly, setReadonlyInheritFromParent, setRuntimeKey, setVisibilityCondition, setVisible
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aquima.interactions.composer.ICompositeElement
getContentStyle, getElement, getElement, getElementCount, getElements
Methods inherited from interface com.aquima.interactions.composer.IElement
getName, getParent, getPresentationStyles, getPropertyKeys, getRuntimeKey, hasFocus, hasPresentationStyle, isReadonly, isReadonlyInheritFromParent, isVisible
-
Constructor Details
-
TableCell
Constructs the cell without a style and with a colspan of one.- Parameters:
objValue
- The value for the cell.
-
TableCell
Constructs a cell with a value and colspan.- Parameters:
objValue
- The value of the cell.colspan
- The colspan of the cell.
-
TableCell
-
TableCell
Constructs a cell with a value, colspan and style.- Parameters:
objValue
- The value of the cell.colspan
- The colspan of the cell.style
- The style of the cell.
-
-
Method Details
-
duplicate
Description copied from class:Container
This method duplicates the container element.- Specified by:
duplicate
in interfaceIElement
- Overrides:
duplicate
in classTableElement
- Returns:
- A clone of this element.
-
getColspan
public int getColspan()This method returns the colspan of the cell (usually 1).- Returns:
- the colspan of the cell (usually 1).
-
getValue
This method returns the value of the cell.- Returns:
- the value of the cell.
-
getAlignment
This method returns the alignment of the cell.- Returns:
- the alignment of the cell.
-
setAlignment
This method may be used to specify the alignment of the cell.- Parameters:
alignType
- The alignment of the cell.- Returns:
- reference to this cell to allow method chaining.
-
accept
Description copied from class:Element
This method will invoke the visitor for this runtime element.- Specified by:
accept
in interfaceICompositeElement
- Specified by:
accept
in interfaceIElement
- Overrides:
accept
in classTableElement
- Parameters:
visitor
- The visitor that should be invoked.- Returns:
- The visitor passed to this method.
-
equals
Description copied from class:Container
Compare this container to another (not its elements, @seeCompositeElement.equalsContent(com.aquima.interactions.composer.ICompositeElement)
to compare its elements). -
equalsContent
This methods checks if this table cell equals the content of another table cell. The content will be checked recursive, for example if a table cell contains a container which contains a sub container which contains a field with a different value false will be returned. If other is no instance of TableCell false is returned.- Specified by:
equalsContent
in interfaceICompositeElement
- Overrides:
equalsContent
in classCompositeElement
- Parameters:
other
- Table to compare to- Returns:
- boolean if content of this table equals the content of another table.
-
hashCode
public int hashCode()
-