Class OutputCurrency

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Arrangeable, Badgeable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component public class OutputCurrency extends Output
This class implements the graphic user interface element that displays values that must respect the format of currency. For this reason, this field is suggested when the user has to show a monetary value.
See Also:
GCApi:
component
  • Field Details

    • _any

      protected Any _any
    • _format

      protected String _format
    • _symbols

      protected String _symbols
    • _precision

      protected int _precision
    • _df

      protected DecimalFormat _df
  • Constructor Details

  • Method Details

    • setPRECISION

      public void setPRECISION(String s)
      Sets the precision for the currency value
      Parameters:
      s - The string that represent the number of digits of the fractional part for the value
    • setFORMAT

      public void setFORMAT(String s)
      Sets the format for the currency value
      Parameters:
      s - The string that defines the format
    • setSYMBOLS

      public void setSYMBOLS(String s)
      Sets the symbols for the currency value
      Parameters:
      s - See Conventions.setupCurrencyFormat(java.lang.String) for the string composition
    • setup

      protected void setup()
      Description copied from class: Component
      Setup the Component
      Overrides:
      setup in class Component
    • prepareValue

      protected String prepareValue()
      Overrides:
      prepareValue in class Output