net.sourceforge.esw.widgets
Class WidgetUtil

java.lang.Object
  |
  +--net.sourceforge.esw.widgets.WidgetUtil

public class WidgetUtil
extends java.lang.Object

This static objects is a Utility class for widgets.


Constructor Summary
WidgetUtil()
           
 
Method Summary
static javax.swing.JButton createButton(javax.swing.Icon aIcon, java.lang.String aCaption, char aMnem)
          Creates and returns a new JButton
static javax.swing.JButton createButton(javax.swing.Icon aIcon, java.lang.String aCaption, char aMnem, java.lang.String aToolTipText)
          Creates and returns a new JButton
static javax.swing.JButton createButton(java.lang.String aCaption)
          Creates and returns a new JButton
static javax.swing.JButton createButton(java.lang.String aCaption, char aMnem)
          Creates a new Button
static javax.swing.JButton createButton(java.lang.String aCaption, java.lang.String aToolTipText)
          Creates and returns a new JButton
static javax.swing.JButton createButton(java.lang.String aCaption, java.lang.String aToolTipText, char aMnem)
          Creates and returns a new JButton
static java.awt.Point getCenterPoint(javax.swing.JInternalFrame aFrame)
          Returns the Point for centering the specified JInternalFrame
static java.awt.Point getCenterPoint(java.awt.Window aWindow)
          Returns the Point for centering the specified Window
static void revalidate(java.awt.Component aComponent)
          Revalidates the specified component calling component.invalidate(); component.validate(); component.repaint(); .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetUtil

public WidgetUtil()
Method Detail

revalidate

public static void revalidate(java.awt.Component aComponent)
Revalidates the specified component calling component.invalidate(); component.validate(); component.repaint(); .
Parameters:
aComponent - the component to revalidate

getCenterPoint

public static java.awt.Point getCenterPoint(java.awt.Window aWindow)
Returns the Point for centering the specified Window
Parameters:
aWindow - the Window to get the CenterPoint of the screen for
Returns:
a point that will be the centering point for the specified window

getCenterPoint

public static java.awt.Point getCenterPoint(javax.swing.JInternalFrame aFrame)
Returns the Point for centering the specified JInternalFrame
Parameters:
aFrame - the JInternalFrame to get the CenterPoint of the screen for
Returns:
a point that will be the centering point for the specified JInternalFrame

createButton

public static javax.swing.JButton createButton(javax.swing.Icon aIcon,
                                               java.lang.String aCaption,
                                               char aMnem)
Creates and returns a new JButton
Parameters:
aIcon - the Icon to display in the Button
aCaption - the Caption for the Button
aMnem - the Mnemonic for the Button
Returns:
a JButton with the specified icon, caption, and mnemonic

createButton

public static javax.swing.JButton createButton(javax.swing.Icon aIcon,
                                               java.lang.String aCaption,
                                               char aMnem,
                                               java.lang.String aToolTipText)
Creates and returns a new JButton
Parameters:
aIcon - the Icon to display in the Button
aCaption - the Caption for the Button
aMnem - the Mnemonic for the Button
aToolTipText - the text to display when the mouse is on the button
Returns:
a JButton with the specified icon, caption, and mnemonic

createButton

public static javax.swing.JButton createButton(java.lang.String aCaption,
                                               char aMnem)
Creates a new Button
Parameters:
aCaption - the Caption for the Button
aMnem - the Mnemonic for the Button
Returns:
a JButton with the specified icon, caption, and mnemonic

createButton

public static javax.swing.JButton createButton(java.lang.String aCaption,
                                               java.lang.String aToolTipText,
                                               char aMnem)
Creates and returns a new JButton
Parameters:
aCaption - the Caption for the Button
aMnem - the Mnemonic for the Button
aToolTipText - the text to display when the mouse is on the button
Returns:
a JButton with the specified icon, caption, and mnemonic

createButton

public static javax.swing.JButton createButton(java.lang.String aCaption,
                                               java.lang.String aToolTipText)
Creates and returns a new JButton
Parameters:
aCaption - the Caption for the Button
aToolTipText - the text to display when the mouse is on the button
Returns:
a JButton with the specified icon, caption, and mnemonic

createButton

public static javax.swing.JButton createButton(java.lang.String aCaption)
Creates and returns a new JButton
Parameters:
aCaption - the Caption for the Button
Returns:
a JButton with the specified caption


Copyright 2002 Free Software Foundation. All Rights Reserved.