templates.presentation
Class UIActions.SetColorAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by templates.presentation.UIActions.SetColorAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
UIActions

public static class UIActions.SetColorAction
extends javax.swing.AbstractAction

An action to display the color chooser dialog to let the user select the background color of the icon of an entity.

Author:
Lenko Grigorov
See Also:
JColorChooser, Serialized Form

Field Summary
protected  TemplateEditableCanvas canvas
          The canvas which contains the entity whose background color will be changed.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
UIActions.SetColorAction(TemplateEditableCanvas canvas, Entity entity)
          Construct an action to display the color chooser dialog to let the user select the background color of the icon of the given entity.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Display the color chooser dialog to let the user select the background color of the icon of the entity.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canvas

protected TemplateEditableCanvas canvas
The canvas which contains the entity whose background color will be changed.

Constructor Detail

UIActions.SetColorAction

public UIActions.SetColorAction(TemplateEditableCanvas canvas,
                                Entity entity)
Construct an action to display the color chooser dialog to let the user select the background color of the icon of the given entity.

Parameters:
canvas - the canvas which contains the entity whose background color will be changed
entity - the entity whose background color will be changed
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Display the color chooser dialog to let the user select the background color of the icon of the entity.

See Also:
JColorChooser