ApplicationKey クラス

これは、個々のアプリケーション・キーをボタンまたはリンクとして 表すクラスです。複数のキーを 1 つの ApplicationKey クラスに 組み込むことはできません。複数のキーが必要な場合は、 複数の ApplicationKey インスタンスを定義してください。以下のコード例は、リンクとして表示される ApplicationKey を示しています。これをクリックすると、ZIETrans ランタイムに切断コマンドが送信されます
applicationKey = new ApplicationKey(this, SwtTransformationConstants.LINK);
applicationKey.setText("<a>Disconnect</a>");
applicationKey.setCommand("disconnect");
applicationKey.addSelectionListener(new org.eclipse.swt.events.SelectionListener() {
    public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
        com.ibm.hats.runtime.services.ISessionService 
                                     sessionService = getSessionService();
        if (sessionService != null) {
            sessionService.sendCommand(applicationKey.getCommand());
        }
    }
    public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e) {
    }
});