A baseclass for the wrappers of script created components. More...
Public Member Functions | |
void | changed (var newValue) |
Call this in your listener callback with the new value. More... | |
virtual void | updateComponent ()=0 |
Overwrite this method and update the component. More... | |
virtual void | updateComponent (int index, var newValue) |
Overwrite this method and update the component for the property that has changed. More... | |
virtual void | updateValue (var newValue) |
Overwrite this method and update the value of the component. More... | |
virtual | ~ScriptCreatedComponentWrapper () |
Don't forget to deregister the listener here. More... | |
Protected Member Functions | |
ScriptCreatedComponentWrapper (ScriptContentComponent *content, int index_) | |
You need to do this tasks in your constructor: More... | |
Protected Attributes | |
ScopedPointer< Component > | component |
the component that will be owned by this wrapper. More... | |
ScriptContentComponent * | contentComponent |
the parent component. More... | |
A baseclass for the wrappers of script created components.
They usually contain the component and are subclassed from their listener. In their listener callback you simply call changed() with whatever new value comes in.
|
virtual |
Don't forget to deregister the listener here.
|
protected |
You need to do this tasks in your constructor:
void changed | ( | var | newValue | ) |
Call this in your listener callback with the new value.
|
pure virtual |
Overwrite this method and update the component.
|
virtual |
Overwrite this method and update the component for the property that has changed.
|
inlinevirtual |
Overwrite this method and update the value of the component.
|
protected |
the component that will be owned by this wrapper.
|
protected |
the parent component.