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]
void cern::gp::beans::editors::support::ColoredEditorHelper::paintValue ( Graphics  g,
Rectangle  rectangle 
) [inline]

Member Data Documentation

Referenced by isPaintable(), and paintValue().

Referenced by paintValue().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2