Difference between revisions of "NavigatorHandlerExtension"

From OpenKM Documentation
Jump to: navigation, search
(Created page with 'Any extension that implements NavigatorHandlerExtension will be watching all events fired from navigator stack panel == Method == onChange(NavigatorEventConstant event) == onC…')
 
 
(One intermediate revision by one other user not shown)
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 19: Line 14:
 
}
 
}
 
</source>
 
</source>
 +
 +
[[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");
	}
}