Servoy 5.x Public API

com.servoy.j2db.ui
Interface IProviderStylePropertyChanges


public interface IProviderStylePropertyChanges

Implement this interface if wicket component/bean wants to update itself in the browser through ajax requests. Servoy will call getStylePropertyChanges() on every ajax request (user action or ajax poll) to test if this component is changed and wants to update itself.

Wicket components that implements this interface should call Component#setOutputMarkupPlaceholderTag(boolean) with true. So that wicket ajax can replace/update the component. and override the getMarkupId() so that the right servoy markupid is generated:

        public String getMarkupId()
        {
                return WebComponentSpecialIdMaker.getSpecialIdIfAppropriate(this);
        }
 

Since:
5.0
See Also:
IStylePropertyChanges, ChangesRecorder

Method Summary
 IStylePropertyChanges getStylePropertyChanges()
          Returns an instanceof IStylePropertyChanges that monitors the changes of this component See ChangesRecorder for an implementation that you can use for this.
 

Method Detail

getStylePropertyChanges

IStylePropertyChanges getStylePropertyChanges()
Returns an instanceof IStylePropertyChanges that monitors the changes of this component See ChangesRecorder for an implementation that you can use for this.

Returns:
The object that has the changed state for this component.

Copyright © 2010 Servoy B.V.