Action Buttons

Any way to enable/disable action buttons using the JAVA API's?

I'm aware that we can hide/show the buttons or shapes.

Thanks.

At first, could you tell me what you mean enable/disable?

1. You can change fill color of a button to make it gray.

2. Actions usually stored as shape’s link so try to delete all links.

3. You can simply delete this shape.