Difference between revisions of "WorkspaceHandlerExtension"
From OpenKM Documentation
(Created page with 'Any extension that implements WorkspaceHandlerExtension will be watching all events fired from workspace tab panel == Method == onChange(WorkspaceEventConstant event) == onCha…') |
|||
(One intermediate revision by one other user not shown) | |||
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) == | ||
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) { | ||
− | Window.alert(" | + | Window.alert("workspace event fired"); |
} | } | ||
} | } | ||
</source> | </source> | ||
− | [[Category: | + | [[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");
}
}