public class RolloutSearch extends RolloutBox
Modifier and Type | Class and Description |
---|---|
protected class |
RolloutSearch.CancelAction |
protected class |
RolloutSearch.SearchAction |
protected class |
RolloutSearch.SelectNextAction |
protected class |
RolloutSearch.SelectPreviousAction |
CollapsiblePane.JCollapsiblePaneContainer, CollapsiblePane.Style
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected Timer |
autostartTimer |
protected JButton |
cancelButton |
protected Context |
ctx |
protected BackgroundProgressBar |
progressBar |
protected EventList<Result> |
results |
protected JTextField |
searchField |
protected SearchRequest |
searchRequest |
protected RolloutSearch.SelectNextAction |
selectNextAction |
protected JButton |
selectNextButton |
protected RolloutSearch.SelectPreviousAction |
selectPreviousAction |
protected JButton |
selectPreviousButton |
protected JLabel |
statusLabel |
ANIMATION_STATE_KEY, COLLAPSED_ICON, COLLAPSED_NAME, EXPANDED_ICON, EXPANDED_NAME, TOGGLE_ACTION
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
RolloutSearch(EffectLayout.Edge position) |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
protected void |
attachListeners()
Wire up the necessary listeners.
|
void |
cancelSearch() |
protected BackgroundProgressBar |
createBackgroundProgressBar(Box searchAndStatus)
Create the background progress bar behind the search text field.
|
protected JButton |
createButton(Action action)
Create a button for the given action.
|
protected JPopupMenu |
createPopupMenu() |
protected EventList<Result> |
createResultList() |
protected BackgroundProgressBar |
createSearchAndStatusArea() |
protected JTextField |
createSearchField() |
protected SearchRequest |
createSearchRequest()
Create the SearchRequest used by this component.
|
protected JLabel |
createStatusLabel() |
protected Box |
createUI() |
protected DefaultMenuComponentFactory |
getMenuComponentFactory() |
protected PageView |
getPageView() |
protected Context |
initializeContext()
Creates and installs the context for this component.
|
boolean |
requestFocusInWindow() |
protected void |
setCurrentResultIndex(int index)
Set the current result index.
|
void |
startSearch() |
protected void |
update()
Update the GUI's state in response to a change in the search or other state.
|
protected void |
update(SearchStateChangeEvent e) |
addNotify, isEnabled, propertyChange, removeNotify, setContentPane, setEnabled
addImpl, getAnimationFPS, getAnimationSteps, getBorder, getContentPanel, getInsets, getInsets, getMaxAnimationStepSize, getMinimumSize, getOrientation, getPreferredSize, getStyle, isAnimated, isCollapsed, paintBorder, setAnimated, setAnimationFPS, setAnimationSteps, setBorder, setBounds, setCollapsed, setMaxAnimationStepSize, setOrientation, setStyle
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, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, 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, 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, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, 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, 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, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, 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, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected final Timer autostartTimer
protected final JButton cancelButton
protected final JButton selectPreviousButton
protected final JButton selectNextButton
protected final JTextField searchField
protected final Context ctx
protected final SearchRequest searchRequest
protected final JLabel statusLabel
protected final RolloutSearch.SelectPreviousAction selectPreviousAction
protected final RolloutSearch.SelectNextAction selectNextAction
protected final BackgroundProgressBar progressBar
public RolloutSearch(EffectLayout.Edge position)
protected PageView getPageView()
protected Context initializeContext()
Context.Children.NONE
and Context.Ancestors.ALL
.protected JPopupMenu createPopupMenu()
protected DefaultMenuComponentFactory getMenuComponentFactory()
protected void attachListeners()
public boolean requestFocusInWindow()
requestFocusInWindow
in class JComponent
protected Box createUI()
protected BackgroundProgressBar createSearchAndStatusArea()
protected BackgroundProgressBar createBackgroundProgressBar(Box searchAndStatus)
protected JLabel createStatusLabel()
protected JTextField createSearchField()
protected SearchRequest createSearchRequest()
protected void setCurrentResultIndex(int index)
protected void update()
protected void update(SearchStateChangeEvent e)
public void startSearch()
public void cancelSearch()
public void activate()
Copyright © 2024 levigo holding gmbh. All rights reserved.