mk.fsgrep.gui
Class App
java.lang.Object
mk.fsgrep.gui.App
- All Implemented Interfaces:
- java.awt.event.ItemListener, java.util.EventListener, RunCallback
public class App
- extends java.lang.Object
- implements java.awt.event.ItemListener, RunCallback
The principle GUI application class.
- Author:
- Murali Krishnan
Constructor Summary |
App()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
V_SEARCH_ONLY
protected static final int V_SEARCH_ONLY
- See Also:
- Constant Field Values
V_SEARCH_REPLACE
protected static final int V_SEARCH_REPLACE
- See Also:
- Constant Field Values
App
public App()
wrapButtons
protected static javax.swing.JPanel wrapButtons(javax.swing.JButton button1,
javax.swing.JButton button2)
wrapButtons
protected static javax.swing.JPanel wrapButtons(java.util.Collection<javax.swing.JButton> buttons)
getModel
public Fsgrep getModel()
getFrame
protected javax.swing.JFrame getFrame()
getFieldSearch1
protected javax.swing.JTextField getFieldSearch1()
getFieldSearch2
protected javax.swing.JTextField getFieldSearch2()
getFieldReplacement
protected javax.swing.JTextField getFieldReplacement()
getCheckCase
protected javax.swing.JCheckBox getCheckCase()
getCheckComments
protected javax.swing.JCheckBox getCheckComments()
getCheckFilenames
protected javax.swing.JCheckBox getCheckFilenames()
getCheckListFiles
protected javax.swing.JCheckBox getCheckListFiles()
getFieldNumMatch
protected javax.swing.JTextField getFieldNumMatch()
getFieldNumRemain
protected javax.swing.JTextField getFieldNumRemain()
getFieldNumFinished
protected javax.swing.JTextField getFieldNumFinished()
getFieldNumTotal
protected javax.swing.JTextField getFieldNumTotal()
getFieldStatus
protected javax.swing.JTextField getFieldStatus()
getButtonRescan
protected javax.swing.JButton getButtonRescan()
getButtonChange
protected javax.swing.JButton getButtonChange()
getButtonSearch
protected javax.swing.JButton getButtonSearch()
getButtonClear
protected javax.swing.JButton getButtonClear()
getButtonAbort
protected javax.swing.JButton getButtonAbort()
getButtonResults
protected javax.swing.JButton getButtonResults()
getButtonSelectPattern1
protected javax.swing.JButton getButtonSelectPattern1()
getButtonSelectPattern2
protected javax.swing.JButton getButtonSelectPattern2()
getProfileSelect
protected javax.swing.JComboBox getProfileSelect()
getProgressBar
protected javax.swing.JProgressBar getProgressBar()
getSearchTypePane
protected javax.swing.JTabbedPane getSearchTypePane()
getReportBuffer
protected java.lang.StringBuffer getReportBuffer()
getRecentProfiles
protected RecentProfiles getRecentProfiles()
getActiveComponents
protected java.util.ArrayList<javax.swing.JComponent> getActiveComponents()
getFilelistDisplay
protected FilelistDisplay getFilelistDisplay()
getResultDisplay
protected ResultDisplay getResultDisplay()
getRecentSearches
protected MRUList getRecentSearches()
getRunner
protected ThreadRunner getRunner()
setModel
public void setModel(Fsgrep val)
setFrame
protected void setFrame(javax.swing.JFrame val)
setFieldSearch1
protected void setFieldSearch1(javax.swing.JTextField val)
setFieldSearch2
protected void setFieldSearch2(javax.swing.JTextField val)
setFieldReplacement
protected void setFieldReplacement(javax.swing.JTextField val)
setCheckCase
protected void setCheckCase(javax.swing.JCheckBox val)
setCheckComments
protected void setCheckComments(javax.swing.JCheckBox val)
setCheckFilenames
protected void setCheckFilenames(javax.swing.JCheckBox val)
setCheckListFiles
protected void setCheckListFiles(javax.swing.JCheckBox val)
setFieldNumMatch
protected void setFieldNumMatch(javax.swing.JTextField val)
setFieldNumRemain
protected void setFieldNumRemain(javax.swing.JTextField val)
setFieldNumFinished
protected void setFieldNumFinished(javax.swing.JTextField val)
setFieldNumTotal
protected void setFieldNumTotal(javax.swing.JTextField val)
setFieldStatus
protected void setFieldStatus(javax.swing.JTextField val)
setButtonRescan
protected void setButtonRescan(javax.swing.JButton val)
setButtonChange
protected void setButtonChange(javax.swing.JButton val)
setButtonSearch
protected void setButtonSearch(javax.swing.JButton val)
setButtonClear
protected void setButtonClear(javax.swing.JButton val)
setButtonAbort
protected void setButtonAbort(javax.swing.JButton val)
setButtonResults
protected void setButtonResults(javax.swing.JButton val)
setButtonSelectPattern1
protected void setButtonSelectPattern1(javax.swing.JButton val)
setButtonSelectPattern2
protected void setButtonSelectPattern2(javax.swing.JButton val)
setProfileSelect
protected void setProfileSelect(javax.swing.JComboBox val)
setProgressBar
protected void setProgressBar(javax.swing.JProgressBar val)
setSearchTypePane
protected void setSearchTypePane(javax.swing.JTabbedPane val)
setResultDisplay
protected void setResultDisplay(ResultDisplay val)
getTextArea
protected javax.swing.JTextArea getTextArea()
getReportArea
protected javax.swing.JTextArea getReportArea()
createComponents
protected void createComponents()
getMostRecentSearch
protected java.lang.String getMostRecentSearch()
defineActions
protected void defineActions()
initializeModel
protected void initializeModel()
makeFrame
protected void makeFrame()
makeMenuBar
protected javax.swing.JMenuBar makeMenuBar()
makeScanPanel
protected javax.swing.JPanel makeScanPanel()
makeSearchPanel
protected javax.swing.JPanel makeSearchPanel()
makeSearchEntryPanel
protected javax.swing.JTabbedPane makeSearchEntryPanel()
makePatternField1
protected javax.swing.JPanel makePatternField1()
makePatternField2
protected javax.swing.JPanel makePatternField2()
makeStatusPanel
protected javax.swing.JPanel makeStatusPanel()
makeStatusBarPanel
protected javax.swing.JPanel makeStatusBarPanel()
closeSplash
protected void closeSplash()
performPatternSearch
protected void performPatternSearch(java.lang.String pattern)
performRefinedSearch
protected void performRefinedSearch(java.lang.String newPattern,
java.util.Collection<TargetFile> files)
defineProfileSettings
protected void defineProfileSettings()
selectRecentSearchPattern
protected void selectRecentSearchPattern()
handleProfileSettings
protected void handleProfileSettings(java.lang.String dir,
java.lang.String suffix)
- The callback function for the profile selection dialog.
- Parameters:
dir
- The base directory to scan.suffix
- The file suffix for which to scan.
handleProfileSelection
protected void handleProfileSelection()
- The action handler for the profile section list.
handleNewProfileSelection
protected void handleNewProfileSelection(boolean setSelection)
setProfileSelection
protected void setProfileSelection(java.lang.String entry)
showSearchStatisticsReport
protected void showSearchStatisticsReport()
clearSearchStatisticsReport
protected void clearSearchStatisticsReport()
runSearch
protected void runSearch()
formatResults
protected void formatResults()
abortAction
protected void abortAction()
clearHistory
protected void clearHistory()
findSearchType
protected int findSearchType()
findSearchField
protected javax.swing.JTextField findSearchField()
findButtonSelectPattern
protected javax.swing.JButton findButtonSelectPattern()
setupAction
protected void setupAction(java.lang.String pattern)
setSearchText
protected void setSearchText(java.lang.String string)
launch
public void launch(Fsgrep fsgrep)
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent ie)
- Specified by:
itemStateChanged
in interface java.awt.event.ItemListener
runFinished
public void runFinished(ThreadRunner runner)
- Specified by:
runFinished
in interface RunCallback
Copyright © 2009. All Rights Reserved.