JAVA/CORBA クラス


例:IsHeaderFontUnderline プロパティ
次のエージェントは、ヘッダーの下線フォントスタイルを切り替えます。

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.setHeaderFontUnderline(!vc.isHeaderFontUnderline());
System.out.println("IsHeaderFontUnderline = " +
vc.isHeaderFontUnderline());

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

関連項目