| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.ui.swt.pluginsimpl.UISWTInstanceImpl.instanceWrapper
protected static class UISWTInstanceImpl.instanceWrapper
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from interface org.gudy.azureus2.ui.swt.plugins.UISWTInstance | 
|---|
UISWTInstance.UISWTViewEventListenerWrapper | 
| Field Summary | 
|---|
| Fields inherited from interface org.gudy.azureus2.ui.swt.plugins.UISWTInstance | 
|---|
VIEW_CONFIG, VIEW_MAIN, VIEW_MYTORRENTS, VIEW_SIDEBAR_AREA, VIEW_STATISTICS, VIEW_TOPBAR, VIEW_TORRENT_DETAILS, VIEW_TORRENT_FILES, VIEW_TORRENT_PEERS, VIEW_TORRENT_PIECES | 
| Fields inherited from interface org.gudy.azureus2.plugins.ui.UIInstance | 
|---|
UIT_CONSOLE, UIT_SWT | 
| Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarManager | 
|---|
GROUP_BIG, GROUP_MAIN | 
| Constructor Summary | |
|---|---|
protected  | 
UISWTInstanceImpl.instanceWrapper(PluginInterface _pi,
                                  UIFunctionsSWT _ui_functions,
                                  UISWTInstanceImpl _delegate)
 | 
| Method Summary | |
|---|---|
 void | 
addToolBarItem(UIToolBarItem item)
Adds a UIToolBarItem to the UI. | 
 void | 
addView(String sParentID,
        String sViewID,
        Class<? extends UISWTViewEventListener> cla,
        Object datasource)
Add a view to an Azureus parent view.  | 
 void | 
addView(String sParentID,
        String sViewID,
        UISWTViewEventListener l)
Add a detail view to an Azureus parent view.  | 
 UISWTGraphic | 
createGraphic(org.eclipse.swt.graphics.Image img)
Creates an UISWTGraphic object with the supplied SWT Image  | 
 UIMessage | 
createMessage()
Creates a UIMessage instance to allow a plugin to inform or ask the
 user something. | 
 org.eclipse.swt.widgets.Shell | 
