Work with buttons (Java)

 

The color devices have several modes of operations
where buttons of different kinds may be shown.
 
The library provides a button callback
that is called when such a button is pressed with the pen.
 
The color of each button can be configured.
A button can be hidden and disabled.
A hidden button is invisible.
Clicks on a disabled button are ignored.
 
The library provides a function to get
a button bar object that contains the button configurations
of the connected device.
A button bar is tied to a certain mode of operation that has buttons.
The button configuration collection inside the button bar may be modified.
Pass the changed button bar object  to SetButtonConfig
to let the device adopt the the modified button configuration.