Packages » Package html » Class HTMLNumberFormat

Class HTMLNumberFormat

Declaration:
<? class HTMLNumberFormat extends HTMLTag ?>

Description:
This tag is used to format numbers and prices in locale-specific manner. It tries to get the document's locale and use it to format the number. The number to format is denoted by the key attribute that should hold the name of the template variable containing the value. Immediate value can be specified by the value attribute. By setting the mode attribute to price, this tag will format the value as if it were price.

Parent Classes:
SDNode , SDElement , HTMLTag

Authors:
  • Dennis Popel

Methods:
  • isExposed()
    This tag is never exposed
  • onClose()
    Override this to take some action (possibly restore own children state and attributes) after the template has finished processing the body of the tag.
  • onOpen()
    Override this to take some action (possibly modify own children state and own attributes) and decide whether to process the body. Please note that this method can be called multiple times on the same instance if the tag is repeated with the body of parent tag.