JAVA/CORBA CLASSES


Examples: HeaderFontPointSize property
This agent toggles the header 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.getHeaderFontPointSize() == 14)
       vc.setHeaderFontPointSize(8);
     else
       vc.setHeaderFontPointSize(vc.getHeaderFontPointSize() + 1);
     System.out.println("Header font point size = " +
       vc.getHeaderFontPointSize());
       
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also