public interface ComponentBuilderCallBack
An interface for describing call back operations that can be registered at the central builder data object.
Constructing a user GUI and an accompaning
Form
object is a complex
and non linear process. For instance it can happen that a component is
created that must be connected to another component, which has not yet been
created (e.g. a label that is associated with another GUI widget). Such
references cannot savely be resolved before the building process has
finished.
This interface provides a solution to the mentioned problem. It allows interested objects to register themselves as call backs at the builder data object. These call backs are executed when the building process ends. At this time all GUI components have been created and are accessable through the builder data object. So the registered objects should be able to resolve all valid references to components created during the building operation.
But implementations of this interface are not limited to resolving references. They can perform arbitrary actions that need to be executed after the building process has been completed.
Modifier and Type | Method and Description |
---|---|
void |
callBack(ComponentBuilderData builderData,
Object params)
Executes the call back.
|
void callBack(ComponentBuilderData builderData, Object params) throws FormBuilderException
builderData
- the builder data object of the current building
processparams
- an arbitrary parameter object that has been registered with
the call back objectFormBuilderException
- an implementation can throw this exception
to indicate that the building process should failCopyright © 2016 The JGUIraffe Team. All rights reserved.