/*
 * Java-Gnome Bindings Library
 *
 * Copyright 1998-2004 the Java-Gnome Team, all rights reserved.
 *
 * The Java-Gnome bindings library is free software distributed under
 * the terms of the GNU Library General Public License version 2.
 */

package org.gnu.gnome;
import org.gnu.glib.GObject;
import org.gnu.glib.Type;
import org.gnu.gtk.Editable;
import org.gnu.gtk.Entry;
/**
 *
 */
public class IconTextItem extends CanvasItem {
	/**
	 * Constructs an instance of IconTextItem from a native widget resource.
	 * @param handle The handle to the native widget.
	 */
	IconTextItem(int handle) {
		super(handle);
	}

	public String getText() {
		return gnome_icon_text_item_get_text(getHandle());
	}
	
	public Editable getEditable() {
		int hndl = gnome_icon_text_item_get_editable(getHandle());
		GObject obj = retrieveGObject(hndl);
		if (null != obj)
			return (Entry)obj;
		return new Entry(hndl);
	}
	
	/**
	 * Retrieve the runtime type used by the GLib library.
	 */
	public static Type getType() {
		return new Type(gnome_icon_text_item_get_type());
	}

	/****************************************
	 * BEGINNING OF GENERATED CODE
	 ****************************************/
	native static final protected int gnome_icon_text_item_get_type();
	native static final protected void gnome_icon_text_item_configure(int iti, int x, int y, int width, String fontname, String text, boolean isEditable, boolean isStatic);
	native static final protected void gnome_icon_text_item_setxy(int iti, int x, int y);
	native static final protected void gnome_icon_text_item_select(int iti, int sel);
	native static final protected void gnome_icon_text_item_focus(int iti, int focused);
	native static final protected String gnome_icon_text_item_get_text(int iti);
	native static final protected void gnome_icon_text_item_start_editing(int iti);
	native static final protected void gnome_icon_text_item_stop_editing(int iti, boolean accept);
	native static final protected int gnome_icon_text_item_get_editable(int iti);
	/****************************************
	 * END OF GENERATED CODE
	 ****************************************/
}
