Forge - Parent 1.0.0.Final

org.jboss.forge.shell.spi
Interface TriggeredAction


public interface TriggeredAction

Allows the shell to register an ActionListener that is performed when the corresponding character is being read by the ConsoleReader.

Author:
Koen Aers

Method Summary
 ActionListener getListener()
          The ActionListener for which the actionPerformed method will be invoked when the trigger character is read.
 char getTrigger()
          The char that is used to register the ActionListener as a TriggeredAction in the Shell.
 

Method Detail

getTrigger

char getTrigger()
The char that is used to register the ActionListener as a TriggeredAction in the Shell.


getListener

ActionListener getListener()
The ActionListener for which the actionPerformed method will be invoked when the trigger character is read.


Forge - Parent 1.0.0.Final

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.