Class FixedText
java.lang.Object
com.independentsoft.office.odf.forms.Control
com.independentsoft.office.odf.forms.FixedText
- All Implemented Interfaces:
IFormContent,IContentElement
Defines a control which attaches additional information to controls, or displays information. Only one label may be associated with a control.
-
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.Gets the default value of an input control.Contains a comma separated list of control elements that are the targets of the elements where this attribute appears.getID()Gets an identifier for a control element.getLabel()Gets the text for a control.getName()Gets the name of a form or control element.Returns the parent content element.getTitle()Gets additional information about a control.booleanSpecifies whether a control can accept user input.booleanSpecifies whether a label is displayed on multiple lines.booleanSpecifies whether a control is printed when a user prints a document in which the control is contained.voidsetControlImplementation(String controlImplementation)Sets the specific concrete rendition or implementation of a control that should be instantiated.voidsetDefaultValue(String defaultValue)Sets the default value of an input control.voidsetDisabled(boolean isDisabled)Specifies whether a control can accept user input.voidsetForControls(String forControls)Contains a comma separated list of control elements that are the targets of the elements where this attribute appears.voidSets an identifier for a control element.voidSets the text for a control.voidsetMultiLine(boolean isMultiLine)Specifies whether a label is displayed on multiple lines.voidSets the name of a form or control element.voidsetParent(IContentElement parent)Sets the parent content element.voidsetPrintable(boolean isPrintable)Specifies whether a control is printed when a user prints a document in which the control is contained.voidSets additional information about a control.toString()Converts the value of the current FixedText object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.forms.Control
getEventListeners, getProperties
-
Constructor Details
-
FixedText
public FixedText()Initializes a new instance of the FixedText 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 FixedText 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
-
getDefaultValue
Gets the default value of an input control.- Returns:
- the default value
-
setDefaultValue
Sets the default value of an input control.- Parameters:
defaultValue- the new default value
-
isDisabled
public boolean isDisabled()Specifies whether a control can accept user input.- Returns:
- true, if is disabled
-
setDisabled
public void setDisabled(boolean isDisabled)Specifies whether a control can accept user input.- Parameters:
isDisabled- the new disabled
-
isPrintable
public boolean isPrintable()Specifies whether a control is printed when a user prints a document in which the control is contained.- Returns:
- true, if is printable
-
setPrintable
public void setPrintable(boolean isPrintable)Specifies whether a control is printed when a user prints a document in which the control is contained.- Parameters:
isPrintable- the new printable
-
isMultiLine
public boolean isMultiLine()Specifies whether a label is displayed on multiple lines.- Returns:
- true, if is multi line
-
setMultiLine
public void setMultiLine(boolean isMultiLine)Specifies whether a label is displayed on multiple lines.- Parameters:
isMultiLine- the new multi line
-
getTitle
Gets additional information about a control. The value of the attribute can be used as a tool tip.- Returns:
- the title
-
setTitle
Sets additional information about a control. The value of the attribute can be used as a tool tip.- Parameters:
title- the new title
-
getForControls
Contains a comma separated list of control elements that are the targets of the elements where this attribute appears.- Returns:
- the for controls
-
setForControls
Contains a comma separated list of control elements that are the targets of the elements where this attribute appears.- Parameters:
forControls- the new for controls
-
getLabel
Gets the text for a control.- Returns:
- the label
-
setLabel
Sets the text for a control.- Parameters:
label- the new label
-