Difference between revisions of "DashboardHandlerExtension"

From OpenKM Documentation
Jump to: navigation, search
(Created page with 'Any extension that implements DashboardHandlerExtension will be watching all events fired from folder tab == Method == onChange(DashboardEventConstant event) == onChange(Dash…')
 
 
Line 1: Line 1:
 
Any extension that implements DashboardHandlerExtension will be watching all events fired from folder tab
 
Any extension that implements DashboardHandlerExtension will be watching all events fired from folder tab
 
  
 
== Method ==
 
== Method ==
onChange(DashboardEventConstant event)
+
=== onChange(DashboardEventConstant event) ===
 
 
 
 
== onChange(DashboardEventConstant event) ==
 
 
Each time it'll be some new dashboard event the method onChange it'll be fired by OpenKM
 
Each time it'll be some new dashboard event the method onChange it'll be fired by OpenKM
 
 
  
 
== Example ==
 
== Example ==
Line 27: Line 21:
 
</source>
 
</source>
  
 
+
[[Category: Extension Guide]]
[[Category: OpenKM plugin extensions]]
 

Latest revision as of 13:33, 2 December 2010

Any extension that implements DashboardHandlerExtension will be watching all events fired from folder tab

Method

onChange(DashboardEventConstant event)

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

Example

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

	@Override
	public void onChange(DashboardEventConstant event) {
		if (event.equals(HasDashboardEvent.TOOLBOX_CHANGED)) {
			// Do something here
		} 
	}
}