|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.lafwidget.LafWidgetAdapter
org.jvnet.lafwidget.combo.ComboboxAutoCompletionWidget
public class ComboboxAutoCompletionWidget
Adds auto-completion on editable combo boxes.
Nested Class Summary | |
---|---|
class |
ComboboxAutoCompletionWidget.ComboBoxPropertyChangeHandler
|
protected class |
ComboboxAutoCompletionWidget.CompletionPlainDocument
Code contributed by Thomas Bierhance from http://www.orbital-computer.de/JComboBox/ |
Field Summary | |
---|---|
protected ComboboxAutoCompletionWidget.ComboBoxPropertyChangeHandler |
changeHandler
Property change handler on enabled property. |
protected javax.swing.JComboBox |
comboBox
|
protected java.awt.event.ActionListener |
completionActionListener
|
protected ComboboxAutoCompletionWidget.CompletionPlainDocument |
completionDocument
|
protected java.beans.PropertyChangeListener |
completionPropertyListener
|
protected java.awt.Component |
editor
|
protected java.awt.event.FocusListener |
editorFocusListener
|
protected java.awt.event.KeyListener |
editorKeyListener
|
protected boolean |
hidePopupOnFocusLoss
|
protected boolean |
hitBackspace
|
protected boolean |
hitBackspaceOnSelection
|
protected javax.swing.ComboBoxModel |
model
|
protected javax.swing.ActionMap |
oldActionMap
|
protected boolean |
selecting
|
Fields inherited from class org.jvnet.lafwidget.LafWidgetAdapter |
---|
jcomp |
Fields inherited from interface org.jvnet.lafwidget.LafWidget |
---|
ANIMATION_KIND, COMBO_BOX_AUTOCOMPLETION_MATCHER, COMBO_BOX_NO_AUTOCOMPLETION, COMBO_BOX_USE_MODEL_ONLY, COMPONENT_PREVIEW_PAINTER, IGNORE_GLOBAL_LOCALE, NO_LOCK_ICON, PASSWORD_STRENGTH_CHECKER, TABBED_PANE_PREVIEW_PAINTER, TEXT_EDIT_CONTEXT_MENU, TEXT_FLIP_SELECT_ON_ESCAPE, TEXT_SELECT_ON_FOCUS, TREE_AUTO_DND_SUPPORT |
Constructor Summary | |
---|---|
ComboboxAutoCompletionWidget()
|
Method Summary | |
---|---|
protected void |
installEditor(java.awt.Component c)
|
void |
installListeners()
Installs listeners for the associated component. |
protected void |
installTextEditor(javax.swing.text.JTextComponent c)
|
void |
installUI()
Installs UI on the associated component. |
boolean |
isSimple()
|
boolean |
requiresCustomLafSupport()
Returns indication whether this widget requires custom LAF
support. |
void |
setComponent(javax.swing.JComponent jcomp)
Associates a component with this widget. |
void |
uninstallListeners()
Uninstalls listeners for the associated component. |
protected void |
uninstallTextEditor(javax.swing.text.JTextComponent e)
|
Methods inherited from class org.jvnet.lafwidget.LafWidgetAdapter |
---|
installComponents, installDefaults, uninstallComponents, uninstallDefaults, uninstallUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JComboBox comboBox
protected ComboboxAutoCompletionWidget.ComboBoxPropertyChangeHandler changeHandler
enabled
property.
protected javax.swing.ComboBoxModel model
protected java.awt.Component editor
protected boolean selecting
protected boolean hidePopupOnFocusLoss
protected boolean hitBackspace
protected boolean hitBackspaceOnSelection
protected java.awt.event.ActionListener completionActionListener
protected java.beans.PropertyChangeListener completionPropertyListener
protected java.awt.event.KeyListener editorKeyListener
protected java.awt.event.FocusListener editorFocusListener
protected ComboboxAutoCompletionWidget.CompletionPlainDocument completionDocument
protected javax.swing.ActionMap oldActionMap
Constructor Detail |
---|
public ComboboxAutoCompletionWidget()
Method Detail |
---|
public boolean isSimple()
public void setComponent(javax.swing.JComponent jcomp)
LafWidget
this
widget.
setComponent
in interface LafWidget
setComponent
in class LafWidgetAdapter
jcomp
- Component.public void installUI()
LafWidget
installUI
in interface LafWidget
installUI
in class LafWidgetAdapter
public void installListeners()
LafWidget
installListeners
in interface LafWidget
installListeners
in class LafWidgetAdapter
protected void installTextEditor(javax.swing.text.JTextComponent c)
public void uninstallListeners()
LafWidget
uninstallListeners
in interface LafWidget
uninstallListeners
in class LafWidgetAdapter
protected void uninstallTextEditor(javax.swing.text.JTextComponent e)
protected void installEditor(java.awt.Component c)
public boolean requiresCustomLafSupport()
LafWidget
this
widget requires custom LAF
support. Some widgets such as TabOverviewDialogWidget
or
TabHoverPreviewWidget
require custom implementation based on the
internals of the specific LAF. Relevant functions in the base
LafWidgetSupport
support throw
UnsupportedOperationException
.
true
if this
widget requires custom
LAF support, false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |