General HandlerExtension stuff
NavigatorHandlerExtension
Section titled “NavigatorHandlerExtension ”Methods
Section titled “Methods”| method | Description |
|---|---|
| onChange(NavigatorEventConstant event) | Each time it’ll be a new stack panel event the method onChange it’ll be fired by OpenKM. |
Sample
Section titled “Sample”public class HandlersTest implements NavigatorHandlerExtension { @Override public void onChange(NavigatorEventConstant event) { Window.alert("navigator event fired"); }}PropertyGroupHandlerExtension
Section titled “PropertyGroupHandlerExtension ”Methods
Section titled “Methods”| method | Description |
|---|---|
| onChange(PropertyGroupEventConstant event) | Each time it’ll be a new property group ( metadata ) event the method onChange it’ll be fired by OpenKM. |
Sample
Section titled “Sample”public class Example implements PropertyHandlerExtension {
public Example() { }
@Override public void onChange(PropertyEventConstant event) { if (event.equals(HasPropertyGroupEvent.EVENT_PROPERTYGROUP_CHANGED)) { Window.alert("propertyGroup changed - " +event.getType()); } else { Window.alert("other property group event - " +event.getType()); } }}WorkspaceUserPropertiesHandlerExtension
Section titled “WorkspaceUserPropertiesHandlerExtension ”Methods
Section titled “Methods”| method | Description |
|---|---|
| workspaceUserLoaded() | It is called the first time workspace user properties are loaded. |
Sample
Section titled “Sample”public class HandlersTest implements WorkspaceUserPropertiesHandlerExtension { @Override public void workspaceUserLoaded { Window.alert("workspace user properties loaded can call GeneralCommunicator to read it"); if (GeneralComunicator.getWorkspace()!=null) { Window.alert("workspace loaded"); } }}WidgetHandlerExtension
Section titled “WidgetHandlerExtension ”Methods
Section titled “Methods”| method | Description |
|---|---|
| onChange(WidgetEventConstant event) | Each time it’ll be a new widget event the method onChange it’ll be fired by OpenKM . |
Sample
Section titled “Sample”public class Example implements WidgetHandlerExtension {
public Example() { }
@Override public void onChange(WidgetEventConstant event) { if (event.equals(HasWidgetEvent.FINISH_STARTUP)) { // Do something here } }}