/***************************************************************************
                            QDataBrowser.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, 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.qt;

import java.util.*;
import java.lang.Error;

/**
 See {@link QDataBrowserSignals} for signals emitted by QDataBrowser.

 See {@link QDataBrowserEventHandling} for event handlers to override in subclasses of QDataBrowser.

*/
public class QDataBrowser extends QWidget  {
	protected QDataBrowser(Class dummy){super((Class) null);}

	private native void newQDataBrowser( QWidget parent, String name, int fl);
	public QDataBrowser( QWidget parent, String name, int fl) {
		super((Class) null);
		newQDataBrowser( parent, name, fl);
	}
	public QDataBrowser( QWidget parent, String name) {
		this( parent, name, 0);
	}
	private native void newQDataBrowser();
	public QDataBrowser() {
		super((Class) null);
		newQDataBrowser();
	}
	protected native void finalize() throws InternalError;
	public native int boundary();
	public native void setBoundaryChecking( boolean active);
	public native boolean boundaryChecking();
	public native void setSort( QSqlIndex sort);
	public native void setSort( String[] sort);
	public native ArrayList sort();
	public native void setFilter( String filter);
	public native String filter();
	public native void setSqlCursor( QSqlCursor cursor, boolean autoDelete);
	public native void setSqlCursor( QSqlCursor cursor);
	public native QSqlCursor sqlCursor();
	public native void setForm( QSqlForm form);
	public native QSqlForm form();
	public native void setConfirmEdits( boolean confirm);
	public native void setConfirmInsert( boolean confirm);
	public native void setConfirmUpdate( boolean confirm);
	public native void setConfirmDelete( boolean confirm);
	public native void setConfirmCancels( boolean confirm);
	public native boolean confirmEdits();
	public native boolean confirmInsert();
	public native boolean confirmUpdate();
	public native boolean confirmDelete();
	public native boolean confirmCancels();
	public native void setReadOnly( boolean active);
	public native boolean isReadOnly();
	public native void setAutoEdit( boolean autoEdit);
	public native boolean autoEdit();
	public native boolean seek( int i, boolean relative);
	public native boolean seek( int i);
	public native void refresh();
	public native void insert();
	public native void update();
	public native void del();
	public native void first();
	public native void last();
	public native void next();
	public native void prev();
	public native void readFields();
	public native void writeFields();
	public native void clearValues();
	public native void updateBoundary();
	protected native boolean insertCurrent();
	protected native boolean updateCurrent();
	protected native boolean deleteCurrent();
	protected native boolean currentEdited();
	protected native int confirmEdit( int m);
	protected native int confirmCancel( int m);
	protected native void handleError( QSqlError error);
	public static final int Unknown = 0;
	public static final int None = 1;
	public static final int BeforeBeginning = 2;
	public static final int Beginning = 3;
	public static final int End = 4;
	public static final int AfterEnd = 5;
}
