Examples: HeaderLines, IsCategorized, IsHierarchical, RowLines, Spacing, and TopLevelEntryCount properties

This agent prints the number of header lines, number of row lines, spacing interval, top-level entry count, and hierarchical status for all categorized views in the current database.

import lotus.domino.*;
import java.util.Vector;
public class JavaAgent extends AgentBase {
  public void NotesMain() {
    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();
      // (Your code goes here) 
      Database db = agentContext.getCurrentDatabase();
      Vector views = db.getViews();
      for (int i=0; i<views.size(); i++) {
        View view = (View)views.elementAt(i);
        if (view.isCategorized()) {
          System.out.println(view.getName());
          System.out.println
          ("\tHeaderLines = " + view.getHeaderLines());
          System.out.println
          ("\tRowLines = " + view.getRowLines());
          System.out.println
          ("\tSpacing = " + view.getSpacing());
          long tlec = view.getTopLevelEntryCount();
          if (tlec < 0) tlec = tlec + 65536;
          System.out.println
          ("\tTopLevelEntryCount = " + tlec);
          System.out.println
          ("\tIsHierarchical = " + view.isHierarchical());
          }
        }
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}