Ontimize Document Management 0.032EN

com.ontimize.dms.client.gui.search
Class DefaultSearchComponent

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.ontimize.dms.client.gui.search.BasicSearchComponent
                      extended by com.ontimize.dms.client.gui.search.DefaultSearchComponent
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class DefaultSearchComponent
extends BasicSearchComponent
implements java.awt.event.ActionListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  javax.swing.border.TitledBorder border
           
protected  javax.swing.JButton cancelButton
           
protected  javax.swing.JCheckBox check
           
static java.awt.Color DISABLED_FIELD_BACKGROUND
           
static java.awt.Color FIELD_BACKGROUND
           
protected  javax.swing.JButton okButton
           
protected  javax.swing.JButton recycleButton
           
protected  javax.swing.JLabel resultField
           
protected  boolean returnbutton
           
protected  javax.swing.JButton returnButton
           
protected  SearcherComponent sc
           
static java.awt.Color SEARCH_BACKGROUND
           
protected  BlinkLabel searchingText
           
protected  boolean subdirectories
           
protected static java.lang.String TAG_SEARCH_CANCEL_BUTTON_TIP
           
protected static java.lang.String TAG_SEARCH_CANCELLED_TEXT
           
protected static java.lang.String TAG_SEARCH_RESULT_TEXT
           
protected static java.lang.String TAG_SEARCH_RETURN_BUTTON_TIP
           
protected static java.lang.String TAG_SEARCH_SELECTED
           
protected static java.lang.String TAG_SEARCH_SELECTED_TIP
           
protected static java.lang.String TAG_SEARCH_TIP
           
protected static java.lang.String TAG_SEARCH_TITLE
           
protected static java.lang.String TAG_SEARCHING_TEXT
           
protected  javax.swing.JTextField wordsField
           
 
Fields inherited from class com.ontimize.dms.client.gui.search.BasicSearchComponent
CONTENT_KEY, ENABLED_SUBDIRECTORIES_PARAM, SELECTED_KEY, SHOW_RETURN_BUTTON_PARAM
 
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
DefaultSearchComponent(java.util.Hashtable params)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void clear()
           
protected  java.awt.event.KeyListener createKey()
           
 void finishSearch()
           
 java.awt.Dimension getMinimumSize()
           
 java.lang.String getName()
           
 java.awt.Dimension getPreferredSize()
           
 java.util.Vector getTextsToTranslate()
           
 void search()
           
 void setComponentLocale(java.util.Locale l)
           
 void setEnabled(boolean enabled)
           
 void setResourceBundle(java.util.ResourceBundle rb)
           
 void setSearcherComponent(SearcherComponent sc)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, 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, 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, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, 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, 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, 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, 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, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, 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

SEARCH_BACKGROUND

public static java.awt.Color SEARCH_BACKGROUND

FIELD_BACKGROUND

public static java.awt.Color FIELD_BACKGROUND

DISABLED_FIELD_BACKGROUND

public static java.awt.Color DISABLED_FIELD_BACKGROUND

TAG_SEARCH_TITLE

protected static final java.lang.String TAG_SEARCH_TITLE
See Also:
Constant Field Values

TAG_SEARCH_TIP

protected static final java.lang.String TAG_SEARCH_TIP
See Also:
Constant Field Values

TAG_SEARCH_SELECTED

protected static final java.lang.String TAG_SEARCH_SELECTED
See Also:
Constant Field Values

TAG_SEARCH_SELECTED_TIP

protected static final java.lang.String TAG_SEARCH_SELECTED_TIP
See Also:
Constant Field Values

TAG_SEARCHING_TEXT

protected static final java.lang.String TAG_SEARCHING_TEXT
See Also:
Constant Field Values

TAG_SEARCH_CANCELLED_TEXT

protected static final java.lang.String TAG_SEARCH_CANCELLED_TEXT
See Also:
Constant Field Values

TAG_SEARCH_RESULT_TEXT

protected static final java.lang.String TAG_SEARCH_RESULT_TEXT
See Also:
Constant Field Values

TAG_SEARCH_CANCEL_BUTTON_TIP

protected static final java.lang.String TAG_SEARCH_CANCEL_BUTTON_TIP
See Also:
Constant Field Values

TAG_SEARCH_RETURN_BUTTON_TIP

protected static final java.lang.String TAG_SEARCH_RETURN_BUTTON_TIP
See Also:
Constant Field Values

border

protected javax.swing.border.TitledBorder border

okButton

protected javax.swing.JButton okButton

cancelButton

protected javax.swing.JButton cancelButton

recycleButton

protected javax.swing.JButton recycleButton

returnButton

protected javax.swing.JButton returnButton

wordsField

protected javax.swing.JTextField wordsField

resultField

protected javax.swing.JLabel resultField

check

protected javax.swing.JCheckBox check

sc

protected SearcherComponent sc

searchingText

protected BlinkLabel searchingText

subdirectories

protected boolean subdirectories

returnbutton

protected boolean returnbutton
Constructor Detail

DefaultSearchComponent

public DefaultSearchComponent(java.util.Hashtable params)
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class java.awt.Component

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

finishSearch

public void finishSearch()

createKey

protected java.awt.event.KeyListener createKey()

getMinimumSize

public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class javax.swing.JComponent

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class javax.swing.JComponent

setEnabled

public void setEnabled(boolean enabled)
Overrides:
setEnabled in class javax.swing.JComponent

setSearcherComponent

public void setSearcherComponent(SearcherComponent sc)
Specified by:
setSearcherComponent in class BasicSearchComponent

search

public void search()

clear

public void clear()
Specified by:
clear in class BasicSearchComponent

getTextsToTranslate

public java.util.Vector getTextsToTranslate()

setComponentLocale

public void setComponentLocale(java.util.Locale l)

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle rb)

Ontimize Document Management