WidgetHandlerExtension

From OpenKM Documentation
Revision as of 23:23, 7 July 2012 by Jllort (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Any extension that implements WidgetHandlerExtension will be watching all events fired from widgets

Method

onChange(WidgetEventConstant event)

Each time it'll be some new widget event the method onChange it'll be fired by OpenKM

Example

public class Example implements WidgetHandlerExtension {
	
	public Example() {
	}

	@Override
	public void onChange(WidgetEventConstant event) {
		if (event.equals(HasWidgetEvent.FINISH_STARTUP)) {
			// Do something here
		} 
	}
}