Fields Summary |
---|
public static final String | VIEW_MAINID of main view |
public static final String | VIEW_MYTORRENTSID of "My Torrents" view |
public static final String | VIEW_TORRENT_PEERSID of "Peers" view |
public static final String | VIEW_TORRENT_PIECESID of "Pieces" view |
public static final String | VIEW_TORRENT_FILESID of "Files" view |
public static final String | VIEW_TOPBARID of the top bar of az3ui |
Methods Summary |
---|
public void | addView(UISWTAWTPluginView view, boolean auto_open)Add an AWT panel as the plugin view
|
public void | addView(java.lang.String sParentID, java.lang.String sViewID, UISWTViewEventListener l)Add a detail view to an Azureus parent view. For views added to the Main
window, this adds a menu option. For the other parent views, this adds
a new tab within Azureus' own detail view.
|
public void | addView(UISWTPluginView view, boolean autoOpen)A Plugin might call this method to add a View to Azureus's views
The View will be accessible from View > Plugins > View name
|
public UISWTGraphic | createGraphic(org.eclipse.swt.graphics.Image img)Creates an UISWTGraphic object with the supplied SWT Image
|
public UISWTStatusEntry | createStatusEntry()Creates an entry in the status bar to display custom status information.
|
public org.eclipse.swt.widgets.Display | getDisplay()Retrieve the SWT Display object that Azureus uses (when in SWT mode).
If you have a thread that does some periodic/asynchronous stuff, Azureus
will crashes with and 'InvalidThreadAccess' exception unless you
embed your calls in a Runnable, and use getDisplay().aSyncExec(Runnable r);
|
public UISWTView[] | getOpenViews(java.lang.String sParentID)Get a list of views currently open on the specified VIEW_* view
|
public org.eclipse.swt.graphics.Image | loadImage(java.lang.String resource)
|
public void | openMainView(java.lang.String sViewID, UISWTViewEventListener l, java.lang.Object dataSource)Create and open a view in the main window immediately. If you are calling
this from {@link org.gudy.azureus2.plugins.ui.UIManagerListener#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
|
public boolean | openView(java.lang.String sParentID, java.lang.String sViewID, java.lang.Object dataSource)Open a previously added view
|
public void | removeView(UISWTPluginView view)Remove a view
|
public void | removeView(UISWTAWTPluginView view)Remove a view
|
public void | removeViews(java.lang.String sParentID, java.lang.String sViewID)Remove all views that belong to a specific parent and of a specific View
ID. If the parent is the main window, the menu item will be removed.
If you wish to remove (close) just one view, use
{@link UISWTView#closeView()}
|
public void | showDownloadBar(org.gudy.azureus2.plugins.download.Download download, boolean display)Shows or hides a download bar for a given download.
|
public void | showTransfersBar(boolean display)Shows or hides the transfers bar.
|