Changing control properties during runtime


is it possible to determine in the controller of a custom control, if the attributes/properties - like width, height or self defined properties - have been changed during runtime?

I don’t think so.

The standard controls define their own methods in a control API interface in the “de.lessvoid.nifty.controls” package and every user of the control is supposed to use this API interface when performing changes to the control from java at runtime. This way the control implementation gets the change first hand - since it is called directly by client code. For instance for the button control, clients are supposed to call de.lessvoid.nifty.controls.Button.setText()" to change the text.

Maybe something similar can be used for your own control as well?