/***************************************************************************
                            KListViewItem.java -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.koala;

import org.kde.qt.*;
import java.util.*;
import java.lang.Error;

/**

 A listview item with support for alternate background colours. It is
 a drop-in replacement for {@link QListViewItem}

 @short listview item with alternate background colour support.
*/
public class KListViewItem extends QListViewItem  {
	protected KListViewItem(Class dummy){super((Class) null);}

	private native void newKListViewItem( QListView parent);

/** 
 constructors. The semantics remain as in {@link QListViewItem}.
 Although they accept a {@link QListViewItem} as parent, please
 don't mix KListViewItem (or subclasses) with QListViewItem
 (or subclasses).
   
*/
	public KListViewItem( QListView parent) {
		super((Class) null);
		newKListViewItem( parent);
	}
	private native void newKListViewItem( QListViewItem parent);
	public KListViewItem( QListViewItem parent) {
		super((Class) null);
		newKListViewItem( parent);
	}
	private native void newKListViewItem( QListView parent, QListViewItem after);
	public KListViewItem( QListView parent, QListViewItem after) {
		super((Class) null);
		newKListViewItem( parent, after);
	}
	private native void newKListViewItem( QListViewItem parent, QListViewItem after);
	public KListViewItem( QListViewItem parent, QListViewItem after) {
		super((Class) null);
		newKListViewItem( parent, after);
	}
	private native void newKListViewItem( QListView parent, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8);
	public KListViewItem( QListView parent, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8) {
		super((Class) null);
		newKListViewItem( parent, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
	}
	private native void newKListViewItem( QListView parent, String arg1);
	public KListViewItem( QListView parent, String arg1) {
		super((Class) null);
		newKListViewItem( parent, arg1);
	}
	private native void newKListViewItem( QListViewItem parent, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8);
	public KListViewItem( QListViewItem parent, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8) {
		super((Class) null);
		newKListViewItem( parent, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
	}
	private native void newKListViewItem( QListViewItem parent, String arg1);
	public KListViewItem( QListViewItem parent, String arg1) {
		super((Class) null);
		newKListViewItem( parent, arg1);
	}
	private native void newKListViewItem( QListView parent, QListViewItem after, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8);
	public KListViewItem( QListView parent, QListViewItem after, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8) {
		super((Class) null);
		newKListViewItem( parent, after, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
	}
	private native void newKListViewItem( QListView parent, QListViewItem after, String arg1);
	public KListViewItem( QListView parent, QListViewItem after, String arg1) {
		super((Class) null);
		newKListViewItem( parent, after, arg1);
	}
	private native void newKListViewItem( QListViewItem parent, QListViewItem after, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8);
	public KListViewItem( QListViewItem parent, QListViewItem after, String arg1, String arg2, String arg3, String arg4, String arg5, String arg6, String arg7, String arg8) {
		super((Class) null);
		newKListViewItem( parent, after, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
	}
	private native void newKListViewItem( QListViewItem parent, QListViewItem after, String arg1);
	public KListViewItem( QListViewItem parent, QListViewItem after, String arg1) {
		super((Class) null);
		newKListViewItem( parent, after, arg1);
	}
	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();

/** 
 returns the background colour for this item
   
*/
	public native QColor backgroundColor();
	public native void paintCell( QPainter p, QColorGroup cg, int column, int width, int alignment);
}
