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

cern::gp::beans::editors::ButtonEditor Class Reference

List of all members.

Public Member Functions

boolean isPaintable ()
void paintValue (java.awt.Graphics gfx, java.awt.Rectangle box)
Component getInPlaceCustomEditor ()
boolean hasInPlaceCustomEditor ()
boolean supportsEditingTaggedValues ()
void attachEnv (PropertyEnv env)

Protected Member Functions

void handleButtonClick (ActionEvent evt)

Private Member Functions

JButton getButton ()
JButton createButton ()

Private Attributes

JButton button
PropertyEnv propertyEnv

Static Private Attributes

final int LABEL_OFFSET = 3

Detailed Description

A PropertyEditor that puts a JButton into the corresponding Cell of the ExplorerTable or PropertySheet. As any other PropertyEditor, it is associated with a Bean Property:

For example, if you want to have a button with the label "accept",

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


Member Function Documentation

void cern::gp::beans::editors::ButtonEditor::attachEnv PropertyEnv  env  )  [inline]
 

JButton cern::gp::beans::editors::ButtonEditor::createButton  )  [inline, private]
 

JButton cern::gp::beans::editors::ButtonEditor::getButton  )  [inline, private]
 

lazy creator class. Should be called only after attachEnv(PropertyEnv)

Returns:
the JButton to be used both as Renderer and Editor

Component cern::gp::beans::editors::ButtonEditor::getInPlaceCustomEditor  )  [inline]
 

void cern::gp::beans::editors::ButtonEditor::handleButtonClick ActionEvent  evt  )  [inline, protected]
 

method called when the user clicks on the JButton. By default, this implementation does a setValue(Boolean.True) on the Bean property associated with the Button.

Override this if you need to do something else when the button is clicked...

Parameters:
evt the ActionEvent generated by the JButton

boolean cern::gp::beans::editors::ButtonEditor::hasInPlaceCustomEditor  )  [inline]
 

boolean cern::gp::beans::editors::ButtonEditor::isPaintable  )  [inline]
 

void cern::gp::beans::editors::ButtonEditor::paintValue java.awt.Graphics  gfx,
java.awt.Rectangle  box
[inline]
 

boolean cern::gp::beans::editors::ButtonEditor::supportsEditingTaggedValues  )  [inline]
 


Member Data Documentation

JButton cern::gp::beans::editors::ButtonEditor::button [private]
 

final int cern::gp::beans::editors::ButtonEditor::LABEL_OFFSET = 3 [static, private]
 

PropertyEnv cern::gp::beans::editors::ButtonEditor::propertyEnv [private]
 


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