JAVA/CORBA CLASSES


Examples: IsHeaderFontItalic property
This agent toggles the italic header font style.

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("Categorized");
     ViewColumn vc = view.getColumn(2);
     vc.setHeaderFontItalic(!vc.isHeaderFontItalic());
     System.out.println("IsHeaderFontItalic = " +
       vc.isHeaderFontItalic());
       
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also