Class DatabaseDisplay
java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.DatabaseDisplay
- All Implemented Interfaces:
IContentElement,IParagraphContent
Represents data from the current database row.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the DatabaseDisplay class.DatabaseDisplay(InternalXMLStreamReader reader)Instantiates a new database display. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the name of the column from which data is displayed.Returns all content elements.getName()Gets the source database by its name.Returns the parent content element.getStyle()Gets the data style to format a numeric value.Gets a table within a source database.Gets the reference made by a database table.getValue()Gets the current database row value.voidsetColumnName(String columnName)Sets the name of the column from which data is displayed.voidSets the source database by its name.voidsetParent(IContentElement parent)Sets the parent content element.voidSets the data style to format a numeric value.voidsetTableName(String tableName)Sets a table within a source database.voidsetTableType(TableType tableType)Sets the reference made by a database table.voidSets the current database row value.toString()Converts the value of the current DatabaseDisplay object to its equivalent string representation.
-
Constructor Details
-
DatabaseDisplay
public DatabaseDisplay()Initializes a new instance of the DatabaseDisplay class. -
DatabaseDisplay
Instantiates a new database display.- 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 DatabaseDisplay 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
-
getColumnName
Gets the name of the column from which data is displayed. The value of this attribute shall be a column name contained in the current selection as specified by the data source.- Returns:
- the column name
-
setColumnName
Sets the name of the column from which data is displayed. The value of this attribute shall be a column name contained in the current selection as specified by the data source.- Parameters:
columnName- the new column name
-
getStyle
Gets the data style to format a numeric value.- Returns:
- the style
-
setStyle
Sets the data style to format a numeric value.- Parameters:
style- the new style
-
getValue
Gets the current database row value.- Returns:
- the value
-
setValue
Sets the current database row value.- Parameters:
value- the new value
-