JAVA/CORBA CLASSES


Examples: CurrencySymbol, IsCurrencySpace, and IsCurrencySuffix properties
The following agent displays the currency international settings: the currency symbol; whether a space is between the currency symbol and the number; whether the currency symbol follows the number.

import lotus.domino.*;
public class JavaAgent extends AgentBase {
 public void NotesMain() {
   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();
     // (Your code goes here)
     International inat = session.getInternational();
     System.out.println("Currency symbol is \"" +
     inat.getCurrencySymbol() + "\"");
     if (inat.isCurrencySpace())
       System.out.println
       ("Space between currency symbol and number");
     else
       System.out.println
       ("No space between currency symbol and number");
     if (inat.isCurrencySuffix())
       System.out.println
       ("Currency symbol follows number");
     else
       System.out.println
       ("Currency symbol does not follow number");
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also