FileDocCategorySizeDatePackage
UIManagerEvent.javaAPI DocAzureus 3.0.3.43140Tue Mar 06 14:01:42 GMT 2007org.gudy.azureus2.plugins.ui

UIManagerEvent.java

/*
 * Created on 11-Sep-2005
 * Created by Paul Gardner
 * Copyright (C) 2005, 2006 Aelitis, All Rights Reserved.
 *
 * 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.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 * 
 * AELITIS, SAS au capital de 46,603.30 euros
 * 8 Allee Lenotre, La Grille Royale, 78600 Le Mesnil le Roi, France.
 *
 */

package org.gudy.azureus2.plugins.ui;

public interface 
UIManagerEvent 
{
	public static final int ET_SHOW_TEXT_MESSAGE				= 1;		// data is String[] - title, message, text
	public static final int ET_OPEN_TORRENT_VIA_FILE			= 2;		// data is File 
	public static final int ET_OPEN_TORRENT_VIA_URL				= 3;		// data is Object[]{URL,URL,Boolean} - { torrent_url, referrer url, auto_download}  
	public static final int ET_PLUGIN_VIEW_MODEL_CREATED		= 4;		// data is PluginViewModel (or subtype)
	public static final int ET_PLUGIN_CONFIG_MODEL_CREATED		= 5;		// data is PluginConfigModel (or subtype)
	public static final int ET_COPY_TO_CLIPBOARD				= 6;		// data is String
	public static final int ET_PLUGIN_VIEW_MODEL_DESTROYED		= 7;		// data is PluginViewModel (or subtype)
	public static final int ET_PLUGIN_CONFIG_MODEL_DESTROYED	= 8;		// data is PluginConfigModel (or subtype)
	public static final int ET_OPEN_URL							= 9;		// data is URL
	public static final int ET_CREATE_TABLE_COLUMN				= 10;		// data is String[] - table_id, cell_id: result is TableColumn
	public static final int ET_ADD_TABLE_COLUMN					= 11;		// data is TableColumn previously created
	public static final int ET_ADD_TABLE_CONTEXT_MENU_ITEM		= 12;		// data is TableContextMenuItem
	public static final int ET_SHOW_CONFIG_SECTION		        = 13;		// data is String - section id
	public static final int ET_ADD_TABLE_CONTEXT_SUBMENU_ITEM	= 14;		// data is TableContextMenuItem[] - child, parent
	public static final int ET_ADD_MENU_ITEM					= 15;		// data is MenuItem
	public static final int ET_ADD_SUBMENU_ITEM		            = 16;		// data is MenuItem[] - child, parent
	public static final int ET_REMOVE_TABLE_CONTEXT_MENU_ITEM   = 17;       // data is MenuItem
	public static final int ET_REMOVE_TABLE_CONTEXT_SUBMENU_ITEM = 18;      // data is MenuItem[] - child, parent
	public static final int ET_REMOVE_MENU_ITEM                 = 19;       // data is MenuItem
	public static final int ET_REMOVE_SUBMENU_ITEM              = 20;       // data is MenuItem[] - child, parent

	public int
	getType();
	
	public Object
	getData();
	
	public void
	setResult(
		Object	result );
	
	public Object
	getResult();
}