org.odftoolkit.simple.form
Class NumericField
java.lang.Object
org.odftoolkit.simple.Component
org.odftoolkit.simple.form.FormControl
org.odftoolkit.simple.form.Field
org.odftoolkit.simple.form.NumericField
public class NumericField
- extends Field
Method Summary |
static TimeField |
getInstanceOf(FormFormattedTextElement element)
Get an instance of numeric field by an instance of
FormFormattedTextElement, while searching the document content to make a
bind with the DrawControl which already reference to this numeric field. |
void |
setDecimalAccuracy(double value)
Set the decimal accuracy of the input value |
void |
setStepValue(double value)
Set the step value for the spin button. |
Methods inherited from class org.odftoolkit.simple.form.Field |
getCurrentValue, getFormatString, getId, getName, getSimpleIterator, getValue, setControlImplementation, setCurrentValue, setFormatString, setId, setName, setSpinButonVisible, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstanceOf
public static TimeField getInstanceOf(FormFormattedTextElement element)
- Get an instance of numeric field by an instance of
FormFormattedTextElement, while searching the document content to make a
bind with the DrawControl which already reference to this numeric field.
- Parameters:
element
- - an instance of FormFormattedTextElement
- Returns:
- an instance of numeric field
setDecimalAccuracy
public void setDecimalAccuracy(double value)
- Set the decimal accuracy of the input value
- Parameters:
value
- - specify how many digits will be kept after the decimal point
setStepValue
public void setStepValue(double value)
- Set the step value for the spin button.
- Parameters:
value
- - the step value for the spin button.
Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.