Class ColorList

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

public class ColorList extends Object
This class presends a List for selection a color value.
  • Constructor Details

    • ColorList

      public ColorList()
  • Method Details

    • getColor

      public Color getColor()
      Get the current color value that is selected.
      Returns:
      a Color value or null
    • setColor

      public void setColor(Object selectedColor)
      Sets the selected color
      Parameters:
      selectedColor - the selected color
    • setSelectionColor

      public void setSelectionColor(Color c)
      Sets the color of the current selection
      Parameters:
      c - the color of the current selection
    • getSelectionColor

      public Color getSelectionColor()
      Gets the current selection color.
      Returns:
      the current selection color.
    • addActionListener

      public void addActionListener(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 JMenuItem[] getMenuItems()
      Returns a list of available color menu items
      Returns:
      a list of available color menu items