Difference between revisions of "PropertyGroupHandlerExtension"

From OpenKM Documentation
Jump to: navigation, search
(Created page with 'Any extension that implements PropertyGroupHandlerExtension will be watching all events fired from property group ( metadata ) tab == Method == onChange(PropertyGroupEventConst…')
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Any extension that implements PropertyGroupHandlerExtension will be watching all events fired from property group ( metadata ) tab
+
Any extension that implements PropertyGroupHandlerExtension will be watching all events fired from property group ( metadata ) tab.
 
 
  
 
== Method ==
 
== Method ==
onChange(PropertyGroupEventConstant event)
+
=== 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
 
Each time it'll be some new property group ( metadata ) event the method onChange it'll be fired by OpenKM
 
  
 
== Example ==
 
== Example ==
 
<source lang="java">
 
<source lang="java">
public class Example extends implements PropertyHandlerExtension {
+
public class Example implements PropertyHandlerExtension {
 
 
 
public Example() {
 
public Example() {
 
}
 
}
 
  
 
         @Override
 
         @Override
Line 29: Line 23:
 
</source>
 
</source>
  
 
+
[[Category: Extension Guide]]
[[Category: OpenKM plugin extensions]]
 

Latest revision as of 13:33, 2 December 2010

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

Method

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 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());
                }
	}
}