Inherits java::beans::PropertyEditorSupport, org::openide::explorer::propertysheet::editors::EnhancedPropertyEditor, and org::openide::explorer::propertysheet::ExPropertyEditor.
List of all members.
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:
-
the DisplayName of the property appears as the label fo the JButton
-
when user clicks on the JButton, this class calls setXxx(true) on the Bean.
For example, if you want to have a button with the label "accept",
-
add a property "accept" of type
boolean
to your bean, define void setAccept(boolean)
and boolean getAccept(void)
accessor methods
-
define
ButtonEditor
by overriding the method public PropertyInfo[] getPropertyInfo()
in your bean
-
in the setAccept() method, implement the code to be executed when the user clicks on the button
- 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 |
) |
|
Component cern.gp.beans.editors.ButtonEditor.getInPlaceCustomEditor |
( |
|
) |
|
void cern.gp.beans.editors.ButtonEditor.handleButtonClick |
( |
ActionEvent |
evt |
) |
[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 |
( |
|
) |
|
boolean cern.gp.beans.editors.ButtonEditor.isPaintable |
( |
|
) |
|
void cern.gp.beans.editors.ButtonEditor.paintValue |
( |
java.awt.Graphics |
gfx, |
|
|
java.awt.Rectangle |
box | |
|
) |
| | |
boolean cern.gp.beans.editors.ButtonEditor.supportsEditingTaggedValues |
( |
|
) |
|
The documentation for this class was generated from the following file: