/*******************************************************************************
* Copyright (c) 2002-2006 Innoopract Informationssysteme GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Innoopract Informationssysteme GmbH - initial API and implementation
******************************************************************************/
package com.w4t.dhtml.treeleafkit;
import java.io.IOException;
import com.w4t.WebComponent;
import com.w4t.ajax.AjaxStatusUtil;
import com.w4t.dhtml.Item;
import com.w4t.dhtml.ItemUtil;
// TODO [rh] Introduce specific renderers for IE and Mozilla like there are
// for TreeView and TreeNode
public class TreeLeafRenderer_Default_Ajax
extends TreeLeafRenderer_Ie5up_Script
{
public void render( final WebComponent component ) throws IOException {
ItemUtil.checkMarkState( ( Item )component );
if( AjaxStatusUtil.mustRender( component ) ) {
super.render( component );
}
ItemUtil.bufferMarkedState( ( Item )component );
}
}