...
Anchor | ||||
---|---|---|---|---|
|
2.4. View listeners
TODO
public void generateTechnologyNumber(final ViewDefinitionState state, final ComponentState componentState, final String[] args) {
viewListenersView listeners are methods that is executed when specified event is fired. View listener method has structure:
Code Block |
---|
public void viewListenerMethodName(final ViewDefinitionState state, final ComponentState componentState, final String[] args) {
// VIEW LISTENER BODY
}
|
Where
- viewListenerMethodName - name of view listener method
- state - view state
- componentState - component that fired event
- args - array of event arguments
To attach created view listener method to view xml file see 'view listeners' section.
3. Example
TODO