VLab Common 1.2

pl.psnc.vlab.util.swing.gui
Class GuiTools

java.lang.Object
  extended by pl.psnc.vlab.util.swing.gui.GuiTools

public final class GuiTools
extends java.lang.Object

Class contains a set of util methods for the Swing components

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Field Summary
static java.awt.Color HYPER_LINK_COLOR
          Stores instance of field: HYPER_LINK_COLOR
static java.lang.String PROPERTY_DISABLED_ICON
          Holds key of disabledIcon property
static java.awt.Color REGULAR_LINK_COLOR
          Stores instance of field: REGULAR_LINK_COLOR
 
Constructor Summary
GuiTools()
           
 
Method Summary
static void center(java.awt.Component component)
          Center given component on the screen
static javax.swing.JComponent makeHyperLink(javax.swing.JComponent comp)
          Make hyper link
static javax.swing.JComponent removeHyperLink(javax.swing.JComponent comp)
          Removes hyper link from the given component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_DISABLED_ICON

public static final java.lang.String PROPERTY_DISABLED_ICON
Holds key of disabledIcon property

See Also:
Constant Field Values

HYPER_LINK_COLOR

public static java.awt.Color HYPER_LINK_COLOR
Stores instance of field: HYPER_LINK_COLOR


REGULAR_LINK_COLOR

public static java.awt.Color REGULAR_LINK_COLOR
Stores instance of field: REGULAR_LINK_COLOR

Constructor Detail

GuiTools

public GuiTools()
Method Detail

makeHyperLink

public static javax.swing.JComponent makeHyperLink(javax.swing.JComponent comp)
Make hyper link

Parameters:
comp - component
Returns:
hyper link

removeHyperLink

public static javax.swing.JComponent removeHyperLink(javax.swing.JComponent comp)
Removes hyper link from the given component

Parameters:
comp - component instance
Returns:
current component

center

public static void center(java.awt.Component component)
Center given component on the screen

Parameters:
component - component to be centered

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.