org.odftoolkit.simple.form
Class CurrencyField

java.lang.Object
  extended by org.odftoolkit.simple.Component
      extended by org.odftoolkit.simple.form.FormControl
          extended by org.odftoolkit.simple.form.Field
              extended by org.odftoolkit.simple.form.CurrencyField

public class CurrencyField
extends Field


Field Summary
 
Fields inherited from class org.odftoolkit.simple.form.FormControl
drawingShape, formElement, mElement, mFormProperties
 
Method Summary
static CurrencyField getInstanceOf(FormFormattedTextElement element)
          Get an instance of currency field by an instance of FormFormattedTextElement, while searching the document content to make a bind with the DrawControl which already reference to this currency field.
 void setCurrencySymbol(String symbol)
           
 void setCurrencySymbolVisible(boolean visible)
           
 void setDecimalAccuracy(double value)
           
 void setStepValue(double value)
           
 
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 org.odftoolkit.simple.form.FormControl
getDrawControl, getOdfElement, getRectangle, remove, setAnchorType, setFormProperty, setRectangle
 
Methods inherited from class org.odftoolkit.simple.Component
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstanceOf

public static CurrencyField getInstanceOf(FormFormattedTextElement element)
Get an instance of currency field by an instance of FormFormattedTextElement, while searching the document content to make a bind with the DrawControl which already reference to this currency field.

Parameters:
element - - an instance of FormFormattedTextElement
Returns:
an instance of currency field

setCurrencySymbol

public void setCurrencySymbol(String symbol)

setDecimalAccuracy

public void setDecimalAccuracy(double value)

setStepValue

public void setStepValue(double value)

setCurrencySymbolVisible

public void setCurrencySymbolVisible(boolean visible)


Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.