Difference between revisions of "WorkspaceHandlerExtension"

From OpenKM Documentation
Jump to: navigation, search
 
Line 1: Line 1:
Any extension that implements WorkspaceHandlerExtension will be watching all events fired from workspace tab panel
+
Any extension that implements WorkspaceHandlerExtension will be watching all events fired from workspace tab panel.
  
 
== Method ==
 
== Method ==
onChange(WorkspaceEventConstant event)
+
=== onChange(WorkspaceEventConstant event) ===
 
 
 
 
== onChange(WorkspaceEventConstant event) ==
 
 
Each time it'll be some new tab panel event the method onChange it'll be fired by OpenKM
 
Each time it'll be some new tab panel event the method onChange it'll be fired by OpenKM
 
  
 
== Example ==
 
== Example ==
 
<source lang="java">
 
<source lang="java">
 
public class HandlersTest implements WorkspaceHandlerExtension {
 
public class HandlersTest implements WorkspaceHandlerExtension {
 
 
@Override
 
@Override
 
public void onChange(WorkspaceEventConstant event) {
 
public void onChange(WorkspaceEventConstant event) {
Line 20: Line 15:
 
</source>
 
</source>
  
[[Category: OpenKM plugin extensions]]
+
[[Category: Extension Guide]]

Latest revision as of 13:29, 2 December 2010

Any extension that implements WorkspaceHandlerExtension will be watching all events fired from workspace tab panel.

Method

onChange(WorkspaceEventConstant event)

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

Example

public class HandlersTest implements WorkspaceHandlerExtension {
	@Override
	public void onChange(WorkspaceEventConstant event) {
		Window.alert("workspace event fired");
	}
}