Class SearchMediaPanel

All Implemented Interfaces:
ILocalized, IRememberPreferences, IRunnablePanel, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public class SearchMediaPanel extends JPanel implements IRunnablePanel, PropertyChangeListener, IRememberPreferences, ILocalized
TODO : keep only GUI items and make a controller for all logical code. \n Provided by the broldev.file.finder.swing project.
Since:
1.0 (Sep 3 2008), broldev.file.finder.swing 0.0.1-SNAPSHOT dependency
Version:
1.1 (Feb 8 2009)
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • SearchMediaPanel

      public SearchMediaPanel()
    • SearchMediaPanel

      public SearchMediaPanel(SearchAction searchAction)
  • Method Details

    • loadPreferences

      public void loadPreferences()
      Specified by:
      loadPreferences in interface IRememberPreferences
    • savePreferences

      public void savePreferences()
      Specified by:
      savePreferences in interface IRememberPreferences
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • showCard

      public void showCard(SearchMediaPanel.Card card)
    • criterion_filesizeCheckBoxStateChanged

      void criterion_filesizeCheckBoxStateChanged(ChangeEvent evt)
    • cleanResultsActionPerformed

      public void cleanResultsActionPerformed(ActionEvent evt)
    • getResultsCount

      public int getResultsCount()
    • getPath

      public String getPath()
      Returns:
      the path from where to start the search, or null if an error occurs
    • getOutputDocumentTitle

      public String getOutputDocumentTitle()
      Returns:
      the localized title of the output document, or null if an error occurs
    • getResultsTable

      public org.jdesktop.swingx.JXTable getResultsTable()
      Returns:
      the resultsTable
    • setLanguage

      public void setLanguage()
      Description copied from interface: ILocalized
      Sets localized language The implementation should use a ResourceBundle to load information based on the user's Locale, and may observe the LanguageHelper to update the GUI on Locale switch.
      Specified by:
      setLanguage in interface ILocalized
    • setStartPath

      public void setStartPath(String startPath)
    • addSpecialResultsFeaturesMenu

      public void addSpecialResultsFeaturesMenu(JMenu menu)
      Adds some features to the results table default menu.
      If a special menu is already defined, all the MenuComponents will be added to the existing menu.

      This method may be called by any plug-in. The menuItem action may retrieve the results by calling the getResults() method.
      Parameters:
      menu - JMenu containing the new features
      Since:
      1.1 (Feb 8 2009)
    • getResults

      public List<File> getResults()
      Returns:
      the results files.
      Since:
      1.1 (Feb 8 2009)
    • testColors

      public void testColors()
    • startProcess

      public void startProcess(boolean forceStart)
      Description copied from interface: IRunnablePanel
      Starts the process
      Specified by:
      startProcess in interface IRunnablePanel
      Parameters:
      forceStart -
      • true for canceling previous execution of the process and starting a new execution with new parameters.
      • false for starting only if not yet started
    • stopProcess

      public void stopProcess()
      Description copied from interface: IRunnablePanel
      Stops the process if exists
      Specified by:
      stopProcess in interface IRunnablePanel
    • toggleStartStopProcess

      public void toggleStartStopProcess()
      Description copied from interface: IRunnablePanel
      Starts the process (like startProcess(false)) if not started, or stops the process if started
      Specified by:
      toggleStartStopProcess in interface IRunnablePanel
    • main

      public static void main(String[] args)
      Auto-generated main method to display this JPanel inside a new JFrame.