Class ValueRange
java.lang.Object
com.independentsoft.office.odf.forms.Control
com.independentsoft.office.odf.forms.ValueRange
- All Implemented Interfaces:
IFormContent,IContentElement
Defines a control which allows the user to select a value from a continuous number range.
-
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.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.Gets the orientation of a control.intSpecifies the second-level increment used for a control representing a value.Returns the parent content element.Gets the time-out to be used before a pressed mouse button results in repeating an action.intSpecifies the increment used for a control representing a value.The default value for this attribute is 1.getValue()Gets the default value of an input control.voidsetControlImplementation(String controlImplementation)Sets the specific concrete rendition or implementation of a control that should be instantiated.voidSets an identifier for a control element.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.voidsetOrientation(Orientation orientation)Sets the orientation of a control.voidsetPageStepSize(int pageStepSize)Specifies the second-level increment used for a control representing a value.voidsetParent(IContentElement parent)Sets the parent content element.voidsetRepeatDelay(String repeatDelay)Sets the time-out to be used before a pressed mouse button results in repeating an action.voidsetStepSize(int stepSize)Specifies the increment used for a control representing a value.The default value for this attribute is 1.voidSets the default value of an input control.toString()Converts the value of the current ValueRange object to its equivalent string representation.Methods inherited from class com.independentsoft.office.odf.forms.Control
getEventListeners, getProperties
-
Constructor Details
-
ValueRange
public ValueRange()Initializes a new instance of the ValueRange 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 ValueRange 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
-
getValue
Gets the default value of an input control.- Returns:
- the value
-
setValue
Sets the default value of an input control.- Parameters:
value- the new value
-
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
-
getStepSize
public int getStepSize()Specifies the increment used for a control representing a value.The default value for this attribute is 1.- Returns:
- the step size
-
setStepSize
public void setStepSize(int stepSize)Specifies the increment used for a control representing a value.The default value for this attribute is 1.- Parameters:
stepSize- the new step size
-
getPageStepSize
public int getPageStepSize()Specifies the second-level increment used for a control representing a value.- Returns:
- the page step size
-
setPageStepSize
public void setPageStepSize(int pageStepSize)Specifies the second-level increment used for a control representing a value.- Parameters:
pageStepSize- the new page step size
-
getRepeatDelay
Gets the time-out to be used before a pressed mouse button results in repeating an action.- Returns:
- the repeat delay
-
setRepeatDelay
Sets the time-out to be used before a pressed mouse button results in repeating an action.- Parameters:
repeatDelay- the new repeat delay
-
getOrientation
Gets the orientation of a control.- Returns:
- the orientation
-
setOrientation
Sets the orientation of a control.- Parameters:
orientation- the new orientation
-