com.openpcl.viewer.util
Class PosInternalFrameListener

java.lang.Object
  extended by com.openpcl.viewer.util.PosInternalFrameListener
All Implemented Interfaces:
EventListener, InternalFrameListener

public class PosInternalFrameListener
extends Object
implements InternalFrameListener

InternalFrameListener for the JInternalFrame of each view. 1. When the user clicks on a different view, the below internalFrameActivated() method will call OpenPCLViewer.setAsTheActiveView() which will set the view as the active view in OpenPCLViewer.mPosViewSelected 2. The JInternalFrame is still showing on the screen, but the user clicked the close X. internalFrameClosing() will call OpenPCLViewer.viewIsClosing() which will save the JInternalFrame's (x,y) and (width,height) and last opened filename, but only if this is the last open view and now there will be no view open. 3. When the user clicks the close X, internalFrameClosed() is called here which calls OpenPCLViewer.actionCloseFile() which calls into the PriRenderImage.setClosedForImageNumber()

Author:
howard

Constructor Summary
PosInternalFrameListener(PosView pPosView)
           
 
Method Summary
 void internalFrameActivated(InternalFrameEvent e)
           
 void internalFrameClosed(InternalFrameEvent e)
           
 void internalFrameClosing(InternalFrameEvent e)
           
 void internalFrameDeactivated(InternalFrameEvent e)
           
 void internalFrameDeiconified(InternalFrameEvent e)
           
 void internalFrameIconified(InternalFrameEvent e)
           
 void internalFrameOpened(InternalFrameEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PosInternalFrameListener

public PosInternalFrameListener(PosView pPosView)
Method Detail

internalFrameActivated

public void internalFrameActivated(InternalFrameEvent e)
Specified by:
internalFrameActivated in interface InternalFrameListener

internalFrameClosing

public void internalFrameClosing(InternalFrameEvent e)
Specified by:
internalFrameClosing in interface InternalFrameListener

internalFrameClosed

public void internalFrameClosed(InternalFrameEvent e)
Specified by:
internalFrameClosed in interface InternalFrameListener

internalFrameDeactivated

public void internalFrameDeactivated(InternalFrameEvent e)
Specified by:
internalFrameDeactivated in interface InternalFrameListener

internalFrameIconified

public void internalFrameIconified(InternalFrameEvent e)
Specified by:
internalFrameIconified in interface InternalFrameListener

internalFrameDeiconified

public void internalFrameDeiconified(InternalFrameEvent e)
Specified by:
internalFrameDeiconified in interface InternalFrameListener

internalFrameOpened

public void internalFrameOpened(InternalFrameEvent e)
Specified by:
internalFrameOpened in interface InternalFrameListener


OpenPCL http://www.openpcl.com