例: Width property

次のエージェントは列の幅を増加します。

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();
    }
  }
}