com.mebigfatguy.pixelle
Class FrameMgr

java.lang.Object
  extended by com.mebigfatguy.pixelle.FrameMgr

public class FrameMgr
extends java.lang.Object

manages the set of open windows


Field Summary
 java.util.Set<javax.swing.JFrame> frames
           
 
Method Summary
 void add(javax.swing.JFrame frame)
          add a window to the frame manager
 java.util.Set<javax.swing.JFrame> getFrames()
          retrieves all the active windows currently on the desktop
static FrameMgr getInstance()
          return the singleton frame manager
 void remove(javax.swing.JFrame frame)
          removes the window from the frame manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frames

public java.util.Set<javax.swing.JFrame> frames
Method Detail

getInstance

public static FrameMgr getInstance()
return the singleton frame manager


add

public void add(javax.swing.JFrame frame)
add a window to the frame manager

Parameters:
frame - the new window that is about to be shown

remove

public void remove(javax.swing.JFrame frame)
removes the window from the frame manager. When the last window is remove, the program exits.

Parameters:
frame - the window to remove

getFrames

public java.util.Set<javax.swing.JFrame> getFrames()
retrieves all the active windows currently on the desktop

Returns:
a list of window available


Copyright © 2008 MeBigFatGuy.com. All Rights Reserved.