Class Control
java.lang.Object
com.independentsoft.office.odf.drawing.Shape
com.independentsoft.office.odf.drawing.Control
- All Implemented Interfaces:
ICellContent,IContentElement,IIndexContent,IParagraphContent,ITextContent
Represents a shape that is linked to a control inside Forms element.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionControl()Initializes a new instance of the Control class.Control(InternalXMLStreamReader reader)Instantiates a new control. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Specifies how a frame is bound to a text document.Returns all content elements.Gets the control within a form that is linked to the control shape by its ID.Contains the designated point in the area of a drawing object to which a connector shape can connect.Returns the parent content element.Gets height of a drawing object as a relative value within a frame.Gets width of a drawing object as a relative value within a frame.voidsetAnchorType(AnchorType anchorType)Specifies how a frame is bound to a text document.voidsetControlID(String controlID)Sets the control within a form that is linked to the control shape by its ID.voidsetParent(IContentElement parent)Sets the parent content element.voidsetRelativeHeight(String relativeHeight)Sets height of a drawing object as a relative value within a frame.voidsetRelativeWidth(String relativeWidth)Sets width of a drawing object as a relative value within a frame.toString()Converts the value of the current Control object to its equivalent string representation.
-
Constructor Details
-
Control
public Control()Initializes a new instance of the Control class. -
Control
Instantiates a new control.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classShape- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classShape- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classShape- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceICellContent- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIIndexContent- Specified by:
clonein interfaceIParagraphContent- Specified by:
clonein interfaceITextContent- Specified by:
clonein classShape- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current Control object to its equivalent string representation. -
getGluePoints
Contains the designated point in the area of a drawing object to which a connector shape can connect.- Returns:
- the glue points
-
getRelativeWidth
Gets width of a drawing object as a relative value within a frame.- Returns:
- the relative width
-
setRelativeWidth
Sets width of a drawing object as a relative value within a frame.- Parameters:
relativeWidth- the new relative width
-
getRelativeHeight
Gets height of a drawing object as a relative value within a frame.- Returns:
- the relative height
-
setRelativeHeight
Sets height of a drawing object as a relative value within a frame.- Parameters:
relativeHeight- the new relative height
-
getControlID
Gets the control within a form that is linked to the control shape by its ID.- Returns:
- the control id
-
setControlID
Sets the control within a form that is linked to the control shape by its ID.- Parameters:
controlID- the new control id
-
getAnchorType
Specifies how a frame is bound to a text document. The anchor position is the point at which a frame is bound to a text document.- Returns:
- the anchor type
-
setAnchorType
Specifies how a frame is bound to a text document. The anchor position is the point at which a frame is bound to a text document.- Parameters:
anchorType- the new anchor type
-