程序包 weka.gui

类 SimpleCLIPanel

所有已实现的接口:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class SimpleCLIPanel extends JPanel implements ActionListener
Creates a very simple command line for invoking the main method of classes. System.out and System.err are redirected to an output area. Features a simple command history -- use up and down arrows to move through previous commmands. This gui uses only AWT (i.e. no Swing).
版本:
$Revision: 7059 $
作者:
Len Trigg (trigg@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 构造器详细资料

    • SimpleCLIPanel

      public SimpleCLIPanel() throws Exception
      Constructor.
      抛出:
      Exception - if an error occurs
  • 方法详细资料

    • runCommand

      public void runCommand(String commands) throws Exception
      Executes a simple cli command.
      参数:
      commands - the command string
      抛出:
      Exception - if an error occurs
    • doHistory

      public void doHistory(KeyEvent e)
      Changes the currently displayed command line when certain keys are pressed. The up arrow moves back through history entries and the down arrow moves forward through history entries.
      参数:
      e - a value of type 'KeyEvent'
    • doCommandlineCompletion

      public void doCommandlineCompletion(KeyEvent e)
      performs commandline completion on packages and classnames.
      参数:
      e - a value of type 'KeyEvent'
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Only gets called when return is pressed in the input area, which starts the command running.
      指定者:
      actionPerformed 在接口中 ActionListener
      参数:
      e - a value of type 'ActionEvent'
    • main

      public static void main(String[] args) throws Exception
      Main method for testing this class.
      参数:
      args - commandline arguments - ignored
      抛出:
      Exception - if initialization fails