JAVA/CORBA クラス


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

関連項目