Documentation of 'kcl.waterloo.swing.FrameManager' Java class
FrameManager
kcl.waterloo.swing

Class FrameManager

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.util.EventListener


    public class FrameManager
    extends java.lang.Object
    implements java.awt.event.WindowListener, java.awt.event.ActionListener
    A singleton instance class for managing WFrames in a JVM session. FrameManager maintains a hash map of WFrames and coordinates the Window menu for the frames.

    The FrameManager instance implements the WindowListener interface and is added as a listener to each GCFrame instance in the GCFrame constructor.

    • Constructor Detail

      • FrameManager

        public FrameManager()
        Private constructor. Singleton instance class.
    • Method Detail

      • getInstance

        public static FrameManager getInstance()
        Instance getter
        Returns:
        the singleton instance.
      • getList

        public static java.util.LinkedHashMap<java.lang.Double,GCFrameInterface> getList()
      • getWindows

        public static java.awt.Window[] getWindows()
        Returns an array of all existing WFrames as a Window[].
        Returns:
        a GCFrameInterface[]
      • getLowestAvailable

        public static int getLowestAvailable()
        Returns the lowest numbered available "slot" for a new GCFrame.
        Returns:
        int value for GCFrame number.
      • updateWindowMenu

        public static void updateWindowMenu()
        Creates/replaces the Window menu for each GCFrame instance when a new GCFrame is created or when one is disposed of.
      • windowOpened

        public void windowOpened(java.awt.event.WindowEvent we)
        Specified by:
        windowOpened in interface java.awt.event.WindowListener
      • windowClosing

        public void windowClosing(java.awt.event.WindowEvent we)
        Specified by:
        windowClosing in interface java.awt.event.WindowListener
      • windowClosed

        public void windowClosed(java.awt.event.WindowEvent we)
        Specified by:
        windowClosed in interface java.awt.event.WindowListener
      • windowIconified

        public void windowIconified(java.awt.event.WindowEvent we)
        Specified by:
        windowIconified in interface java.awt.event.WindowListener
      • windowDeiconified

        public void windowDeiconified(java.awt.event.WindowEvent we)
        Specified by:
        windowDeiconified in interface java.awt.event.WindowListener
      • windowActivated

        public void windowActivated(java.awt.event.WindowEvent we)
        Specified by:
        windowActivated in interface java.awt.event.WindowListener
      • windowDeactivated

        public void windowDeactivated(java.awt.event.WindowEvent we)
        Specified by:
        windowDeactivated in interface java.awt.event.WindowListener
      • actionPerformed

        public void actionPerformed(java.awt.event.ActionEvent ae)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.