Sky View Café - Java

org.shetline.gui
Class SearchField

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.text.JTextComponent
                  extended by javax.swing.JTextField
                      extended by org.shetline.gui.KTextField
                          extended by org.shetline.gui.SearchField
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants

public class SearchField
extends KTextField

See Also:
Serialized Form

Nested Class Summary
protected  class SearchField.KeyAction
           
protected  class SearchField.SearchBorder
           
 
Nested classes/interfaces inherited from class org.shetline.gui.KTextField
KTextField.CaseMode, KTextField.ErrorState, KTextField.StatusBorder
 
Nested classes/interfaces inherited from class javax.swing.JTextField
JTextField.AccessibleJTextField
 
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  Icon clearingIcon
           
protected  boolean clearingIconShown
           
protected  boolean clickWillClear
           
protected  boolean cursorInside
           
static Icon DEFAULT_CLEARING_ICON
           
static Icon DEFAULT_SEARCH_LEFT_ICON
           
static Icon DEFAULT_SEARCH_RIGHT_ICON
           
protected  Cursor defaultCursor
           
protected  Icon explicitSearchIcon
           
protected static int SEARCH_BORDER_INSET_OVERLAP
           
protected static int SEARCH_BORDER_ROUNDING
           
protected  Icon searchIcon
           
protected static KeyStroke SHIFT_BACKSPACE_KEY
           
protected static KeyStroke SHIFT_DELETE_KEY
           
protected  Cursor standardCursor
           
 
Fields inherited from class org.shetline.gui.KTextField
altIsDown, baseText, byteEncoding, caseMode, checkLengthInBytes, currentEncoder, DEFAULT_EDITABLE_BACKGROUND, DEFAULT_ERROR_BACKGROUND, DEFAULT_ERROR_ICON, DEFAULT_MODIFIED_TEXT_COLOR, DEFAULT_SUGGESTION_TEXT_COLOR, DEFAULT_TYPING_UPDATE_DELAY, defaultBackground, defaultBorder, defaultForeground, docListener, editableBackground, errorBackground, errorIcon, errorState, explicitBorder, explicitDisabledBackground, explicitStandardTextColor, focusRegainedFromPopup, hasBeenEdited, ICON_GAP, ignoreDocumentChange, lastText, leftToRight, maxLength, modifiedTextColor, navigator, parent, popup, popupMenuListener, popupSuggestions, propertyChangeListener, savedForwardTraversalKeys, savedSelectionEnd, savedSelectionStart, showModified, suggestionShowing, suggestionText, suggestionTextColor, suppressNextPopupFor, textCheckLength, textCheckPending, textCheckStart, textListenerHandler, typingDelay, typingListenerHandler, validCharacterPattern
 
Fields inherited from class javax.swing.JTextField
notifyAction
 
Fields inherited from class javax.swing.text.JTextComponent
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SearchField()
           
SearchField(int columns)
           
 
Method Summary
protected  Border createOuterBorder()
           
 Icon getClearingIcon()
           
 Icon getSearchIcon()
           
protected  Insets getStatusBorderInsets()
           
protected  void paintStatusBorder(Graphics g, int x, int y, int width, int height)
           
protected  void SearchFieldX()
           
 void setClearingIcon(Icon icon)
           
 void setSearchIcon(Icon icon)
           
protected  void updateBorder()
           
 void updateUI()
           
 