createShell(int style)
Creates a SWT Shell, ensuring Vuze knows about it (ie.  | 
 UISWTStatusEntry | 
createStatusEntry()
Creates an entry in the status bar to display custom status information.  | 
 UIToolBarItem | 
createToolBarItem(String id)
Create a new UIToolBarItem. | 
 void | 
detach()
 | 
 UIToolBarItem[] | 
getAllToolBarItems()
 | 
 org.eclipse.swt.widgets.Display | 
getDisplay()
Retrieve the SWT Display object that Azureus uses (when in SWT mode).  | 
 UIInputReceiver | 
getInputReceiver()
Creates a UIInputReceiver instance to allow a plugin to request
 text input from the user. | 
 UISWTView[] | 
getOpenViews(String sParentID)
Get a list of views currently open on the specified VIEW_* view  | 
 UIToolBarItem | 
getToolBarItem(String id)
 | 
 UIToolBarManager | 
getToolBarManager()
 | 
 int | 
getUIType()
 | 
 UISWTInstance.UISWTViewEventListenerWrapper[] | 
getViewListeners(String sParentId)
 | 
 org.eclipse.swt.graphics.Image | 
loadImage(String resource)
 | 
 void | 
openConfig(BasicPluginConfigModel model)
Opens the window linked to a given BasicPluginViewModel object.  | 
 void | 
openMainView(String sViewID,
             UISWTViewEventListener l,
             Object dataSource)
Create and open a view in the main window immediately.  | 
 void | 
openMainView(String sViewID,
             UISWTViewEventListener l,
             Object dataSource,
             boolean setfocus)
Create and open a view in the main window immediately.  | 
 boolean | 
openView(BasicPluginViewModel model)
Opens the window linked to a given BasicPluginViewModel object.  | 
 boolean | 
openView(String sParentID,
         String sViewID,
         Object dataSource)
Open a previously added view  | 
 boolean | 
openView(String sParentID,
         String sViewID,
         Object dataSource,
         boolean setfocus)
Open a previously added view  | 
 int | 
promptUser(String title,
           String text,
           String[] options,
           int defaultOption)
Prompts the user with a title, text, and a series of options.  | 
 void | 
removeToolBarItem(String id)
 | 
 void | 
removeViews(String sParentID,
            String sViewID)
Remove all views that belong to a specific parent and of a specific View ID.  | 
 void | 
showDownloadBar(Download download,
                boolean display)
Shows or hides a download bar for a given download.  | 
 void | 
showTransfersBar(boolean display)
Shows or hides the transfers bar.  | 
 void | 
unload(PluginInterface pi)
PluginInterface is unloading..  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected UISWTInstanceImpl.instanceWrapper(PluginInterface _pi,
                                            UIFunctionsSWT _ui_functions,
                                            UISWTInstanceImpl _delegate)
| Method Detail | 
|---|
public UIToolBarItem getToolBarItem(String id)
getToolBarItem in interface UIToolBarManagerpublic UIToolBarItem[] getAllToolBarItems()
getAllToolBarItems in interface UIToolBarManagerpublic UIToolBarItem createToolBarItem(String id)
UIToolBarManagerUIToolBarItem.  You will still need to add it
 via UIToolBarManager.addToolBarItem(UIToolBarItem), after setting the item's
 properties
createToolBarItem in interface UIToolBarManagerid - unique id
public void addToolBarItem(UIToolBarItem item)
UIToolBarManagerUIToolBarItem to the UI.  Make sure you at least set the
 icon before adding
addToolBarItem in interface UIToolBarManagerpublic void removeToolBarItem(String id)
removeToolBarItem in interface UIToolBarManager
public void detach()
            throws UIException
UIExceptionpublic int getUIType()
getUIType in interface UIInstancepublic org.eclipse.swt.widgets.Display getDisplay()
UISWTInstance
getDisplay in interface UISWTInstancepublic org.eclipse.swt.graphics.Image loadImage(String resource)
loadImage in interface UISWTInstancepublic UISWTGraphic createGraphic(org.eclipse.swt.graphics.Image img)
UISWTInstance
createGraphic in interface UISWTInstanceimg - Image to assign to the object
public void addView(String sParentID,
                    String sViewID,
                    UISWTViewEventListener l)
UISWTInstance
addView in interface UISWTInstancesParentID - VIEW_* constantsViewID - of your view.  Used as part of the resource id.l - Listener to be triggered when parent view wants to tell you 
           an event has happened
public void addView(String sParentID,
                    String sViewID,
                    Class<? extends UISWTViewEventListener> cla,
                    Object datasource)
UISWTInstanceUISWTInstance.VIEW_MAIN
 window, this adds a menu option.
 In comparison to UISWTInstance.addView(String, String, UISWTViewEventListener),
 this method saves memory by not creating the UISWTViewEventListener
 until it is needed.  It also ensures that only one 
 UISWTViewEvent.TYPE_CREATE event is triggered per instance.
addView in interface UISWTInstancesParentID - VIEW_* constantsViewID - of your view.  Used as part of the resource id.cla - Class of the Listener to be created and triggered
public void openMainView(String sViewID,
                         UISWTViewEventListener l,
                         Object dataSource)
UISWTInstanceUIManagerListener.UIAttached(UIInstance),
 the view will not gain focus.
 Tip: You can add a menu item to a table view, and when triggered, have it open a new window, passing the datasources that were selected
openMainView in interface UISWTInstancesViewID - ID to give your viewl - Listener to be triggered when View Events occurdataSource - objects to set UISWTView.getDataSource() with
public void openMainView(String sViewID,
                         UISWTViewEventListener l,
                         Object dataSource,
                         boolean setfocus)
UISWTInstanceUIManagerListener.UIAttached(UIInstance),
 the view will not gain focus.
 Tip: You can add a menu item to a table view, and when triggered, have it open a new window, passing the datasources that were selected
openMainView in interface UISWTInstancesViewID - ID to give your viewl - Listener to be triggered when View Events occurdataSource - objects to set UISWTView.getDataSource() withsetfocus - true if you want to display the view immediately,
   false if you want to display it in the background.
public void removeViews(String sParentID,
                        String sViewID)
UISWTInstanceUIPluginView.closeView()
removeViews in interface UISWTInstancesParentID - One of VIEW_* constantssViewID - View ID to removepublic UISWTView[] getOpenViews(String sParentID)
UISWTInstance
getOpenViews in interface UISWTInstancesParentID - VIEW_* constant
public int promptUser(String title,
                      String text,
                      String[] options,
                      int defaultOption)
UIInstance
promptUser in interface UIInstance
public boolean openView(String sParentID,
                        String sViewID,
                        Object dataSource)
UISWTInstance
openView in interface UISWTInstancesParentID - ParentID of the view to be shownsViewID - id of the view to be showndataSource - any data you need to pass the view
public boolean openView(String sParentID,
                        String sViewID,
                        Object dataSource,
                        boolean setfocus)
UISWTInstance
openView in interface UISWTInstancesParentID - ParentID of the view to be shownsViewID - id of the view to be showndataSource - any data you need to pass the viewsetfocus - true if you want to display the view immediately,
   false if you want to display it in the background.
public UISWTInstance.UISWTViewEventListenerWrapper[] getViewListeners(String sParentId)
getViewListeners in interface UISWTInstancepublic UIInputReceiver getInputReceiver()
UIInstanceUIInputReceiver instance to allow a plugin to request
 text input from the user. Some interfaces may not allow or support the
 ability for a plugin to request text input from a user, in which case
 they will return null for this method.
getInputReceiver in interface UIInstancepublic UIMessage createMessage()
UIInstanceUIMessage instance to allow a plugin to inform or ask the
 user something. Some interfaces may not allow or support the
 ability for a plugin to ask a user in this manner, in which case
 they will return null for this method.
createMessage in interface UIInstance
public void showDownloadBar(Download download,
                            boolean display)
UISWTInstance
showDownloadBar in interface UISWTInstancedownload - Download to use.display - true to show a download bar, false to hide it.public void showTransfersBar(boolean display)
UISWTInstance
showTransfersBar in interface UISWTInstancedisplay - true to show the bar, false to hide it.public UISWTStatusEntry createStatusEntry()
UISWTInstance
createStatusEntry in interface UISWTInstanceUISWTStatusEntrypublic boolean openView(BasicPluginViewModel model)
UISWTInstance
openView in interface UIInstanceopenView in interface UISWTInstancepublic void openConfig(BasicPluginConfigModel model)
UISWTInstance
openConfig in interface UISWTInstancepublic org.eclipse.swt.widgets.Shell createShell(int style)
UISWTInstance
createShell in interface UISWTInstancepublic UIToolBarManager getToolBarManager()
getToolBarManager in interface UIInstancepublic void unload(PluginInterface pi)
UIInstanceBase
unload in interface UIInstanceBase
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||