%-- * Licensed Materials - Property of IBM * * 5724-U18 * * (C) COPYRIGHT IBM CORP. 2006, 2011 All Rights Reserved. * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with * IBM Corp. --%><%@ include file="../common/componentheader.jsp" %> <% String label = component.getProperty("label"); if(designmode) label = control.getLocalizedType(); boolean writeCloseHtml = false; // Write the table container and create the buttons when the control is rendered if(component.needsRender()) { // Get the list of items in the menubar (menubar or appbar) String toolbarevent = component.getProperty("toolbarevent"); String sourcemethod = component.getProperty("sourcemethod"); String linkList = control.getProperty("appbarlinks"); if (linkList==null) { linkList=""; } final Object sourceObject; if (control.getType().equals("appbar")) { sourceObject = wcs; } else { sourceObject = app; } TreeMap searchMap = null; try { java.lang.reflect.Method m = sourceObject.getClass().getMethod(sourcemethod, new Class[0]); searchMap = (TreeMap) m.invoke(sourceObject, new Object[0]); } catch (NoSuchMethodException ex) { System.err.println("Invalid sourcemethod '" + sourcemethod + "' in class '" + sourceObject.getClass().getName() + "' specified for control '" + control.getId() + "' in app '" + component.getPage().getAppInstance().getId() + "'"); %>