AjaxBehaviorEvent behaviorEvent = (AjaxBehaviorEvent) event;
if(eventName.equals("tabChange")) {
String tabClientId = params.get(clientId + "_newTab");
TabChangeEvent changeEvent = new TabChangeEvent(this, behaviorEvent.getBehavior(), findTab(tabClientId));
if(this.getVar() != null) {
int tabindex = Integer.parseInt(params.get(clientId + "_tabindex"));
setRowIndex(tabindex);
changeEvent.setData(this.getRowData());
changeEvent.setTab((Tab) getChildren().get(0));
setRowIndex(-1);
}
changeEvent.setPhaseId(behaviorEvent.getPhaseId());
super.queueEvent(changeEvent);
}
else if(eventName.equals("tabClose")) {
String tabClientId = params.get(clientId + "_closeTab");