public class SearchTextField
extends javax.swing.JPanel
Modifier and Type | Class and Description |
---|---|
static class |
SearchTextField.FindAction |
class |
SearchTextField.MyModel |
protected static class |
SearchTextField.TextFieldWithProcessing |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static javax.swing.KeyStroke |
ALT_SHOW_HISTORY_KEYSTROKE |
static CustomShortcutSet |
ALT_SHOW_HISTORY_SHORTCUT |
static DataKey<SearchTextField> |
KEY |
static javax.swing.KeyStroke |
SHOW_HISTORY_KEYSTROKE |
static CustomShortcutSet |
SHOW_HISTORY_SHORTCUT |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
SearchTextField() |
SearchTextField(boolean historyPopupEnabled) |
SearchTextField(boolean historyPopupEnabled,
java.lang.String historyPropertyName) |
SearchTextField(java.lang.String historyPropertyName) |
Modifier and Type | Method and Description |
---|---|
void |
addCurrentTextToHistory() |
void |
addDocumentListener(javax.swing.event.DocumentListener listener) |
void |
addKeyboardListener(java.awt.event.KeyListener listener) |
void |
addNotify() |
protected java.lang.Runnable |
createItemChosenCallback(javax.swing.JList list) |
java.util.List<java.lang.String> |
getHistory() |
protected java.awt.Component |
getPopupLocationComponent() |
int |
getSelectedIndex() |
java.lang.String |
getText() |
JBTextField |
getTextEditor() |
protected boolean |
hasIconsOutsideOfTextField()
Deprecated.
unused
|
protected boolean |
isSearchControlUISupported()
Deprecated.
unused
|
protected void |
keyEventToTextField(java.awt.event.KeyEvent e) |
protected void |
onFieldCleared() |
protected void |
onFocusGained() |
protected void |
onFocusLost() |
protected boolean |
preprocessEventForTextField(java.awt.event.KeyEvent e) |
void |
removeDocumentListener(javax.swing.event.DocumentListener listener) |
void |
removeNotify() |
void |
requestFocus() |
boolean |
requestFocusInWindow() |
void |
reset() |
void |
selectText() |
protected void |
setEmptyHistory() |
void |
setHistory(java.util.List<java.lang.String> aHistory) |
protected void |
setHistoryPropertyName(java.lang.String historyPropertyName) |
void |
setHistorySize(int historySize) |
void |
setSearchIcon(javax.swing.Icon icon)
Deprecated.
unused
|
void |
setSelectedItem(java.lang.String s) |
void |
setText(java.lang.String aText) |
protected void |
showPopup() |
protected boolean |
toClearTextOnEscape() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final DataKey<SearchTextField> KEY
public static final javax.swing.KeyStroke SHOW_HISTORY_KEYSTROKE
public static final CustomShortcutSet SHOW_HISTORY_SHORTCUT
public static final javax.swing.KeyStroke ALT_SHOW_HISTORY_KEYSTROKE
public static final CustomShortcutSet ALT_SHOW_HISTORY_SHORTCUT
public SearchTextField()
public SearchTextField(boolean historyPopupEnabled)
public SearchTextField(java.lang.String historyPropertyName)
public SearchTextField(boolean historyPopupEnabled, java.lang.String historyPropertyName)
public void addNotify()
addNotify
in class javax.swing.JComponent
protected boolean toClearTextOnEscape()
protected void onFieldCleared()
protected void onFocusLost()
protected void onFocusGained()
@Deprecated protected boolean isSearchControlUISupported()
@Deprecated protected boolean hasIconsOutsideOfTextField()
public void addDocumentListener(javax.swing.event.DocumentListener listener)
public void removeDocumentListener(javax.swing.event.DocumentListener listener)
public void addKeyboardListener(java.awt.event.KeyListener listener)
public void setHistorySize(int historySize)
public void setHistory(java.util.List<java.lang.String> aHistory)
public java.util.List<java.lang.String> getHistory()
public void setText(java.lang.String aText)
public java.lang.String getText()
public void removeNotify()
removeNotify
in class javax.swing.JComponent
public void addCurrentTextToHistory()
public void selectText()
public JBTextField getTextEditor()
public boolean requestFocusInWindow()
requestFocusInWindow
in class javax.swing.JComponent
public void requestFocus()
requestFocus
in class javax.swing.JComponent
protected void setHistoryPropertyName(java.lang.String historyPropertyName)
public void reset()
protected void setEmptyHistory()
protected java.lang.Runnable createItemChosenCallback(javax.swing.JList list)
protected void showPopup()
protected java.awt.Component getPopupLocationComponent()
public void setSelectedItem(java.lang.String s)
public int getSelectedIndex()
protected final void keyEventToTextField(java.awt.event.KeyEvent e)
protected boolean preprocessEventForTextField(java.awt.event.KeyEvent e)
@Deprecated public void setSearchIcon(javax.swing.Icon icon)