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