Difference between revisions of "NavigatorHandlerExtension"

From OpenKM Documentation
Jump to: navigation, search
 
Line 2: Line 2:
  
 
== Method ==
 
== Method ==
onChange(NavigatorEventConstant event)
+
=== onChange(NavigatorEventConstant event) ===
 
+
Each time it'll be some new stack panel event the method onChange it'll be fired by OpenKM.
 
 
== onChange(NavigatorEventConstant event) ==
 
Each time it'll be some new stack panel event the method onChange it'll be fired by OpenKM
 
 
 
  
 
== Example ==
 
== Example ==
 
<source lang="java">
 
<source lang="java">
 
public class HandlersTest implements NavigatorHandlerExtension {
 
public class HandlersTest implements NavigatorHandlerExtension {
 
 
@Override
 
@Override
 
public void onChange(NavigatorEventConstant event) {
 
public void onChange(NavigatorEventConstant event) {
Line 20: Line 15:
 
</source>
 
</source>
  
[[Category: OpenKM plugin extensions]]
+
[[Category: Extension Guide]]

Latest revision as of 13:30, 2 December 2010

Any extension that implements NavigatorHandlerExtension will be watching all events fired from navigator stack panel

Method

onChange(NavigatorEventConstant event)

Each time it'll be some new stack panel event the method onChange it'll be fired by OpenKM.

Example

public class HandlersTest implements NavigatorHandlerExtension {
	@Override
	public void onChange(NavigatorEventConstant event) {
		Window.alert("navigator event fired");
	}
}