Package com.independentsoft.office.odf
Class DatabaseRange
java.lang.Object
com.independentsoft.office.odf.DatabaseRange
Represents a database range, a named rectangular cell range that can be sorted,
filtered or refreshed from a data source. Formulas may refer to a database range by its name.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Specifies whether the first row of the range contains column labels.Specifies whether filter buttons are displayed.Specifies whether data is copied into the document or read on demand.Specifies whether the database range is a selection.getName()Gets the name of the database range.Specifies whether the size of the range is kept when the range is updated.Specifies whether cell styles are kept when the range is updated.Gets the orientation of the database range, "column" or "row".Gets the refresh delay as ISO 8601 duration.Gets the cell range address of the database range, for example "Sheet1.A1:Sheet1.B10".voidsetContainsHeader(Boolean containsHeader)Specifies whether the first row of the range contains column labels.voidsetDisplayFilterButtons(Boolean displayFilterButtons)Specifies whether filter buttons are displayed.voidsetHasPersistentData(Boolean hasPersistentData)Specifies whether data is copied into the document or read on demand.voidsetIsSelection(Boolean isSelection)Specifies whether the database range is a selection.voidSets the name of the database range.voidsetOnUpdateKeepSize(Boolean onUpdateKeepSize)Specifies whether the size of the range is kept when the range is updated.voidsetOnUpdateKeepStyles(Boolean onUpdateKeepStyles)Specifies whether cell styles are kept when the range is updated.voidsetOrientation(String orientation)Sets the orientation of the database range, "column" or "row".voidsetRefreshDelay(String refreshDelay)Sets the refresh delay as ISO 8601 duration.voidsetTargetRangeAddress(String targetRangeAddress)Sets the cell range address of the database range, for example "Sheet1.A1:Sheet1.B10".toString()Converts the value of the current DatabaseRange object to its equivalent string representation.
-
Constructor Details
-
DatabaseRange
public DatabaseRange()Initializes a new instance of the DatabaseRange class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current DatabaseRange object to its equivalent string representation. -
getName
Gets the name of the database range.- Returns:
- the name
-
setName
Sets the name of the database range.- Parameters:
name- the new name
-
getTargetRangeAddress
Gets the cell range address of the database range, for example "Sheet1.A1:Sheet1.B10".- Returns:
- the target range address
-
setTargetRangeAddress
Sets the cell range address of the database range, for example "Sheet1.A1:Sheet1.B10".- Parameters:
targetRangeAddress- the new target range address
-
getContainsHeader
Specifies whether the first row of the range contains column labels.- Returns:
- true, if the first row contains column labels
-
setContainsHeader
Specifies whether the first row of the range contains column labels.- Parameters:
containsHeader- the new contains header
-
getDisplayFilterButtons
Specifies whether filter buttons are displayed.- Returns:
- true, if filter buttons are displayed
-
setDisplayFilterButtons
Specifies whether filter buttons are displayed.- Parameters:
displayFilterButtons- the new display filter buttons
-
getIsSelection
Specifies whether the database range is a selection.- Returns:
- true, if the database range is a selection
-
setIsSelection
Specifies whether the database range is a selection.- Parameters:
isSelection- the new selection
-
getOnUpdateKeepStyles
Specifies whether cell styles are kept when the range is updated.- Returns:
- true, if cell styles are kept when the range is updated
-
setOnUpdateKeepStyles
Specifies whether cell styles are kept when the range is updated.- Parameters:
onUpdateKeepStyles- the new on update keep styles
-
getOnUpdateKeepSize
Specifies whether the size of the range is kept when the range is updated.- Returns:
- true, if the size of the range is kept when the range is updated
-
setOnUpdateKeepSize
Specifies whether the size of the range is kept when the range is updated.- Parameters:
onUpdateKeepSize- the new on update keep size
-
getHasPersistentData
Specifies whether data is copied into the document or read on demand.- Returns:
- true, if data is copied into the document
-
setHasPersistentData
Specifies whether data is copied into the document or read on demand.- Parameters:
hasPersistentData- the new has persistent data
-
getOrientation
Gets the orientation of the database range, "column" or "row".- Returns:
- the orientation
-
setOrientation
Sets the orientation of the database range, "column" or "row".- Parameters:
orientation- the new orientation
-
getRefreshDelay
Gets the refresh delay as ISO 8601 duration.- Returns:
- the refresh delay
-
setRefreshDelay
Sets the refresh delay as ISO 8601 duration.- Parameters:
refreshDelay- the new refresh delay
-