PropertyGroupHandlerExtension

From OpenKM Documentation
Revision as of 12:12, 7 July 2010 by Jllort (talk | contribs) (Created page with 'Any extension that implements PropertyGroupHandlerExtension will be watching all events fired from property group ( metadata ) tab == Method == onChange(PropertyGroupEventConst…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Any extension that implements PropertyGroupHandlerExtension will be watching all events fired from property group ( metadata ) tab


Method

onChange(PropertyGroupEventConstant event)


onChange(PropertyGroupEventConstant event)

Each time it'll be some new property group ( metadata ) event the method onChange it'll be fired by OpenKM


Example

public class Example extends 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());
                }
	}
}