The ApplicationKey class

This is the class that represents an individual application key either as a Button or a Link. Multiple keys cannot be included in one ApplicationKey class. If you need to have two or more keys, define multiple ApplicationKey instances. The following code sample shows an ApplicationKey that is displayed as a link and sends a disconnect command to the ZIETrans runtime when clicked:
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) {
    }
});