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", panelItem.getParentPanel().getClientId(context));
options.put("switchMode", panelItem.getSwitchType());
AbstractTogglePanel panel = panelItem.getParentPanel();
options.put("index", panel.getIndexByName(panelItem.getName()));
TogglePanelRenderer.addEventOption(context, component, options, LEAVE);
TogglePanelRenderer.addEventOption(context, component, options, ENTER);
return options;