com.inet.editor
Class ColorList

java.lang.Object
  extended by com.inet.editor.ColorList

public class ColorList
extends java.lang.Object

This class presends a List for selection a color value.


Constructor Summary
ColorList()
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
          Adds an action listener to the selection component
 java.awt.Color getColor()
          Get the current color value that is selected.
 javax.swing.JMenuItem[] getMenuItems()
          Returns a list of available color menu items
 java.awt.Color getSelectionColor()
          Gets the current selection color.
 void mouseClickedCL()
          Executes when the color button was pressed
 void setSelectionColor(java.awt.Color c)
          Sets the color of the current selection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorList

public ColorList()
Method Detail

getColor

public java.awt.Color getColor()
Get the current color value that is selected.

Returns:
a Color value or null

setSelectionColor

public void setSelectionColor(java.awt.Color c)
Sets the color of the current selection

Parameters:
c - the color of the current selection

getSelectionColor

public java.awt.Color getSelectionColor()
Gets the current selection color.

Returns:
the current selection color.

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Adds an action listener to the selection component

Parameters:
l - the listener to add

mouseClickedCL

public void mouseClickedCL()
Executes when the color button was pressed


getMenuItems

public javax.swing.JMenuItem[] getMenuItems()
Returns a list of available color menu items

Returns:
a list of available color menu items