Class FormattedText
java.lang.Object
com.independentsoft.office.odf.forms.Control
com.independentsoft.office.odf.forms.FormattedText
- All Implemented Interfaces:
IFormContent,IContentElement
Defines a control for inputting text, which follows the format defined by a data style that is assigned to the control's graphical shape.
-
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 current status of an input control.Gets the name of a column in the result set defined by a (data-aware) form.Gets the default value of an input control.getID()Gets an identifier for a control element.intGets the maximum number of characters that a user can enter in an input control.Gets the maximum value that a user can enter.Gets the minimum value that a user can enter.getName()Gets the name of a form or control element.Returns the parent content element.intGets tabbing navigation order of controls within a form.getTitle()Gets additional information about a control.booleanSpecifies whether empty current values are regarded as NULL.booleanSpecifies whether a control can accept user input.booleanSpecifies whether a control is included in the tabbing navigation order.booleanSpecifies whether the text that the user enters is validated during input against the input format associated with the control.booleanSpecifies whether a control is printed when a user prints a document in which the control is contained.booleanSpecifies whether a user can modify the value of a control.voidsetControlImplementation(String controlImplementation)Sets the specific concrete rendition or implementation of a control that should be instantiated.voidsetConvertEmptyToNull(boolean convertEmptyToNull)Specifies whether empty current values are regarded as NULL.voidsetCurrentValue(String currentValue)Sets the current status of an input control.voidsetDataField(String dataField)Sets the name of a column in the result set defined by a (data-aware) form.voidsetDefaultValue(String defaultValue)Sets the default value of an input control.voidsetDisabled(boolean isDisabled)Specifies whether a control can accept user input.voidsetEnableTabbingNavigation(boolean enableTabbingNavigation)Specifies whether a control is included in the tabbing navigation order.voidsetEnableValidation(boolean enableValidation)Specifies whether the text that the user enters is validated during input against the input format associated with the control.voidSets an identifier for a control element.voidsetMaximumLength(int maximumLength)Sets the maximum number of characters that a user can enter in an input control.voidsetMaximumValue(String maximumValue)Sets the maximum value that a user can enter.voidsetMinimumValue(String minimumValue)Sets the minimum value that a user can enter.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.voidsetReadOnly(boolean isReadOnly)Specifies whether a user can modify the value of a control.voidsetTabIndex(int tabIndex)Sets tabbing navigation order of controls within a form.voidSets additional information about a control.toString()Converts the value of the current FormattedText object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.forms.Control
getEventListeners, getProperties
-
Constructor Details
-
FormattedText
public FormattedText()Initializes a new instance of the FormattedText 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 FormattedText 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
-
getCurrentValue
Gets the current status of an input control.- Returns:
- the current value
-
setCurrentValue
Sets the current status of an input control.- Parameters:
currentValue- the new current 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
-
getMaximumLength
public int getMaximumLength()Gets the maximum number of characters that a user can enter in an input control.- Returns:
- the maximum length
-
setMaximumLength
public void setMaximumLength(int maximumLength)Sets the maximum number of characters that a user can enter in an input control.- Parameters:
maximumLength- the new maximum length
-
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
-
isReadOnly
public boolean isReadOnly()Specifies whether a user can modify the value of a control.- Returns:
- true, if is read only
-
setReadOnly
public void setReadOnly(boolean isReadOnly)Specifies whether a user can modify the value of a control.- Parameters:
isReadOnly- the new read only
-
getTabIndex
public int getTabIndex()Gets tabbing navigation order of controls within a form.- Returns:
- the tab index
-
setTabIndex
public void setTabIndex(int tabIndex)Sets tabbing navigation order of controls within a form.- Parameters:
tabIndex- the new tab index
-
getTitle
Gets additional information about a control.- Returns:
- the title
-
setTitle
Sets additional information about a control.- Parameters:
title- the new title
-
getMinimumValue
Gets the minimum value that a user can enter.- Returns:
- the minimum value
-
setMinimumValue
Sets the minimum value that a user can enter.- Parameters:
minimumValue- the new minimum value
-
getMaximumValue
Gets the maximum value that a user can enter.- Returns:
- the maximum value
-
setMaximumValue
Sets the maximum value that a user can enter.- Parameters:
maximumValue- the new maximum value
-
isEnableValidation
public boolean isEnableValidation()Specifies whether the text that the user enters is validated during input against the input format associated with the control.- Returns:
- true, if is enable validation
-
setEnableValidation
public void setEnableValidation(boolean enableValidation)Specifies whether the text that the user enters is validated during input against the input format associated with the control.- Parameters:
enableValidation- the new enable validation
-
isConvertEmptyToNull
public boolean isConvertEmptyToNull()Specifies whether empty current values are regarded as NULL.- Returns:
- true, if is convert empty to null
-
setConvertEmptyToNull
public void setConvertEmptyToNull(boolean convertEmptyToNull)Specifies whether empty current values are regarded as NULL.- Parameters:
convertEmptyToNull- the new convert empty to null
-
getDataField
Gets the name of a column in the result set defined by a (data-aware) form. A control interchanges content with its column when: -the current row of a form changes, the control is initialized with the value from its column. -the user changes the content of a control, this changed value is written back to its column.- Returns:
- the data field
-
setDataField
Sets the name of a column in the result set defined by a (data-aware) form. A control interchanges content with its column when: -the current row of a form changes, the control is initialized with the value from its column. -the user changes the content of a control, this changed value is written back to its column.- Parameters:
dataField- the new data field
-