Interface GuiNotificationTarget


  • public interface GuiNotificationTarget
    This interface needs to implemented by any class that wants to be notified by a GUI property when its state has changed.
    It forces the implementation of the updateGUI() method in order to react on the changed GUI property.
    Note that if a class acts as a notification target for multiple properties at the same time, there might be unwanted side effects. In that case, it may be advisable to compose the notification target class of smaller sub classes that each act as a notification target for one of the properties.
    Author:
    arozinat
    See Also:
    GUIPropertyBoolean, GUIPropertyDouble, GUIPropertyFloat, GUIPropertyInteger, GUIPropertyListEnumeration, GUIPropertyLong, GUIPropertySetEnumeration, GUIPropertyString
    • Method Detail

      • updateGUI

        void updateGUI()
        This method will be called as soon as the associated GUI property has changed.
        Using this callback technique the reaction to changes of the GUI property becomes possible in a decoupled way.