Servoy 5.x Public API

com.servoy.j2db.ui
Interface IStylePropertyChanges

All Known Implementing Classes:
ChangesRecorder

public interface IStylePropertyChanges

Components which wants to update themselfs with an ajax call should implement this interface.

It has a setChanged() method for marking the component for render. when calling setChanged() on it the component will be re rendered the next time a (ajax) request comes in This can be the ajax polling behavior that every page of a servoy application has if ajax mode is enabled.

When setChanged() is called you have to call setRendered() when the component is rendered again else it will be re rendered for every coming request. This can be done by calling setRendered() from the Component.onAfterRender() that the wicket component needs to override.

NOTE: Try to use the the implementation class ChangesRecorder this interface can change with new Servoy versions if new functionality is needed.

Since:
5.0
See Also:
ChangesRecorder

Method Summary
 Properties getChanges()
           
 boolean isChanged()
          Returns true if this change recorder is changed and its component will be rendered the next time.
 boolean isValueChanged()
          returns true if its component model object is changed
 void setChanged()
          Set the change flag to true so that the component will be rendered the next time.
 void setChanges(Properties changes)
          Adds all the css properties to the changed set and calls setChanged()
 void setRendered()
          Call this method from the Component.onBeforeRender() call te let the change recorder know it has been rendered.
 void setValueChanged()
          sets the value changed to true so that servoy knows that it is the value object that is changed.
 

Method Detail

getChanges

Properties getChanges()
Returns:
All the current css properties of this component

isChanged

boolean isChanged()
Returns true if this change recorder is changed and its component will be rendered the next time.


isValueChanged

boolean isValueChanged()
returns true if its component model object is changed


setChanged

void setChanged()
Set the change flag to true so that the component will be rendered the next time.


setChanges

void setChanges(Properties changes)
Adds all the css properties to the changed set and calls setChanged()

Parameters:
changes -

setRendered

void setRendered()
Call this method from the Component.onBeforeRender() call te let the change recorder know it has been rendered.


setValueChanged

void setValueChanged()
sets the value changed to true so that servoy knows that it is the value object that is changed.


Copyright © 2010 Servoy B.V.