|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.brainj3d.shwing.swing.AutoComplete
public class AutoComplete
This provides autocomplete functionality for a text box. It monitors the focus, keys and document to determine what is going on. When the document changes, it makes suggestions if possible. The down key or up key changes the selection on the suggestion list and fills in the form with highlighted text and keeps the focus on the text field. Clicking on the list fills in the form may fire an action event. If the text field fires, then the text is added to this AutoComplete unless autoAdd is false.
| Constructor Summary | |
|---|---|
AutoComplete(JTextField owner)
Create a new AutoComplete and register owner as the owner. |
|
AutoComplete(JTextField owner,
AutoCompleteModel model)
Create a new AutoComplete and register owner as the owner. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutoComplete(JTextField owner)
public AutoComplete(JTextField owner,
AutoCompleteModel model)
| Method Detail |
|---|
public void install(JTextField owner)
owner - public void setDisplayOwner(Component displayOwner)
public Component getDisplayOwner()
public void uninstall()
owner - public void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic void show()
protected Popup quickShow()
public void reshow()
protected void quickHide()
public void hide()
public void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerKeyListener.keyPressed(java.awt.event.KeyEvent)protected void moveToIndex(int index)
public void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void componentHidden(ComponentEvent e)
componentHidden in interface ComponentListenerpublic void componentMoved(ComponentEvent e)
componentMoved in interface ComponentListenerpublic void componentResized(ComponentEvent e)
componentResized in interface ComponentListenerpublic void componentShown(ComponentEvent e)
componentShown in interface ComponentListenerpublic void changedUpdate(DocumentEvent e)
changedUpdate in interface DocumentListenerpublic void insertUpdate(DocumentEvent e)
insertUpdate in interface DocumentListenerpublic void removeUpdate(DocumentEvent e)
removeUpdate in interface DocumentListenerpublic void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerpublic void add(String text)
text - public void addAll(Collection c)
c - public AutoCompleteModel getModel()
public void setModel(AutoCompleteModel model)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||