org.wcb.common
Class GuiLib

java.lang.Object
  extended byorg.wcb.common.GuiLib
All Implemented Interfaces:
javax.swing.SwingConstants

public class GuiLib
extends java.lang.Object
implements javax.swing.SwingConstants


Field Summary
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Method Summary
static java.awt.Color getColor(java.lang.String value)
           
static java.awt.Frame getFrameForComponent(java.awt.Component parentComponent)
          Returns the specified component's Frame.
static javax.swing.Icon getIcon(java.lang.String location)
           
 ImageSource getImageSource()
           
static GuiLib getInstance()
          Singleton return of a class the allows basic parsing of basic GUI information used by the application for changing colors and setting fonts.
static java.awt.Frame getRootFrame()
          Returns the Frame to use for the class methods in which a frame is not provided.
 void setImageSource(ImageSource source)
           
 javax.swing.JButton setupAButton(java.lang.String action, java.lang.String image)
           
static javax.swing.JButton setupButton(java.lang.String action, java.lang.String image)
           
 void showHelp(javax.swing.JComponent comp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GuiLib getInstance()
Singleton return of a class the allows basic parsing of basic GUI information used by the application for changing colors and setting fonts.

Returns:
GuiLib class instance.

setupAButton

public javax.swing.JButton setupAButton(java.lang.String action,
                                        java.lang.String image)

setupButton

public static javax.swing.JButton setupButton(java.lang.String action,
                                              java.lang.String image)

setImageSource

public void setImageSource(ImageSource source)

getImageSource

public ImageSource getImageSource()

getIcon

public static javax.swing.Icon getIcon(java.lang.String location)

showHelp

public void showHelp(javax.swing.JComponent comp)

getFrameForComponent

public static java.awt.Frame getFrameForComponent(java.awt.Component parentComponent)
Returns the specified component's Frame.

Parameters:
parentComponent - the Component to check for a Frame
Returns:
the Frame that contains the component, or the default frame if the component is null, or does not have a valid Frame parent

getRootFrame

public static java.awt.Frame getRootFrame()
Returns the Frame to use for the class methods in which a frame is not provided.

Returns:
the default Frame to use

getColor

public static java.awt.Color getColor(java.lang.String value)


Copyright © 1999-2004 Walter Bogaardt. All Rights Reserved.