Class DisplayRow
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.DisplayRow
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents a specific row from a current selection.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the DisplayRow class.DisplayRow(InternalXMLStreamReader reader)Instantiates a new display row. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the condition for selecting a row.Returns all content elements.getName()Gets the source database by its name.Returns the parent content element.intGets the row number.Gets a table within a source database.Gets the reference made by a database table.getValue()Gets the row.voidsetCondition(String condition)Sets the condition for selecting a row.voidSets the source database by its name.voidsetParent(IContentElement parent)Sets the parent content element.voidsetRowNumber(int rowNumber)Sets the row number to select when the condition is true.voidsetTableName(String tableName)Sets a table within a source database.voidsetTableType(TableType tableType)Sets the reference made by a database table.voidSets the row.toString()Converts the value of the current DisplayRow object to its equivalent string representation.
-
Constructor Details
-
DisplayRow
public DisplayRow()Initializes a new instance of the DisplayRow class. -
DisplayRow
Instantiates a new display row.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classField- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classField- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classField- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIParagraphContent- Specified by:
clonein classField- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current DisplayRow object to its equivalent string representation. -
getName
Gets the source database by its name.- Returns:
- the name
-
setName
Sets the source database by its name.- Parameters:
name- the new name
-
getTableName
Gets a table within a source database.- Returns:
- the table name
-
setTableName
Sets a table within a source database.- Parameters:
tableName- the new table name
-
getTableType
Gets the reference made by a database table.- Returns:
- the table type
-
setTableType
Sets the reference made by a database table.- Parameters:
tableType- the new table type
-
getCondition
Gets the condition for selecting a row. If the attribute is present, a new row will be only selected of the result of evaluating the condition is to true when interpreted as Boolean value.- Returns:
- the condition
-
setCondition
Sets the condition for selecting a row. If the attribute is present, a new row will be only selected of the result of evaluating the condition is to true when interpreted as Boolean value.- Parameters:
condition- the new condition
-
getRowNumber
public int getRowNumber()Gets the row number.- Returns:
- the row number
-
setRowNumber
public void setRowNumber(int rowNumber)Sets the row number to select when the condition is true.- Parameters:
rowNumber- the new row number
-
getValue
Gets the row.- Returns:
- the value
-
setValue
Sets the row.- Parameters:
value- the new value
-