|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.pallas.swing.pcombobox.FullWordComboKeySelectionModel
Title: $FileName: FullWordComboKeySelectionModel.java$
Field Summary | |
(package private) boolean |
block
|
private int |
caretPosition
|
private javax.swing.JTextField |
field
|
private FullWordComboKeySelectionModel |
mgr
|
private PComboBox |
parent
|
private int |
selection
|
Constructor Summary | |
FullWordComboKeySelectionModel(PComboBox parent)
|
Method Summary | |
(package private) int |
getCaretPosition()
Returns user's current caret position inside of editable component. |
private java.lang.String |
getCurrentSerachString(int caretPosition)
|
(package private) javax.swing.JTextField |
getField()
Returns editor component of the PComboBox. |
(package private) PComboBox |
getParent()
Returns PComboBox that is using this FullWordComboKeySelectionModel. |
private java.lang.String |
getSelectedString(javax.swing.ComboBoxModel model)
|
private java.lang.String |
getString(javax.swing.ComboBoxModel model,
int index)
|
int |
selectionForKey(char key,
javax.swing.ComboBoxModel model)
Can't get this to work consistently, so we are not using this method. |
int |
selectionForKey(char key,
javax.swing.ComboBoxModel model,
int caretPosition)
LIke selectionForKey, but we are calling this indirectly (via Async) from PComboDocumentListener, passing in the caret position, and ignoring the key. |
void |
updateSearchStringField(java.lang.String s,
javax.swing.ComboBoxModel model,
java.lang.String searchString)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private PComboBox parent
private javax.swing.JTextField field
private FullWordComboKeySelectionModel mgr
boolean block
private int caretPosition
private int selection
Constructor Detail |
public FullWordComboKeySelectionModel(PComboBox parent)
Method Detail |
PComboBox getParent()
javax.swing.JTextField getField()
int getCaretPosition()
public int selectionForKey(char key, javax.swing.ComboBoxModel model)
selectionForKey
in interface javax.swing.JComboBox.KeySelectionManager
public int selectionForKey(char key, javax.swing.ComboBoxModel model, int caretPosition)
public void updateSearchStringField(java.lang.String s, javax.swing.ComboBoxModel model, java.lang.String searchString)
private java.lang.String getCurrentSerachString(int caretPosition)
private java.lang.String getString(javax.swing.ComboBoxModel model, int index)
private java.lang.String getSelectedString(javax.swing.ComboBoxModel model)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |