com.raelity.jvi.swing
Class NewWindowCmdEntry

java.lang.Object
  extended by com.raelity.jvi.swing.NewWindowCmdEntry
All Implemented Interfaces:
ActionListener, EventListener

public class NewWindowCmdEntry
extends Object
implements ActionListener

This class provides a floating CommandLine entry widget. A separate window must be allocated for each browser. The window close button is disabled. or must be used to dismiss it.


Field Summary
protected  NewCommandLineWindow commandLineWindow
          valid while active taking input
protected  JComponent currentEditorPane
          valid while actively taking input
protected  List list
          the history list
protected  Map windowMap
          maps frames to their command line window
 
Constructor Summary
NewWindowCmdEntry(String type)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          This is invoked when the command line entry is stopped by the user.
 void activate(String mode, JComponent parent)
          ViCmdEntry interface
 void activate(String mode, JComponent editorComponent, String initialText, boolean passThru)
          Start taking input.
 void addActionListener(ActionListener l)
          ViCmdEntry interface
 void append(String s)
          ViCmdEntry interface
 void cancel()
          ViCmdEntry interface
 String getCommand()
          ViCmdEntry interface
protected  NewCommandLineWindow getCommandLineWindow(JComponent c)
          This is invoked to get the command window associated with the specified text view.
protected  NewCommandLineWindow placeCommandWindow(JComponent editorComponent)
          This method positions a command line for the indicated editor.
 void removeActionListener(ActionListener l)
          ViCmdEntry interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected List list
the history list


currentEditorPane

protected JComponent currentEditorPane
valid while actively taking input


commandLineWindow

protected NewCommandLineWindow commandLineWindow
valid while active taking input


windowMap

protected Map windowMap
maps frames to their command line window

Constructor Detail

NewWindowCmdEntry

public NewWindowCmdEntry(String type)
Method Detail

getCommand

public String getCommand()
ViCmdEntry interface


append

public void append(String s)
ViCmdEntry interface


getCommandLineWindow

protected NewCommandLineWindow getCommandLineWindow(JComponent c)
This is invoked to get the command window associated with the specified text view. A new one should be created if needed. Any newly created window is parented to the frame containing the indicated editor. This is called by placeCommandWindow(javax.swing.JComponent).

Returns:
the CommandLineWindow

placeCommandWindow

protected NewCommandLineWindow placeCommandWindow(JComponent editorComponent)
This method positions a command line for the indicated editor. This invokes .

Returns:
the CommandLineWindow that was placed.

activate

public void activate(String mode,
                     JComponent parent)
ViCmdEntry interface


activate

public void activate(String mode,
                     JComponent editorComponent,
                     String initialText,
                     boolean passThru)
Start taking input. As a side effect of invoking this, the variable is set.


actionPerformed

public void actionPerformed(ActionEvent e)
This is invoked when the command line entry is stopped by the user. pass the event on. ActionListener interface.

Specified by:
actionPerformed in interface ActionListener

cancel

public void cancel()
ViCmdEntry interface


addActionListener

public void addActionListener(ActionListener l)
                       throws TooManyListenersException
ViCmdEntry interface

Throws:
TooManyListenersException

removeActionListener

public void removeActionListener(ActionListener l)
ViCmdEntry interface