public abstract class AbstractFindReplaceDialog extends AbstractSearchDialog
FindDialog and ReplaceDialog. It
is basically all of the features common to the two dialogs that weren't
taken care of in AbstractSearchDialog.javax.swing.JDialog.AccessibleJDialogjava.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityTypejava.awt.Window.AccessibleAWTWindow, java.awt.Window.Type| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JPanel |
dirPanel |
protected javax.swing.JRadioButton |
downButton |
protected javax.swing.JLabel |
findFieldLabel |
protected javax.swing.JButton |
findNextButton |
protected javax.swing.JCheckBox |
markAllCheckBox
The "mark all" check box.
|
static java.lang.String |
SEARCH_DOWNWARD_PROPERTY
Property fired when the user toggles the search direction radio buttons.
|
protected javax.swing.JRadioButton |
upButton |
cancelButton, caseCheckBox, context, findTextCombo, regexCheckBox, searchConditionsPanel, wholeWordCheckBox, wrapCheckBoxaccessibleContext, rootPane, rootPaneCheckingEnabledBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
AbstractFindReplaceDialog(java.awt.Dialog owner)
Constructor.
|
AbstractFindReplaceDialog(java.awt.Frame owner)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Listens for action events in this dialog.
|
void |
addSearchListener(SearchListener l)
Adds a
SearchListener to this dialog. |
protected void |
fireSearchEvent(SearchEvent.Type type,
org.fife.ui.rtextarea.SearchContext context)
Notifies all listeners that have registered interest for notification on
this event type.
|
java.lang.String |
getDownRadioButtonText()
Returns the text for the "Down" radio button.
|
java.lang.String |
getFindButtonText()
Returns the text on the "Find" button.
|
java.lang.String |
getFindWhatLabelText()
Returns the label on the "Find what" text field.
|
java.lang.String |
getSearchButtonsBorderText()
Returns the text for the search direction's radio buttons' border.
|
java.lang.String |
getUpRadioButtonText()
Returns the text for the "Up" radio button.
|
protected void |
handleSearchContextPropertyChanged(java.beans.PropertyChangeEvent e)
Called whenever a property in the search context is modified.
|
protected FindReplaceButtonsEnableResult |
handleToggleButtons()
Returns whether any action-related buttons (Find Next, Replace, etc.)
should be enabled.
|
protected void |
refreshUIFromContext()
Overridden to initialize UI elements specific to this subclass.
|
void |
removeSearchListener(SearchListener l)
Removes a
SearchListener from this dialog. |
void |
setDownRadioButtonText(java.lang.String text)
Sets the text label for the "Down" radio button.
|
void |
setFindButtonText(java.lang.String text)
Sets the text on the "Find" button.
|
void |
setFindWhatLabelText(java.lang.String text)
Sets the label on the "Find what" text field.
|
void |
setSearchButtonsBorderText(java.lang.String text)
Sets the text for the search direction's radio buttons' border.
|
void |
setUpRadioButtonText(java.lang.String text)
Sets the text label for the "Up" radio button.
|
createDefaultSearchContext, createTitledBorder, escapePressed, focusFindTextField, getBundle, getCancelButtonText, getContentAssistImage, getMatchCaseCheckboxText, getRegularExpressionCheckboxText, getSearchContext, getSearchString, getString, getWholeWordCheckboxText, getWrapCheckboxText, handleRegExCheckBoxClicked, isPreJava6JRE, isWholeWord, matchesSearchFor, requestFocus, setCancelButtonText, setContentAssistImage, setMatchCaseCheckboxText, setRegularExpressionCheckboxText, setSearchContext, setSearchString, setWholeWordCheckboxText, setWrapCheckboxTextsetEscapeClosesDialogaddImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBackaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final java.lang.String SEARCH_DOWNWARD_PROPERTY
protected javax.swing.JRadioButton upButton
protected javax.swing.JRadioButton downButton
protected javax.swing.JPanel dirPanel
protected javax.swing.JLabel findFieldLabel
protected javax.swing.JButton findNextButton
protected javax.swing.JCheckBox markAllCheckBox
public AbstractFindReplaceDialog(java.awt.Dialog owner)
owner - The dialog that owns this search dialog.public AbstractFindReplaceDialog(java.awt.Frame owner)
FindDialog and ReplaceDialog that isn't
taken care of in AbstractSearchDialog's constructor.owner - The window that owns this search dialog.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class AbstractSearchDialoge - The event that occurred.public void addSearchListener(SearchListener l)
SearchListener to this dialog. This listener will
be notified when find or replace operations are triggered. For
example, for a Replace dialog, a listener will receive notification
when the user clicks "Find", "Replace", or "Replace All".l - The listener to add.removeSearchListener(SearchListener)protected void fireSearchEvent(SearchEvent.Type type, org.fife.ui.rtextarea.SearchContext context)
event parameter.type - The type of search.context - The search context to fire. If this is null, this
dialog's current context (e.g. its current state) is used. This
parameter allows for scenarios where we want to search differently
than what our UI displays; for example, binding a keyboard
shortcut to "search backwards" no matter what.public final java.lang.String getDownRadioButtonText()
setDownRadioButtonText(java.lang.String)public final java.lang.String getFindButtonText()
setFindButtonText(java.lang.String)public final java.lang.String getFindWhatLabelText()
setFindWhatLabelText(java.lang.String)public final java.lang.String getSearchButtonsBorderText()
setSearchButtonsBorderText(java.lang.String)public final java.lang.String getUpRadioButtonText()
setUpRadioButtonText(java.lang.String)protected void handleSearchContextPropertyChanged(java.beans.PropertyChangeEvent e)
handleSearchContextPropertyChanged in class AbstractSearchDialoge - The property change event fired.protected FindReplaceButtonsEnableResult handleToggleButtons()
AbstractSearchDialoghandleToggleButtons in class AbstractSearchDialogprotected void refreshUIFromContext()
refreshUIFromContext in class AbstractSearchDialogpublic void removeSearchListener(SearchListener l)
SearchListener from this dialog.l - The listener to removeaddSearchListener(SearchListener)public void setDownRadioButtonText(java.lang.String text)
text - The new text label for the "Down" radio button.getDownRadioButtonText()public final void setFindButtonText(java.lang.String text)
text - The text for the Find button.getFindButtonText()public void setFindWhatLabelText(java.lang.String text)
text - The text for the "Find what" text field's label.getFindWhatLabelText()public final void setSearchButtonsBorderText(java.lang.String text)
text - The text for the search radio buttons' border.getSearchButtonsBorderText()public void setUpRadioButtonText(java.lang.String text)
text - The new text label for the "Up" radio button.getUpRadioButtonText()