com.artenum.rosetta.ui
Class CompletionWindowImpl

java.lang.Object
  extended by com.artenum.rosetta.ui.CompletionWindowImpl
All Implemented Interfaces:
CompletionWindow, FocusListener, KeyListener, MouseListener, MouseMotionListener, EventListener

public class CompletionWindowImpl
extends Object
implements CompletionWindow, KeyListener, FocusListener, MouseMotionListener, MouseListener

Author:
Sebastien Jourdain (jourdain@artenum.com)

Nested Class Summary
 class CompletionWindowImpl.CompletionItemListModel
          List model which allow filter on completion item
 
Constructor Summary
CompletionWindowImpl()
           
 
Method Summary
 void focusGained(FocusEvent e)
          To support the auto hide when focus is lost
 void focusLost(FocusEvent e)
           
 String getCompletionResult()
           
 void keyPressed(KeyEvent e)
          Management of the key typing for the filtering
 void keyReleased(KeyEvent e)
           
 void keyTyped(KeyEvent e)
           
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
          To support the completion window resize
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void setFocusOut(JComponent component)
           
 void setGraphicalContext(Component component)
          Caution, the component shouldn't be null otherwise the completion window will never get the focus
 void setInputParsingManager(InputParsingManager inputParsingManager)
           
 void show(List<CompletionItem> list, Point location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompletionWindowImpl

public CompletionWindowImpl()
Method Detail

setFocusOut

public void setFocusOut(JComponent component)
Specified by:
setFocusOut in interface CompletionWindow

setInputParsingManager

public void setInputParsingManager(InputParsingManager inputParsingManager)
Specified by:
setInputParsingManager in interface CompletionWindow

setGraphicalContext

public void setGraphicalContext(Component component)
Caution, the component shouldn't be null otherwise the completion window will never get the focus

Specified by:
setGraphicalContext in interface CompletionWindow

show

public void show(List<CompletionItem> list,
                 Point location)
Specified by:
show in interface CompletionWindow

getCompletionResult

public String getCompletionResult()
Specified by:
getCompletionResult in interface CompletionWindow
Returns:
the result of the completion

keyPressed

public void keyPressed(KeyEvent e)
Management of the key typing for the filtering

Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
Specified by:
keyReleased in interface KeyListener

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener

focusGained

public void focusGained(FocusEvent e)
To support the auto hide when focus is lost

Specified by:
focusGained in interface FocusListener

focusLost

public void focusLost(FocusEvent e)
Specified by:
focusLost in interface FocusListener

mouseDragged

public void mouseDragged(MouseEvent e)
To support the completion window resize

Specified by:
mouseDragged in interface MouseMotionListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener


Copyright © 2007-2011 Artenum. All Rights Reserved.