public class RecordStoreQueryTextField extends TextField implements DocumentListener, KeyListener, MouseListener, FocusListener, ListDataListener, ItemSelectable, Field, ListSelectionListener, org.jdesktop.swingx.decorator.HighlightPredicate
JTextField.AccessibleJTextFieldJTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBindingJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyorg.jdesktop.swingx.decorator.HighlightPredicate.AndHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.ColumnHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.ColumnTypeHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.DepthHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.EqualsHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.IdentifierHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.NotHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.OrHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.RowGroupHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.TypeHighlightPredicate| Modifier and Type | Field and Description |
|---|---|
Record |
selectedItem |
DEFAULT_BACKGROUND, DEFAULT_FOREGROUND, DEFAULT_SELECTED_FOREGROUND, READ_ONLY_BORDERnotifyActionDEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEYaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTERROR_ICONALWAYS, BIG_DECIMAL_NEGATIVE, EDITABLE, EMPTY_INTEGER_ARRAY, EMPTY_OBJECT_ARRAY, EMPTY_PREDICATE_ARRAY, EVEN, HAS_FOCUS, INTEGER_NEGATIVE, IS_FOLDER, IS_LEAF, IS_SELECTED, IS_TEXT_TRUNCATED, NEVER, ODD, READ_ONLY, ROLLOVER_CELL, ROLLOVER_COLUMN, ROLLOVER_ROWBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WESTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
RecordStoreQueryTextField(RecordDefinition recordDefinition,
String displayFieldName) |
RecordStoreQueryTextField(RecordDefinition recordDefinition,
String displayFieldName,
List<Query> queries) |
RecordStoreQueryTextField(RecordDefinition recordDefinition,
String displayFieldName,
Query... queries) |
RecordStoreQueryTextField(RecordStore recordStore,
String typeName,
String displayFieldName) |
getFieldName, getFieldValidationMessage, getFieldValueInternal, setEditable, setFieldBackgroundColor, setFieldForegroundColor, setFieldInvalid, setFieldValid, setForeground, setToolTipText, setUndoManager, toStringaddBuddy, addGap, getBuddies, getFocusBehavior, getOuterMargin, getPrompt, getPromptBackground, getPromptFontStyle, getPromptForeground, removeAllBuddies, setFocusBehavior, setOuterMargin, setPrompt, setPromptBackround, setPromptFontStyle, setPromptForegroundactionPropertyChanged, addActionListener, configurePropertiesFromAction, createActionPropertyChangeListener, createDefaultModel, fireActionPerformed, getAccessibleContext, getAction, getActionListeners, getActions, getColumns, getColumnWidth, getHorizontalAlignment, getHorizontalVisibility, getPreferredSize, getScrollOffset, getUIClassID, isValidateRoot, paramString, postActionEvent, removeActionListener, scrollRectToVisible, setAction, setActionCommand, setColumns, setDocument, setFont, setHorizontalAlignment, setScrollOffsetaddCaretListener, 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, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paste, print, print, print, processInputMethodEvent, read, removeCaretListener, removeKeymap, removeNotify, replaceSelection, restoreComposedText, saveComposedText, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDragEnabled, setDropMode, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setUI, updateUI, viewToModel, writeaddAncestorListener, addNotify, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, 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, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, 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, validateTreeaction, 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, 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, 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, transferFocus, transferFocusBackward, transferFocusUpCycleequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFieldName, getFieldValidationMessage, setEditable, setFieldBackgroundColor, setFieldForegroundColor, setFieldInvalid, setFieldValid, setUndoManagerpublic Record selectedItem
public RecordStoreQueryTextField(RecordDefinition recordDefinition, String displayFieldName)
public RecordStoreQueryTextField(RecordDefinition recordDefinition, String displayFieldName, List<Query> queries)
public RecordStoreQueryTextField(RecordDefinition recordDefinition, String displayFieldName, Query... queries)
public RecordStoreQueryTextField(RecordStore recordStore, String typeName, String displayFieldName)
public void addItemListener(ItemListener l)
addItemListener in interface ItemSelectablepublic void changedUpdate(DocumentEvent e)
changedUpdate in interface DocumentListenerpublic Field clone()
public void contentsChanged(ListDataEvent e)
contentsChanged in interface ListDataListenerprotected void fireItemStateChanged(ItemEvent e)
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
firePropertyChange in interface FieldfirePropertyChange in class TextFieldpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenerfocusGained in class TextFieldpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerfocusLost in class TextFieldprotected String getDisplayText(Object value)
getDisplayText in class TextFieldpublic <T> T getFieldValue()
getFieldValue in interface FieldgetFieldValue in class TextFieldpublic ItemListener[] getItemListeners()
public Record getSelectedItem()
public Object[] getSelectedObjects()
getSelectedObjects in interface ItemSelectablepublic void insertUpdate(DocumentEvent e)
insertUpdate in interface DocumentListenerpublic void intervalAdded(ListDataEvent e)
intervalAdded in interface ListDataListenerpublic void intervalRemoved(ListDataEvent e)
intervalRemoved in interface ListDataListenerpublic boolean isFieldValid()
isFieldValid in interface FieldisFieldValid in class TextFieldpublic boolean isHighlighted(Component renderer, org.jdesktop.swingx.decorator.ComponentAdapter adapter)
isHighlighted in interface org.jdesktop.swingx.decorator.HighlightPredicatepublic boolean isTextSameAsSelected()
public void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void removeItemListener(ItemListener l)
removeItemListener in interface ItemSelectablepublic void removeUpdate(DocumentEvent e)
removeUpdate in interface DocumentListenerprotected void search()
public void setBelow(boolean below)
public void setFieldToolTip(String toolTip)
setFieldToolTip in interface FieldsetFieldToolTip in class TextFieldpublic void setFieldValue(Object value)
setFieldValue in interface FieldsetFieldValue in class TextFieldpublic void setMaxResults(int maxResults)
public void setText(String text)
setText in class JTextComponentpublic void updateFieldValue()
updateFieldValue in interface FieldupdateFieldValue in class TextFieldpublic void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenerCopyright © 2015 Revolution Systems Inc.. All rights reserved.