Class TableHeader
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.TableHeader
- All Implemented Interfaces:
ICompositeElement
,IContainer
,IElement
,Serializable
- Direct Known Subclasses:
TableRow
This class is used to define a table header.
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
ConstructorsModifierConstructorDescriptionprotected
TableHeader
(TableHeader other, boolean duplicateContents) TableHeader
(Serializable[] cells) Constructs the table header with an array of cells.TableHeader
(Serializable[] cells, String style) Constructs the table header with an array of cells. -
Method Summary
Modifier and TypeMethodDescriptionThis method will invoke the visitor for this runtime element.void
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 header equals the content of another table header.getCellAt
(int index) This method returns the cell at the specified index.int
This method returns the number of cells of this row.getCells()
This method returns an array containing all the cells of the row.int
This method returns the number of columns of this row.int
hashCode()
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
-
TableHeader
Constructs the table header with an array of cells.- Parameters:
cells
- The cells that should be used in the header.
-
TableHeader
-
TableHeader
Constructs the table header with an array of cells.- Parameters:
cells
- The cells that should be used in the header.style
- The style that should be used for the row.
-
-
Method Details
-
getColumnCount
public int getColumnCount()This method returns the number of columns of this row.- Returns:
- the number of columns of this row.
-
getCellCount
public int getCellCount()This method returns the number of cells of this row. The number of cells is equal or less than the number of columns.- Returns:
- the number of cells of this row.
-
addCell
-
getCellAt
This method returns the cell at the specified index.- Parameters:
index
- The index of the requested cell.- Returns:
- The cell at the requested index.
-
getCells
This method returns an array containing all the cells of the row.- Returns:
- an array containing all the cells of the row.
-
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 header equals the content of another table header. 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 Table 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() -
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.
-