Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::gp::beans::editors::support::ColoredEditorHelper Class Reference

Collaboration diagram for cern::gp::beans::editors::support::ColoredEditorHelper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ColoredEditorHelper (PropertyEditor ped, ColorMaster colorMaster)
void paintValue (Graphics g, Rectangle rectangle)
boolean isPaintable ()

Private Attributes

Color currentColor
final ColorMaster colorMaster
final PropertyEditor ped

Detailed Description

A helper class used to build editors that set the background color of the field they edit. Normally, this class is used inside an Editor class that cannot inherit from ColoredEditorSupport. In this case, that editor delegates the paintValue and the isPaintable calls to this class.

This uses the Tie-delegation idiom.

Author:
Vito Baggiolini
Version:
Revision
1.2
Date
2006/09/25 08:52:36


Constructor & Destructor Documentation

cern::gp::beans::editors::support::ColoredEditorHelper::ColoredEditorHelper PropertyEditor  ped,
ColorMaster  colorMaster
[inline]
 

Constructor

Parameters:
ped the property editor, that owns this object, needed to know the text to be displayed
colorMaster the class that knows what color shall be used


Member Function Documentation

boolean cern::gp::beans::editors::support::ColoredEditorHelper::isPaintable  )  [inline]
 

the method that determines whether the text shall be drawn using the paintValue() method This method is delegated to from the Editor

void cern::gp::beans::editors::support::ColoredEditorHelper::paintValue Graphics  g,
Rectangle  rectangle
[inline]
 

method that draws the text retrieved from PropertyEditor with the given background given by ColorMaster. This method is delegated to from the Editor


Member Data Documentation

final ColorMaster cern::gp::beans::editors::support::ColoredEditorHelper::colorMaster [private]
 

Color cern::gp::beans::editors::support::ColoredEditorHelper::currentColor [private]
 

final PropertyEditor cern::gp::beans::editors::support::ColoredEditorHelper::ped [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:17 2009 for ACS Java API by doxygen 1.3.8