次のエージェントは、数値列の負数へのカッコの設定を切り替えます。
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("All Documents");
ViewColumn vc = view.getColumn(6);
vc.setNumberAttribParens(!vc.isNumberAttribParens());
System.out.println("IsNumberAttribParens = " +
vc.isNumberAttribParens());
} catch(Exception e) {
e.printStackTrace();
}
}
}