Difference between revisions of "ToolBarBoxExtension"

From OpenKM Documentation
Jump to: navigation, search
m
Line 2: Line 2:
 
  Widget getWidget()
 
  Widget getWidget()
 
  String getExtensionUUID()
 
  String getExtensionUUID()
void refreshAll()
 
  
 
== getWidget() ==
 
== getWidget() ==
Line 9: Line 8:
 
== getExtensionUUID() ==
 
== getExtensionUUID() ==
 
Return unique extension id
 
Return unique extension id
 
== refreshAll() ==
 
Refresh all data. Called when all dashboard widgets are refreshing.
 
  
 
== Example ==
 
== Example ==
Line 31: Line 27:
 
            return String.valueOf("d9dab640-d098-11df-bd3b-0800200c9a66");
 
            return String.valueOf("d9dab640-d098-11df-bd3b-0800200c9a66");
 
         }
 
         }
               
 
                @Override
 
public void refreshAll() {
 
                      // Do something RPC calls, etc..
 
}
 
 
}
 
}
 
</source>
 
</source>
  
 
[[Category: OpenKM plugin extensions]]
 
[[Category: OpenKM plugin extensions]]

Revision as of 20:10, 13 November 2010

Methods

Widget getWidget()
String getExtensionUUID()

getWidget()

Returns the associated widget to the tool box that will be showed when it'll be selected.

getExtensionUUID()

Return unique extension id

Example

public class ToolBarBoxExample extends ToolBarBoxExtension {

		public ToolBarBoxEx(Image img, String text) {
			super(img, text);
		}

		@Override
		public Widget getWidget() {
			// TODO Auto-generated method stub
			return null;
		}

                @Override
        	public String getExtensionUUID() {
	    	        return String.valueOf("d9dab640-d098-11df-bd3b-0800200c9a66");
         	}
	}