JAVA/CORBA CLASSES


Examples: FontPointSize property
This agent toggles the point size from 8 through 14.

import lotus.domino.*;

public class JavaAgent extends AgentBase {

 public void NotesMain() {

   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();

     // (Your code goes here)
     Database db = agentContext.getCurrentDatabase();
     View view = db.getView("By category");
     ViewColumn vc = view.getColumn(1);
     if (vc.getFontPointSize() == 14)
       vc.setFontPointSize(8);
     else
       vc.setFontPointSize(vc.getFontPointSize() + 1);
     System.out.println("Font point size = " + vc.getFontPointSize());
       
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also