Class SynchroMainPanel

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

public class SynchroMainPanel extends JPanel implements IProcessablePanel, IRememberPreferences, ILocalized
\n Provided by the broldev.file.synchro.swing project.
Since:
1.0 (Nov 29, 2011), broldev.file.synchro.swing 0.0.1-SNAPSHOT dependency
Version:
1.0 (Nov 29, 2011)
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Field Details

    • resultsTable

      public org.jdesktop.swingx.JXTable resultsTable
    • tableModel

      public SynchroTableModel tableModel
  • Constructor Details

    • SynchroMainPanel

      public SynchroMainPanel()
    • SynchroMainPanel

      public SynchroMainPanel(RunnablePanelAction searchAction)
  • Method Details

    • setFilter

      public void setFilter(RowFilter filter)
    • 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
    • getSourceParser

      public RefreshSynchroParser getSourceParser()
    • getTargetParser

      public RefreshSynchroParser getTargetParser()
    • setProgress

      public void setProgress(int progress, String info)
      Description copied from interface: IProcessablePanel
      Allows to display progress informations on the panel
      Specified by:
      setProgress in interface IProcessablePanel
      Parameters:
      progress - completeness of the process (usually into a 0 to 100 range)
      info - information about the current progress state (usually null if nothing to display, and empty string to clear the progress info)
    • getProgress

      public int getProgress()
      Specified by:
      getProgress in interface IProcessablePanel
      Returns:
      completeness of the process (usually into a 0 to 100 range)
    • preProcess

      public void preProcess()
      Description copied from interface: IProcessablePanel
      Action done before starting to run the process associated to the panel
      Specified by:
      preProcess in interface IProcessablePanel
    • postProcess

      public void postProcess()
      Description copied from interface: IProcessablePanel
      Action done after running the process associated to the panel
      Specified by:
      postProcess in interface IProcessablePanel
    • loadPreferences

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

      public void savePreferences()
      Specified by:
      savePreferences in interface IRememberPreferences
    • 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
    • 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
    • displayProgressGB

      public void displayProgressGB(boolean display)
    • main

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