|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.autocomplete.AutocompleterTextComponent
public abstract class AutocompleterTextComponent
AutocompleterTextComponent convert any text component to auto-completion supported text component. In order to support auto-completion two abstract methods need to be implemented:
| Constructor Summary | |
|---|---|
protected |
AutocompleterTextComponent(EditableComboBox editableComboBox)
|
|
AutocompleterTextComponent(javax.swing.text.JTextComponent textComp)
|
| Method Summary | |
|---|---|
void |
addFocusListener(java.awt.event.FocusListener listener)
|
void |
addKeyListener(java.awt.event.KeyAdapter adapter)
|
int |
getCaretPosition()
|
javax.swing.text.Document |
getDocument()
|
int |
getHeight()
|
java.util.Vector |
getItemNames()
getItemsNames |
java.lang.String |
getText()
|
javax.swing.text.JTextComponent |
getTextComponent()
|
boolean |
hasFocus()
|
boolean |
isCarentAtEndOfTextAtInsertion()
|
boolean |
isCarentAtEndOfTextAtRemoval()
|
boolean |
isComponentsPopupVisible()
isPopupVisible |
boolean |
isEnabled()
|
boolean |
isShowing()
|
java.awt.Rectangle |
modelToView()
|
void |
moveCarentToEndOfText()
|
abstract void |
OnEnterPressed(java.awt.event.KeyEvent keyEvent)
This function will be called when the text component has the focus and enter key is pressed, while the auto-completion popup window is unvisible. |
abstract void |
OnEscPressed(java.awt.event.KeyEvent keyEvent)
This function will be called when the text component has the focus and escape key is pressed, while the auto-completion popup window is unvisible. |
void |
requestFocus()
|
void |
setComponentsPopupUnvisibe()
setPopupUnvisibe - make the combo-box list of items unvisible. |
void |
setText(java.lang.String text)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutocompleterTextComponent(javax.swing.text.JTextComponent textComp)
protected AutocompleterTextComponent(EditableComboBox editableComboBox)
| Method Detail |
|---|
public abstract void OnEnterPressed(java.awt.event.KeyEvent keyEvent)
public abstract void OnEscPressed(java.awt.event.KeyEvent keyEvent)
public javax.swing.text.Document getDocument()
public boolean isShowing()
public void setText(java.lang.String text)
public java.lang.String getText()
public boolean hasFocus()
public boolean isEnabled()
public int getCaretPosition()
public void requestFocus()
public int getHeight()
public java.awt.Rectangle modelToView()
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationExceptionpublic void moveCarentToEndOfText()
public boolean isCarentAtEndOfTextAtInsertion()
public boolean isCarentAtEndOfTextAtRemoval()
public javax.swing.text.JTextComponent getTextComponent()
public void addKeyListener(java.awt.event.KeyAdapter adapter)
public void addFocusListener(java.awt.event.FocusListener listener)
public java.util.Vector getItemNames()
public boolean isComponentsPopupVisible()
public void setComponentsPopupUnvisibe()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard