Class GenericControl
java.lang.Object
com.independentsoft.office.odf.forms.Control
com.independentsoft.office.odf.forms.GenericControl
- All Implemented Interfaces:
IFormContent,IContentElement
Defines an implementation defined placeholder for a generic control. The generic control can contain any properties and any events.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.forms.Control
eventListeners, parent, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the specific concrete rendition or implementation of a control that should be instantiated.getID()Gets an identifier for a control element.getName()Gets the name of a form or control element.Returns the parent content element.voidsetControlImplementation(String controlImplementation)Sets the specific concrete rendition or implementation of a control that should be instantiated.voidSets an identifier for a control element.voidSets the name of a form or control element.voidsetParent(IContentElement parent)Sets the parent content element.toString()Converts the value of the current GenericControl object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.forms.Control
getEventListeners, getProperties
-
Constructor Details
-
GenericControl
public GenericControl()Initializes a new instance of the GenericControl class.
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classControl- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classControl- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classControl- 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 interfaceIFormContent- Specified by:
clonein classControl- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current GenericControl object to its equivalent string representation. -
getName
Gets the name of a form or control element.- Returns:
- the name
-
setName
Sets the name of a form or control element.- Parameters:
name- the new name
-
getControlImplementation
Gets the specific concrete rendition or implementation of a control that should be instantiated.- Returns:
- the control implementation
-
setControlImplementation
Sets the specific concrete rendition or implementation of a control that should be instantiated.- Parameters:
controlImplementation- the new control implementation
-
getID
Gets an identifier for a control element.- Returns:
- the id
-
setID
Sets an identifier for a control element.- Parameters:
id- the new id
-