com.fullspan.hashgui
Class HashGui

java.lang.Object
  extended bycom.fullspan.hashgui.HashGui
All Implemented Interfaces:
IHashGuiApp

public class HashGui
extends java.lang.Object
implements IHashGuiApp

Author:
Mitch Stuart

Field Summary
protected  java.awt.CardLayout m_appContentCardLayout
           
protected  javax.swing.JPanel m_appContentPanel
           
protected  HashGuiAppPanel m_appPanel
           
protected  HashGuiFrame m_frame
           
protected  javax.swing.JPanel[] m_panels
           
 
Constructor Summary
HashGui()
          Creates a new instance of HashGui
 
Method Summary
protected  void computeAndSetMinSize()
          Loop through the display panels and figure out what the minimum width and height of the frame should be, so that all panels can be displayed at their preferred size.
 void exit()
           
static void lockMinSize(java.awt.Component comp)
          Ensures that a component cannot be resized smaller than the size it has when this method is called.
static void lockMinSize(java.awt.Component comp, int minX, int minY)
          Ensures that a component cannot be resized smaller than the specified size.
static void main(java.lang.String[] args)
           
protected  void run()
           
 void showMenuPanel()
           
 void showPanel(java.lang.String panelName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_frame

protected HashGuiFrame m_frame

m_appPanel

protected HashGuiAppPanel m_appPanel

m_appContentPanel

protected javax.swing.JPanel m_appContentPanel

m_appContentCardLayout

protected java.awt.CardLayout m_appContentCardLayout

m_panels

protected javax.swing.JPanel[] m_panels
Constructor Detail

HashGui

public HashGui()
Creates a new instance of HashGui

Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args - the command line arguments
Throws:
java.lang.Exception

lockMinSize

public static void lockMinSize(java.awt.Component comp,
                               int minX,
                               int minY)
Ensures that a component cannot be resized smaller than the specified size.

Reference: http://forum.java.sun.com/thread.jspa?threadID=328852&messageID=1983147


lockMinSize

public static void lockMinSize(java.awt.Component comp)
Ensures that a component cannot be resized smaller than the size it has when this method is called.

Reference: http://forum.java.sun.com/thread.jspa?threadID=328852&messageID=1983147


run

protected void run()

computeAndSetMinSize

protected void computeAndSetMinSize()
Loop through the display panels and figure out what the minimum width and height of the frame should be, so that all panels can be displayed at their preferred size. This will leave extra margin for some panels, but it ensures that no panel is cut off.


exit

public void exit()
Specified by:
exit in interface IHashGuiApp

showMenuPanel

public void showMenuPanel()
Specified by:
showMenuPanel in interface IHashGuiApp

showPanel

public void showPanel(java.lang.String panelName)
Specified by:
showPanel in interface IHashGuiApp