de.wenzlaff.allgemein.util
Class GuiHelper

java.lang.Object
  extended by de.wenzlaff.allgemein.util.GuiHelper

public class GuiHelper
extends java.lang.Object

Einige Gui Hilfsklassen.

Since:
13.06.2007
Version:
1.0
Author:
Thomas Wenzlaff

Field Summary
static java.lang.String LAF_AQUA
          Look and Feel Konstanten.
static java.lang.String LAF_GTK
          Look and Feel Konstanten.
static java.lang.String LAF_MAC
          Look and Feel Konstanten.
static java.lang.String LAF_METAL
          Look and Feel Konstanten.
static java.lang.String LAF_MOTIF
          Look and Feel Konstanten.
static java.lang.String LAF_WINDOWS
          Look and Feel Konstanten.
 
Method Summary
static void centerComponent(java.awt.Component pvComponent)
           
static boolean isLookAndFeelAvailable(java.lang.String pvLaf)
          Testet ob das Look and Feel verfügbar ist.
static void maximizeComponent(java.awt.Component pvComponent)
          Maximiert die Componente.
static void setLocationRelativeTo(java.awt.Component component, java.awt.Component c)
          Sets the location of the window relative to the specified component.
static void setLookAndFeel()
          Setzt das Look and Feel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAF_METAL

public static final java.lang.String LAF_METAL
Look and Feel Konstanten.

See Also:
Constant Field Values

LAF_MOTIF

public static final java.lang.String LAF_MOTIF
Look and Feel Konstanten.

See Also:
Constant Field Values

LAF_WINDOWS

public static final java.lang.String LAF_WINDOWS
Look and Feel Konstanten.

See Also:
Constant Field Values

LAF_MAC

public static final java.lang.String LAF_MAC
Look and Feel Konstanten.

See Also:
Constant Field Values

LAF_AQUA

public static final java.lang.String LAF_AQUA
Look and Feel Konstanten.

See Also:
Constant Field Values

LAF_GTK

public static final java.lang.String LAF_GTK
Look and Feel Konstanten.

See Also:
Constant Field Values
Method Detail

centerComponent

public static void centerComponent(java.awt.Component pvComponent)
Parameters:
pvComponent -

maximizeComponent

public static void maximizeComponent(java.awt.Component pvComponent)
Maximiert die Componente.

Parameters:
pvComponent -

setLookAndFeel

public static void setLookAndFeel()
Setzt das Look and Feel.


isLookAndFeelAvailable

public static boolean isLookAndFeelAvailable(java.lang.String pvLaf)
Testet ob das Look and Feel verfügbar ist.

Parameters:
pvLaf -
Returns:
boolean true wenn Look and Feel vorhanden.

setLocationRelativeTo

public static void setLocationRelativeTo(java.awt.Component component,
                                         java.awt.Component c)
Sets the location of the window relative to the specified component. If the component is not currently showing, or c is null, the window is centered on the screen. If the bottom of the component is offscreen, the window is placed to the side of the Component that is closest to the center of the screen. So if the Component is on the right part of the screen, the Window is placed to its left, and visa versa.

Parameters:
c - the component in relation to which the window's location is determined in awt.Window since 1.4 for compatibility with 1.3



TWUsb 2.4 - © 2005-2007 by Thomas Wenzlaff

Anleitung und neueste Version auf www.wenzlaff.de

Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2007 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.