General HandlerExtension stuff
NavigatorHandlerExtension
Any extension that implements NavigatorHandlerExtension will be watching all events fired from navigator stack panel.
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
public class HandlersTest implements NavigatorHandlerExtension {
@Override
public void onChange(NavigatorEventConstant event) {
Window.alert("navigator event fired");
}
}
PropertyGroupHandlerExtension
Any extension that implements PropertyGroupHandlerExtension will be watching all events fired from metadata group tab.
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
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());
}
}
}
WidgetHandlerExtension
Any extension that implements WidgetHandlerExtension will be watching all events fired from widgets.
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
public class Example implements WidgetHandlerExtension {
public Example() {
}
@Override
public void onChange(WidgetEventConstant event) {
if (event.equals(HasWidgetEvent.FINISH_STARTUP)) {
// Do something here
}
}
}