Methods inherited from class org.shetline.gui.KTextField
accept, addNotify, addTextListener, addTypingListener, addTypingListener, beep, broadcastTextChange, checkTextChange, checkTextChangeAux, clearError, getByteEncoding, getCaseMode, getDisabledBackground, getEditableBackground, getErrorBackground, getErrorIcon, getErrorState, getHasBeenEdited, getLength, getMaximumLength, getMeasuredLength, getMeasuredLength, getModifiedTextColor, getShowModified, getStandardTextColor, getSuggestionText, getSuggestionTextColor, getText_JTextField, getText, getTypingUpdateDelay, getUserBorder, hasError, isCharacterInputEvent, isCheckingEncodedLength, isEmpty, isReallyEmpty, isValidCharacter, KTextFieldX, processKeyEvent_JTextField, processKeyEvent, refreshBorder, removeNotify, removeTextListener, removeTypingListener, restore, restore, restoreTabbing, setBaseText, setBaseText, setBorder_JTextField, setBorder, setCaseMode, setDisabledBackground, setDocument, setEditable, setEditableBackground, setEnabled, setErrorBackground, setErrorIcon, setErrorState, setMaximumLength, setMaximumLength, setMaximumLength, setMaximumLengthNE, setModifiedTextColor, setPersistentError, setPopupSuggestions, setShowModified, setStandardTextColor, setSuggestionText, setSuggestionTextColor, setText_JTextField, setText, setText, setTextAsIfTyped, setTransientError, setTypingUpdateDelay, setValidCharacterPattern, setValidCharacterPattern, updateAppearance, updateText, updateTextListening
 
Methods inherited from class javax.swing.JTextField
actionPropertyChanged, addActionListener, configurePropertiesFromAction, createActionPropertyChangeListener, createDefaultModel, fireActionPerformed, getAccessibleContext, getAction, getActionListeners, getActions, getColumns, getColumnWidth, getHorizontalAlignment, getHorizontalVisibility, getPreferredSize, getScrollOffset, getUIClassID, isValidateRoot, paramString, postActionEvent, removeActionListener, scrollRectToVisible, setAction, setActionCommand, setColumns, setFont, setHorizontalAlignment, setScrollOffset
 
Methods inherited from class javax.swing.text.JTextComponent
addCaretListener, addInputMethodListener, addKeymap, copy, cut, fireCaretUpdate, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getDropLocation, getDropMode, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getPrintable, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paste, print, print, print, processInputMethodEvent, read, removeCaretListener, removeKeymap, replaceSelection, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDragEnabled, setDropMode, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setUI, viewToModel, write
 
Methods inherited from class javax.swing.JComponent
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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, 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, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

clearingIcon

protected Icon clearingIcon

clearingIconShown

protected boolean clearingIconShown

clickWillClear

protected boolean clickWillClear

cursorInside

protected boolean cursorInside

defaultCursor

protected Cursor defaultCursor

explicitSearchIcon

protected Icon explicitSearchIcon

searchIcon

protected Icon searchIcon

standardCursor

protected Cursor standardCursor

DEFAULT_CLEARING_ICON

public static final Icon DEFAULT_CLEARING_ICON

DEFAULT_SEARCH_LEFT_ICON

public static final Icon DEFAULT_SEARCH_LEFT_ICON

DEFAULT_SEARCH_RIGHT_ICON

public static final Icon DEFAULT_SEARCH_RIGHT_ICON

SHIFT_BACKSPACE_KEY

protected static final KeyStroke SHIFT_BACKSPACE_KEY

SHIFT_DELETE_KEY

protected static final KeyStroke SHIFT_DELETE_KEY

SEARCH_BORDER_ROUNDING

protected static final int SEARCH_BORDER_ROUNDING
See Also:
Constant Field Values

SEARCH_BORDER_INSET_OVERLAP

protected static final int SEARCH_BORDER_INSET_OVERLAP
See Also:
Constant Field Values
Constructor Detail

SearchField

public SearchField()

SearchField

public SearchField(int columns)
Method Detail

SearchFieldX

protected void SearchFieldX()

getClearingIcon

public Icon getClearingIcon()

setClearingIcon

public void setClearingIcon(Icon icon)

getSearchIcon

public Icon getSearchIcon()

setSearchIcon

public void setSearchIcon(Icon icon)

updateBorder

protected void updateBorder()

getStatusBorderInsets

protected Insets getStatusBorderInsets()
Overrides:
getStatusBorderInsets in class KTextField

paintStatusBorder

protected void paintStatusBorder(Graphics g,
                                 int x,
                                 int y,
                                 int width,
                                 int height)
Overrides:
paintStatusBorder in class KTextField

updateUI

public void updateUI()
Overrides:
updateUI in class KTextField

createOuterBorder

protected Border createOuterBorder()
Overrides:
createOuterBorder in class KTextField

Sky View Café - Java