Information Technology Reference
In-Depth Information
@OnOpen : When the workbench component is displayed, this method will be
called. The method should have zero arguments and return void, and is commonly
used to start visual representations.
@OnFocus : Methods annotated with this will be called when the workbench
component receives focus. It should also have zero arguments and return void.
@OnLostFocus : Whenever the user clicks on another component, the current
one will lose focus and the method annotated with this will be called.
@OnMayClose : Methods annotated with this should return a Boolean value.
They should decide whether the component is in a state where it can be closed or
not. Based on that, the workbench will decide whether to continue closing the
component.
@OnClose : When a component is closed, the method annotated with this will be
called—usually to clean visual resources.
@OnShutdown : This annotation is called to release resources on both the client
and server side regarding the current component.
Using these annotations, we can define user interactions that are very detached from the
actual workbench's final implementation. This helps a lot in making scalable UI compon-
ents with a lot of embedded functionality.
Search WWH ::




Custom Search