JAVA/CORBA CLASSES


Examples: Width property
This agent increments the column width.

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.setWidth(vc.getWidth() + 1);
     System.out.println("Width = " + vc.getWidth());

   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also