1 /* 2 * Copyright (C) Azureus Software, Inc, All Rights Reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * You should have received a copy of the GNU General Public License 13 * along with this program; if not, write to the Free Software 14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 15 */ 16 package com.aelitis.azureus.ui.swt.mdi; 17 18 import org.gudy.azureus2.ui.swt.plugins.PluginUISWTSkinObject; 19 import org.gudy.azureus2.ui.swt.plugins.UISWTViewEventListener; 20 import org.gudy.azureus2.ui.swt.pluginsimpl.UISWTViewCore; 21 22 import com.aelitis.azureus.ui.mdi.MdiEntry; 23 import com.aelitis.azureus.ui.mdi.MultipleDocumentInterface; 24 25 /** 26 * @author TuxPaper 27 * @created Jan 29, 2010 28 * 29 */ 30 public interface MultipleDocumentInterfaceSWT 31 extends MultipleDocumentInterface 32 { getEntryBySkinView(Object skinView)33 public MdiEntry getEntryBySkinView(Object skinView); 34 getCoreViewFromID(String id)35 public UISWTViewCore getCoreViewFromID(String id); 36 37 /** 38 * If you prefix the 'preferedAfterID' string with '~' then the operation will actually 39 * switch to 'preferedBeforeID' 40 */ createEntryFromEventListener(String parentEntryID, UISWTViewEventListener l, String id, boolean closeable, Object datasource, String preferredAfterID)41 public MdiEntry createEntryFromEventListener(String parentEntryID, 42 UISWTViewEventListener l, String id, boolean closeable, 43 Object datasource, String preferredAfterID); 44 45 createEntryFromEventListener(String parentEntryID, String parentViewID, UISWTViewEventListener l, String id, boolean closeable, Object datasource, String preferredAfterID)46 public MdiEntry createEntryFromEventListener(String parentEntryID, 47 String parentViewID, 48 UISWTViewEventListener l, String id, boolean closeable, 49 Object datasource, String preferredAfterID); 50 createEntryFromEventListener(String parentEntryID, Class<? extends UISWTViewEventListener> cla, String id, boolean closeable, Object data, String preferedAfterID)51 public MdiEntry createEntryFromEventListener(String parentEntryID, 52 Class<? extends UISWTViewEventListener> cla, String id, boolean closeable, 53 Object data, String preferedAfterID); 54 getEntrySWT(String id)55 public MdiEntrySWT getEntrySWT(String id); 56 getCurrentEntrySWT()57 public MdiEntrySWT getCurrentEntrySWT(); 58 getEntryFromSkinObject(PluginUISWTSkinObject skinObject)59 public MdiEntrySWT getEntryFromSkinObject(PluginUISWTSkinObject skinObject); 60 61 /** 62 * @param closeableConfigFile 63 * @since 5.6.0.1 64 */ setCloseableConfigFile(String closeableConfigFile)65 void setCloseableConfigFile(String closeableConfigFile); 66 } 67