component));
}
@Override
protected Map<String, Object> getScriptObjectOptions(FacesContext context, UIComponent component) {
AbstractTogglePanelItemInterface panelItem = (AbstractTogglePanelItemInterface) component;
Map<String, Object> options = new HashMap<String, Object>();
options.put("name", panelItem.getName());
options.put("togglePanelId", component.getParent().getClientId(context));
options.put("switchMode", panelItem.getSwitchType());
AbstractTogglePanel panel = panelItem.getParentPanel();
options.put("index", panel.getChildIndex(panelItem.getName()));
TogglePanelRenderer.addEventOption(context, component, options, LEAVE);
TogglePanelRenderer.addEventOption(context, component, options, ENTER);
return options;