

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 | |
| static final int | LABEL_OFFSET = 3 |
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",
boolean to your bean, define void setAccept(boolean) and boolean getAccept(void) accessor methods ButtonEditor by overriding the method public PropertyInfo[] getPropertyInfo() in your bean ,
,
| void cern::gp::beans::editors::ButtonEditor::attachEnv | ( | PropertyEnv | env | ) | [inline] |
References propertyEnv.
| JButton cern::gp::beans::editors::ButtonEditor::createButton | ( | ) | [inline, private] |
References handleButtonClick(), and propertyEnv.
Referenced by getButton().
| JButton cern::gp::beans::editors::ButtonEditor::getButton | ( | ) | [inline, private] |
lazy creator class. Should be called only after attachEnv(PropertyEnv)
References button, and createButton().
Referenced by getInPlaceCustomEditor(), and paintValue().
| Component cern::gp::beans::editors::ButtonEditor::getInPlaceCustomEditor | ( | ) | [inline] |
References getButton().
| 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...
| evt | the ActionEvent generated by the JButton |
References propertyEnv.
Referenced by createButton().
| 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] |
References getButton(), and LABEL_OFFSET.
| boolean cern::gp::beans::editors::ButtonEditor::supportsEditingTaggedValues | ( | ) | [inline] |
JButton cern::gp::beans::editors::ButtonEditor::button [private] |
Referenced by getButton().
final int cern::gp::beans::editors::ButtonEditor::LABEL_OFFSET = 3 [static, private] |
Referenced by paintValue().
PropertyEnv cern::gp::beans::editors::ButtonEditor::propertyEnv [private] |
Referenced by attachEnv(), createButton(), and handleButtonClick().
1.6.2