JAL-3048 refactored export settings to bean+dialog with callbacks - basically works...
[jalview.git] / src / jalview / api / AlignExportSettingI.java
index 18f529b..31d0940 100644 (file)
 
 package jalview.api;
 
+import jalview.datamodel.AlignExportSettingBeanI;
+import jalview.datamodel.AlignmentExportData;
+
+import java.awt.event.ActionListener;
+
 /**
- * Abstract interface implemented by Alignment Export dialog to retrieve user
- * configurations
- * 
- * @author tcnofoegbu
+ * additional methods implemented by the export settings dialog 
  *
  */
-public interface AlignExportSettingI
+public interface AlignExportSettingI extends AlignExportSettingBeanI
 {
-  /**
-   * Checks if hidden sequences should be exported
-   * 
-   * @return
-   */
-  public boolean isExportHiddenSequences();
 
+  AlignmentExportData getAlignExportData();
+  
   /**
-   * Checks if hidden columns shoulb be exported
-   * 
-   * @return
+   * the export data action to be performed - make sure you check isCancelled in this method first
+   * @param actionListener
    */
-  public boolean isExportHiddenColumns();
 
-  /**
-   * Checks if Annotations should be exported, note this is available for
-   * complex flat file exports like JSON, HTML, GFF
-   * 
-   * @return
-   */
-  public boolean isExportAnnotations();
+  public void addActionListener(ActionListener actionListener);
 
   /**
-   * Checks if SequenceFeatures should be exported, note this is available for
-   * complex flat file exports like JSON, HTML, GFF
-   * 
-   * @return
+   * show the dialog 
    */
-  public boolean isExportFeatures();
-
-  /**
-   * Checks if SequenceGroups should be exported, note this is available for
-   * complex flat file exports like JSON, HTML, GFF
-   * 
-   * @return
-   */
-  public boolean isExportGroups();
-
-  public boolean isCancelled();
+  public void doShowSettings();
 
 }