Ir al contenido
Otras versiones

Cargando…

General HandlerExtension stuff

Esta página aún no está disponible en tu idioma.

method Description
onChange(NavigatorEventConstant event) Each time it’ll be a new stack panel event the method onChange it’ll be fired by OpenKM.
public class HandlersTest implements NavigatorHandlerExtension {
@Override
public void onChange(NavigatorEventConstant event) {
Window.alert("navigator event fired");
}
}
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.
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());
}
}
}
method Description
workspaceUserLoaded() It is called the first time workspace user properties are loaded.
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");
}
}
}
method Description
onChange(WidgetEventConstant event) Each time it’ll be a new widget event the method onChange it’ll be fired by OpenKM .
public class Example implements WidgetHandlerExtension {
public Example() {
}
@Override
public void onChange(WidgetEventConstant event) {
if (event.equals(HasWidgetEvent.FINISH_STARTUP)) {
// Do something here
}
}
}