org.kemet.lf.tools.ihm
Class ComponentsTools

java.lang.Object
  extended by org.kemet.lf.tools.ihm.ComponentsTools

public class ComponentsTools
extends java.lang.Object

Since:
0.4
Author:
fabricemaupin

ComponentsTools : toolbox for graphic components.


Constructor Summary
ComponentsTools()
           
 
Method Summary
static void addListOfComponentsToPanel(javax.swing.JPanel currentPanel, java.awt.Component[] listComponents)
           add list of components to panel.
static java.awt.Image iconToImage(javax.swing.Icon icon)
           convert icon to image.
static javax.swing.JButton initButton(java.lang.String path, java.lang.String icon, java.lang.String icon_over, java.lang.String icon_pressed, java.lang.String toolTip, java.lang.Object[] mouseEventMethod)
           initialize a button.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentsTools

public ComponentsTools()
Method Detail

initButton

public static javax.swing.JButton initButton(java.lang.String path,
                                             java.lang.String icon,
                                             java.lang.String icon_over,
                                             java.lang.String icon_pressed,
                                             java.lang.String toolTip,
                                             java.lang.Object[] mouseEventMethod)

initialize a button.

Parameters:
path - path for buttons icon button
icon - icon button
icon_over - icon over button
icon_pressed - icon pressed button
toolTip - toolTip for button
mouseEventMethod - informations about method to manage pressed event mouse
Returns:
button
Since:
0.4

addListOfComponentsToPanel

public static void addListOfComponentsToPanel(javax.swing.JPanel currentPanel,
                                              java.awt.Component[] listComponents)

add list of components to panel.

Parameters:
currentPanel - current panel
listComponents - list of components
Since:
0.5

iconToImage

public static java.awt.Image iconToImage(javax.swing.Icon icon)

convert icon to image.

Parameters:
icon - icon to convert
Returns:
image
Since:
0.5


Copyright © 2008 F. MAUPIN. All Rights Reserved.