Class EmbeddedControlProperties
java.lang.Object
com.independentsoft.office.spreadsheet.EmbeddedControlProperties
The Class EmbeddedControlProperties. Represents the properties of an embedded control (controlPr element, CT_ControlPr).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the alternative text of the control.Gets the object anchor.Gets the clipboard format of the control image ("pict", "bitmap" or "pictOld").Gets the cell the control value is linked to.Gets the range used to fill a list control.getMacro()Gets the macro attached to the control.Gets the relationship id of the control image.booleanChecks whether the control fill style is automatic.booleanChecks whether the control line style is automatic.booleanChecks whether the control size is automatic based on its picture.booleanChecks whether the control keeps its default size.booleanChecks whether the control is disabled.booleanisLocked()Checks whether the control is locked when the sheet is protected.booleanisPrint()Checks whether the control is printed.booleanChecks whether the control recalculates always.booleanChecks whether the control is a UI-only object.voidsetAltText(String altText)Sets the alternative text of the control.voidsetAnchor(ObjectAnchor anchor)Sets the object anchor.voidsetAutoFill(boolean autoFill)Sets whether the control fill style is automatic.voidsetAutoLine(boolean autoLine)Sets whether the control line style is automatic.voidsetAutoPict(boolean autoPict)Sets whether the control size is automatic based on its picture.voidsetClipboardFormat(String cf)Sets the clipboard format of the control image ("pict", "bitmap" or "pictOld").voidsetDefaultSize(boolean defaultSize)Sets whether the control keeps its default size.voidsetDisabled(boolean disabled)Sets whether the control is disabled.voidsetLinkedCell(String linkedCell)Sets the cell the control value is linked to.voidsetListFillRange(String listFillRange)Sets the range used to fill a list control.voidsetLocked(boolean locked)Sets whether the control is locked when the sheet is protected.voidSets the macro attached to the control.voidsetPrint(boolean print)Sets whether the control is printed.voidsetRecalcAlways(boolean recalcAlways)Sets whether the control recalculates always.voidsetRelationshipID(String relationshipID)Sets the relationship id of the control image.voidsetUiObject(boolean uiObject)Sets whether the control is a UI-only object.toString()
-
Constructor Details
-
EmbeddedControlProperties
public EmbeddedControlProperties()Instantiates a new embedded control properties.
-
-
Method Details
-
clone
-
toString
-
isLocked
public boolean isLocked()Checks whether the control is locked when the sheet is protected.- Returns:
- true, if the control is locked
-
setLocked
public void setLocked(boolean locked)Sets whether the control is locked when the sheet is protected.- Parameters:
locked- the new locked
-
isDefaultSize
public boolean isDefaultSize()Checks whether the control keeps its default size.- Returns:
- true, if the control keeps its default size
-
setDefaultSize
public void setDefaultSize(boolean defaultSize)Sets whether the control keeps its default size.- Parameters:
defaultSize- the new default size
-
isPrint
public boolean isPrint()Checks whether the control is printed.- Returns:
- true, if the control is printed
-
setPrint
public void setPrint(boolean print)Sets whether the control is printed.- Parameters:
print- the new print
-
isDisabled
public boolean isDisabled()Checks whether the control is disabled.- Returns:
- true, if the control is disabled
-
setDisabled
public void setDisabled(boolean disabled)Sets whether the control is disabled.- Parameters:
disabled- the new disabled
-
isRecalcAlways
public boolean isRecalcAlways()Checks whether the control recalculates always.- Returns:
- true, if the control recalculates always
-
setRecalcAlways
public void setRecalcAlways(boolean recalcAlways)Sets whether the control recalculates always.- Parameters:
recalcAlways- the new recalc always
-
isUiObject
public boolean isUiObject()Checks whether the control is a UI-only object.- Returns:
- true, if the control is a UI-only object
-
setUiObject
public void setUiObject(boolean uiObject)Sets whether the control is a UI-only object.- Parameters:
uiObject- the new ui object
-
isAutoFill
public boolean isAutoFill()Checks whether the control fill style is automatic.- Returns:
- true, if the control fill style is automatic
-
setAutoFill
public void setAutoFill(boolean autoFill)Sets whether the control fill style is automatic.- Parameters:
autoFill- the new auto fill
-
isAutoLine
public boolean isAutoLine()Checks whether the control line style is automatic.- Returns:
- true, if the control line style is automatic
-
setAutoLine
public void setAutoLine(boolean autoLine)Sets whether the control line style is automatic.- Parameters:
autoLine- the new auto line
-
isAutoPict
public boolean isAutoPict()Checks whether the control size is automatic based on its picture.- Returns:
- true, if the control size is automatic
-
setAutoPict
public void setAutoPict(boolean autoPict)Sets whether the control size is automatic based on its picture.- Parameters:
autoPict- the new auto pict
-
getMacro
Gets the macro attached to the control.- Returns:
- the macro
-
setMacro
Sets the macro attached to the control.- Parameters:
macro- the new macro
-
getAltText
Gets the alternative text of the control.- Returns:
- the alt text
-
setAltText
Sets the alternative text of the control.- Parameters:
altText- the new alt text
-
getLinkedCell
Gets the cell the control value is linked to.- Returns:
- the linked cell
-
setLinkedCell
Sets the cell the control value is linked to.- Parameters:
linkedCell- the new linked cell
-
getListFillRange
Gets the range used to fill a list control.- Returns:
- the list fill range
-
setListFillRange
Sets the range used to fill a list control.- Parameters:
listFillRange- the new list fill range
-
getClipboardFormat
Gets the clipboard format of the control image ("pict", "bitmap" or "pictOld").- Returns:
- the clipboard format
-
setClipboardFormat
Sets the clipboard format of the control image ("pict", "bitmap" or "pictOld").- Parameters:
cf- the new clipboard format
-
getRelationshipID
Gets the relationship id of the control image.- Returns:
- the relationship id
-
setRelationshipID
Sets the relationship id of the control image.- Parameters:
relationshipID- the new relationship id
-
getAnchor
Gets the object anchor.- Returns:
- the anchor
-
setAnchor
Sets the object anchor.- Parameters:
anchor- the new anchor
-