com.levigo.jadice.appbase.search
Class RolloutSearch

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.levigo.util.swing.CollapsiblePane
                      extended by com.levigo.util.swing.effect.RolloutBox
                          extended by com.levigo.jadice.appbase.search.RolloutSearch
All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public class RolloutSearch
extends RolloutBox

See Also:
Serialized Form

Nested Class Summary
protected  class RolloutSearch.CancelAction
           
protected  class RolloutSearch.SearchAction
           
protected  class RolloutSearch.SelectNextAction
           
protected  class RolloutSearch.SelectPreviousAction
           
 
Nested classes/interfaces inherited from class com.levigo.util.swing.CollapsiblePane
CollapsiblePane.JCollapsiblePaneContainer, CollapsiblePane.Style
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
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  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
           
 
Fields inherited from class com.levigo.util.swing.CollapsiblePane
ANIMATION_STATE_KEY, COLLAPSED_ICON, COLLAPSED_NAME, EXPANDED_ICON, EXPANDED_NAME, TOGGLE_ACTION
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
RolloutSearch(EffectLayout.Edge position)
           
 
Method Summary
 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()
           
 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)
           
 
Methods inherited from class com.levigo.util.swing.effect.RolloutBox
addNotify, isEnabled, propertyChange, removeNotify, setContentPane, setEnabled
 
Methods inherited from class com.levigo.util.swing.CollapsiblePane
addImpl, getAnimationFPS, getAnimationSteps, getBorder, getContentPanel, getInsets, getInsets, getMaxAnimationStepSize, getMinimumSize, getOrientation, getPreferredSize, getStyle, isAnimated, isCollapsed, paintBorder, setAnimated, setAnimationFPS, setAnimationSteps, setBorder, setBounds, setCollapsed, setMaxAnimationStepSize, setOrientation, setStyle
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
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, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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
 
Methods inherited from class java.awt.Container
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, hide, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

autostartTimer

protected final Timer autostartTimer

cancelButton

protected final JButton cancelButton

selectPreviousButton

protected final JButton selectPreviousButton

selectNextButton

protected final JButton selectNextButton

searchField

protected final JTextField searchField

ctx

protected final Context ctx

searchRequest

protected final SearchRequest searchRequest

results

protected final EventList<Result> results

statusLabel

protected final JLabel statusLabel

selectPreviousAction

protected final RolloutSearch.SelectPreviousAction selectPreviousAction

selectNextAction

protected final RolloutSearch.SelectNextAction selectNextAction

progressBar

protected final BackgroundProgressBar progressBar
Constructor Detail

RolloutSearch

public RolloutSearch(EffectLayout.Edge position)
Method Detail

getPageView

protected PageView getPageView()

createPopupMenu

protected JPopupMenu createPopupMenu()

getMenuComponentFactory

protected DefaultMenuComponentFactory getMenuComponentFactory()

attachListeners

protected void attachListeners()
Wire up the necessary listeners. This method is called as the very last one during the UI creation sequence.


requestFocusInWindow

public boolean requestFocusInWindow()
Overrides:
requestFocusInWindow in class JComponent

createUI

protected Box createUI()

createSearchAndStatusArea

protected BackgroundProgressBar createSearchAndStatusArea()

createBackgroundProgressBar

protected BackgroundProgressBar createBackgroundProgressBar(Box searchAndStatus)
Create the background progress bar behind the search text field.


createStatusLabel

protected JLabel createStatusLabel()

createSearchField

protected JTextField createSearchField()

createResultList

protected EventList<Result> createResultList()

createSearchRequest

protected SearchRequest createSearchRequest()
Create the SearchRequest used by this component. A single SearchRequest instance is used for all searches.


setCurrentResultIndex

protected void setCurrentResultIndex(int index)
Set the current result index. Triggers navigation to the respective result location.


update

protected void update()
Update the GUI's state in response to a change in the search or other state.


update

protected void update(SearchStateChangeEvent e)

startSearch

public void startSearch()

cancelSearch

public void cancelSearch()

createButton

protected JButton createButton(Action action)
Create a button for the given action.


activate

public void activate()


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.