JAL-2797 added the frame and listener interfaces
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Sat, 10 Feb 2018 17:33:12 +0000 (18:33 +0100)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Sat, 10 Feb 2018 17:33:12 +0000 (18:33 +0100)
forester/java/src/org/forester/archaeopteryx/AptxFrame.java
forester/java/src/org/forester/archaeopteryx/FrameListener.java [new file with mode: 0644]

index 00817f9..a79cf29 100644 (file)
@@ -2,59 +2,63 @@ package org.forester.archaeopteryx;
 
 
 
+import java.awt.Component;
+import java.awt.Container;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
+import java.awt.event.ComponentListener;
+import java.util.EventListener;
+
+import javax.swing.JMenuBar;
 
 import org.forester.archaeopteryx.tools.InferenceManager;
 import org.forester.archaeopteryx.tools.ProcessPool;
 
-public interface AptxFrame extends ActionListener {
+public interface AptxFrame {
+    
+    void addComponentListener(ComponentListener compListener);
+    
+    
+    Container getThisFrame();
+
+
+    void dispose();
+
+
+    Container getContentPane();
+
+
+    void repaint();
+
+
+    void setSize( int x, int y );
+
+
+    void addFrameListener(FrameListener frameListener);
+
+
+    Container getJMenuBar();
 
-    NHFilter            nhfilter           = new NHFilter();
-    NHXFilter           nhxfilter          = new NHXFilter();
-    XMLFilter           xmlfilter          = new XMLFilter();
-    TolFilter           tolfilter          = new TolFilter();
-    NexusFilter         nexusfilter        = new NexusFilter();
-    PdfFilter           pdffilter          = new PdfFilter();
-    GraphicsFileFilter  graphicsfilefilter = new GraphicsFileFilter();
-    MsaFileFilter       msafilter          = new MsaFileFilter();
-    SequencesFileFilter seqsfilter         = new SequencesFileFilter();
-    DefaultFilter       defaultfilter      = new DefaultFilter();
 
-    /**
-     * Action performed.
-     */
-    void actionPerformed( ActionEvent e );
+    void setDefaultCloseOperation( int doNothingOnClose );
 
-    Configuration getConfiguration();
 
-    /**
-     * This method returns the current external node data which
-     * has been selected by the user by clicking the "Return ..."
-     * menu item. This method is expected to be called from Javascript or
-     * something like it.
-     *
-     * @return current external node data as String
-     */
-    String getCurrentExternalNodesDataBuffer();
+    Container getParent();
 
-    int getCurrentExternalNodesDataBufferChangeCounter();
 
-    int getCurrentExternalNodesDataBufferLength();
+    void setVisible( boolean visible );
 
-    InferenceManager getInferenceManager();
 
-    MainPanel getMainPanel();
+    boolean requestFocusInWindow();
 
-    Options getOptions();
 
-    ProcessPool getProcessPool();
+    void setJMenuBar( JMenuBar jmenubar );
 
-    void showTextFrame( String s, String title );
 
-    void showWhole();
+    void setLocationRelativeTo( Component component );
 
-    void updateProcessMenu();
 
-    void activateSaveAllIfNeeded();
+    void setTitle( String title );
+    
+    void validate();
 }
\ No newline at end of file
diff --git a/forester/java/src/org/forester/archaeopteryx/FrameListener.java b/forester/java/src/org/forester/archaeopteryx/FrameListener.java
new file mode 100644 (file)
index 0000000..7736f55
--- /dev/null
@@ -0,0 +1,12 @@
+package org.forester.archaeopteryx;\r
+\r
+public interface FrameListener{\r
+    public void FrameActivated(  );\r
+    public void FrameClosed( );\r
+    public void FrameClosing( );\r
+    public void FrameDeactivated(  );\r
+    public void FrameDeiconified(  );\r
+    public void FrameIconified( );\r
+    public void FrameOpened( );\r
+    \r
+}\r