|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.rice.cs.drjava.ui.TabbedPanel
edu.rice.cs.drjava.ui.RegionsTreePanel<MovingDocumentRegion>
edu.rice.cs.drjava.ui.FindResultsPanel
public class FindResultsPanel
Panel for displaying find results. This class is a swing class which should only be accessed from the event thread.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.rice.cs.drjava.ui.RegionsTreePanel |
|---|
RegionsTreePanel.DefaultState, RegionsTreePanel.IChangeState, RegionsTreePanel.RegionMouseAdapter, RegionsTreePanel.RegionTree, RegionsTreePanel.RegionTreeUserObj<R extends OrderedDocumentRegion> |
| 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 JButton |
_bookmarkButton
|
protected JComboBox |
_colorBox
|
protected WeakReference<OpenDefinitionsDocument> |
_doc
|
protected JButton |
_findAgainButton
|
protected edu.rice.cs.drjava.ui.FindReplacePanel |
_findReplace
|
protected JButton |
_goToButton
|
protected int |
_lastIndex
|
protected boolean |
_matchCase
|
protected boolean |
_noComments
|
protected boolean |
_noTestCases
|
protected JButton |
_removeButton
|
protected boolean |
_searchAll
|
protected String |
_searchString
|
protected boolean |
_wholeWord
|
| Fields inherited from class edu.rice.cs.drjava.ui.RegionsTreePanel |
|---|
_buttonPanel, _changeState, _docToTreeNode, _frame, _leftPane, _model, _regionManager, _regionPopupMenu, _regionToTreeNode, _regTree, _regTreeModel, _rootNode, _title, DEFAULT_STATE, dtcr |
| Fields inherited from class edu.rice.cs.drjava.ui.TabbedPanel |
|---|
_closeButton, _closePanel, _displayed, _mainPanel |
| 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 | |
|---|---|
FindResultsPanel(MainFrame frame,
RegionManager<MovingDocumentRegion> regionManager,
String title,
String searchString,
boolean searchAll,
boolean matchCase,
boolean wholeWord,
boolean noComments,
boolean noTestCases,
WeakReference<OpenDefinitionsDocument> doc,
edu.rice.cs.drjava.ui.FindReplacePanel findReplace)
Constructs a new find results panel. |
|
| Method Summary | |
|---|---|
protected void |
_close()
Destroys this panel and its contents. |
protected void |
_updateButtons()
Update button state and text. |
void |
disableFindAgain()
Disables "Find Again", e.g. |
void |
freeResources()
Called from FindReplacePanel.findAll if search finds no matches. |
OpenDefinitionsDocument |
getDocument()
Return the document which was searched (or where the search started, if _searchAll is true). |
LayeredHighlighter.LayerPainter |
getSelectedPainter()
|
protected void |
goToRegion()
Go to region. |
boolean |
isSearchAll()
Return true if all documents were searched. |
protected JComponent[] |
makeButtons()
Creates the buttons for controlling the regions. |
protected AbstractAction[] |
makePopupMenuActions()
Makes popup menu actions. |
protected void |
performDefaultAction()
Action performed when the Enter key is pressed. |
| Methods inherited from class edu.rice.cs.drjava.ui.RegionsTreePanel |
|---|
_remove, _requestFocusInWindow, addRegion, closeIfEmpty, collapseAll, expandAll, expandTree, getSelectedRegions, makeRegionTreeUserObj, reload, removeRegion, requestFocusInWindow, updateButtons, updatePanel |
| Methods inherited from class edu.rice.cs.drjava.ui.TabbedPanel |
|---|
addCloseListener, dragEnter, dragExit, dragOver, drop, dropActionChanged, getName, isDisplayed, setDisplayed, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final String _searchString
protected final boolean _searchAll
protected final boolean _matchCase
protected final boolean _wholeWord
protected final boolean _noComments
protected final boolean _noTestCases
protected final WeakReference<OpenDefinitionsDocument> _doc
protected final edu.rice.cs.drjava.ui.FindReplacePanel _findReplace
protected JButton _findAgainButton
protected JButton _goToButton
protected JButton _bookmarkButton
protected JButton _removeButton
protected JComboBox _colorBox
protected int _lastIndex
| Constructor Detail |
|---|
public FindResultsPanel(MainFrame frame,
RegionManager<MovingDocumentRegion> regionManager,
String title,
String searchString,
boolean searchAll,
boolean matchCase,
boolean wholeWord,
boolean noComments,
boolean noTestCases,
WeakReference<OpenDefinitionsDocument> doc,
edu.rice.cs.drjava.ui.FindReplacePanel findReplace)
frame - the MainFrameregionManager - the region manager associated with this paneltitle - for the panelsearchString - string that was searched forsearchAll - whether all files were searcheddoc - weak reference to the document in which the search occurred (or started, if all documents were searched)findReplace - the FindReplacePanel that created this FindResultsPanel| Method Detail |
|---|
protected JComponent[] makeButtons()
makeButtons in class RegionsTreePanel<MovingDocumentRegion>public LayeredHighlighter.LayerPainter getSelectedPainter()
protected void performDefaultAction()
performDefaultAction in class RegionsTreePanel<MovingDocumentRegion>protected void _updateButtons()
_updateButtons in class RegionsTreePanel<MovingDocumentRegion>protected AbstractAction[] makePopupMenuActions()
makePopupMenuActions in class RegionsTreePanel<MovingDocumentRegion>protected void goToRegion()
goToRegion in class RegionsTreePanel<MovingDocumentRegion>protected void _close()
_close in class RegionsTreePanel<MovingDocumentRegion>public void freeResources()
public boolean isSearchAll()
public OpenDefinitionsDocument getDocument()
public void disableFindAgain()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||