home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Java / ScriptBuilder / NOSB30_TRIAL.exe / data1.cab / Program_Files / CompLib / currencyComponent.scc < prev    next >
Encoding:
Text File  |  1998-10-05  |  2.3 KB  |  64 lines

  1. <!--Created with NetObjects Script Component Pad-->
  2. <!-- file currencyComponent.ecc
  3.         scriptcomponent interface file for currency.js  -->
  4.  
  5. <?XML?>
  6. <!DOCTYPE COMPONENT SYSTEM "ecmascriptcomponent.dtd">
  7.  
  8. <COMPONENT NAME="com.netobjects.currencyComponent" ENV="client"
  9.                DISPLAYNAME="Currency"
  10.                HINT="Creates a object that will format numbers into currency formats."
  11.                SRC="currency.js">
  12.  
  13.    <PROPERTY NAME="name" TYPE="STRING"
  14.                  DISPLAYNAME="name"
  15.                  HINT="(REQUIRED) Enter unique name of the control. Must exactly match the name of the corresponding JavaScript object on the page."
  16.                  DEFAULTVALUE="currency1">
  17.                  </PROPERTY>
  18.  
  19.    <PROPERTY NAME="centValue" TYPE="NUMBER"
  20.                  DISPLAYNAME="centValue"
  21.                  HINT="Enter the number of cents that you wish to convert to dollars.">
  22.                  </PROPERTY>
  23.  
  24.    <PROPERTY NAME="moneyValue" TYPE="NUMBER"
  25.                  DISPLAYNAME="moneyValue"
  26.                  HINT="Enter the string that you wish to have converted into a money format">
  27.                  </PROPERTY>
  28.  
  29.    <PROPERTY NAME="decimalSeparator" TYPE="STRING"
  30.                  DISPLAYNAME="decimalSeparator"
  31.                  HINT="Enter the separator that you would like used for the deciaml place when formatting a money string.">
  32.                  </PROPERTY>
  33.  
  34.    <PROPERTY NAME="thousandSeparator" TYPE="STRING"
  35.                  DISPLAYNAME="thousandSeparator"
  36.                  HINT="Enter the separator that you would like used for the thousand place when formatting a money string.">
  37.                  </PROPERTY>
  38.  
  39.     <METHOD NAME="centsToDollars"
  40.                ENV="CLIENT"
  41.                HINT="Method to convert a number (cents) into a dollar amount">
  42.                </METHOD>
  43.  
  44.     <METHOD NAME="formatMoneyStr"
  45.                ENV="CLIENT"
  46.                HINT="Method to format a money string into a particular format">
  47.                </METHOD>
  48.  
  49.     <METHOD NAME="setCents"
  50.                ENV="CLIENT">
  51.       <PARAMETER NAME="value" TYPE="STRING"/>
  52.                </METHOD>
  53.  
  54.     <METHOD NAME="setMoneyToFormat"
  55.                ENV="CLIENT">
  56.       <PARAMETER NAME="value" TYPE="STRING"/>
  57.                </METHOD>
  58.  
  59.     <ICON SRC16="currency.gif"/>
  60.  
  61.     <HELP SRC="Currency.html"/>
  62.     
  63. </COMPONENT>
  64.