How do I update macro parameters using Java

Is it possible within my Macro class, where the code to show my macro image stub we currently update the macro parameters using JS, is it possible to update the macro parameters before the macro is inserted onto the page using Java

Hi Adisa,

What your requirement looks like to me, is a Event Listener while the page is being saved. You might want to read those pages that explain how to do so:
For the list of events:

Hope it helps,