From: kjvdheide Date: Sat, 10 Feb 2018 17:33:12 +0000 (+0100) Subject: JAL-2797 added the frame and listener interfaces X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=44caa23676f72b57b2875a17b6a29006cda3c89a;p=jalview.git JAL-2797 added the frame and listener interfaces --- diff --git a/forester/java/src/org/forester/archaeopteryx/AptxFrame.java b/forester/java/src/org/forester/archaeopteryx/AptxFrame.java index 00817f9..a79cf29 100644 --- a/forester/java/src/org/forester/archaeopteryx/AptxFrame.java +++ b/forester/java/src/org/forester/archaeopteryx/AptxFrame.java @@ -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 index 0000000..7736f55 --- /dev/null +++ b/forester/java/src/org/forester/archaeopteryx/FrameListener.java @@ -0,0 +1,12 @@ +package org.forester.archaeopteryx; + +public interface FrameListener{ + public void FrameActivated( ); + public void FrameClosed( ); + public void FrameClosing( ); + public void FrameDeactivated( ); + public void FrameDeiconified( ); + public void FrameIconified( ); + public void FrameOpened( ); + +}