|
Servoy 5.x Public API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
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.
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.
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 |
|---|
Properties getChanges()
boolean isChanged()
boolean isValueChanged()
void setChanged()
void setChanges(Properties changes)
changes - void setRendered()
Component.onBeforeRender() call te let the change recorder know it has been rendered.
void setValueChanged()
|
Copyright © 2010 Servoy B.V. | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||