|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UIManager
Management tools for the user interface.
| Method Summary | |
|---|---|
void |
addUIEventListener(UIManagerEventListener listener)
|
void |
addUIListener(UIManagerListener listener)
|
void |
attachUI(UIInstanceFactory factory)
attach a new UI |
void |
copyToClipBoard(java.lang.String data)
|
BasicPluginConfigModel |
createBasicPluginConfigModel(java.lang.String section_name)
|
BasicPluginConfigModel |
createBasicPluginConfigModel(java.lang.String parent_section,
java.lang.String section_name)
Creates a basic plugin view model and adds it to the plugin in one step. |
BasicPluginViewModel |
createBasicPluginViewModel(java.lang.String name)
Creates a basic plugin view model and adds it to the plugin in one step. |
UIMessage |
createMessage()
Retrieves a UIMessage from any interface available, or
returns null if one is not available. |
PluginView |
createPluginView(PluginViewModel model)
Deprecated. Use createBasicPluginViewModel |
void |
detachUI(UIInstanceFactory factory)
detach a UI - can fail if the UI doesn't support detaching |
BasicPluginViewModel |
getBasicPluginViewModel(java.lang.String name)
Deprecated. Use createBasicPluginViewModel |
UIInputReceiver |
getInputReceiver()
Retrieves a UIInputReceiver from any interface available, or
returns null if one is not available. |
MenuManager |
getMenuManager()
Retrieve the menu manager. |
PluginConfigModel[] |
getPluginConfigModels()
|
SWTManager |
getSWTManager()
Deprecated. |
TableManager |
getTableManager()
Retrieve the Table Manager |
UIInstance[] |
getUIInstances()
Returns an array of all currently attached user interfaces. |
boolean |
hasUIInstances()
Returns true if there any user interfaces currently attached to Azureus. |
void |
openFile(java.io.File file)
Opens up the file using the associated application. |
void |
openTorrent(Torrent torrent)
|
void |
openURL(java.net.URL url)
|
void |
removeUIEventListener(UIManagerEventListener listener)
|
void |
removeUIListener(UIManagerListener listener)
|
boolean |
showConfigSection(java.lang.String sectionID)
Open Config View to the section specified |
void |
showFile(java.io.File file)
Shows the file in a file explorer application in its parent folder. |
long |
showMessageBox(java.lang.String title_resource,
java.lang.String message_resource,
long message_map)
|
void |
showTextMessage(java.lang.String title_resource,
java.lang.String message_resource,
java.lang.String contents)
|
| Method Detail |
|---|
BasicPluginViewModel getBasicPluginViewModel(java.lang.String name)
name - name
PluginView createPluginView(PluginViewModel model)
model -
BasicPluginConfigModel createBasicPluginConfigModel(java.lang.String section_name)
section_name -
BasicPluginConfigModel createBasicPluginConfigModel(java.lang.String parent_section,
java.lang.String section_name)
parent_section - section_name - see ConfigSection.SECTION_*
PluginConfigModel[] getPluginConfigModels()
BasicPluginViewModel createBasicPluginViewModel(java.lang.String name)
name - The name for the view (this should be localised text, rather
than a message string).
void copyToClipBoard(java.lang.String data)
throws UIException
data -
UIExceptionTableManager getTableManager()
void showTextMessage(java.lang.String title_resource,
java.lang.String message_resource,
java.lang.String contents)
title_resource - message_resource - contents -
long showMessageBox(java.lang.String title_resource,
java.lang.String message_resource,
long message_map)
title_resource - message - message_map - - see UIManagerEvent.MT_x
void openURL(java.net.URL url)
throws UIException
url -
UIExceptionvoid openTorrent(Torrent torrent)
torrent - SWTManager getSWTManager()
boolean showConfigSection(java.lang.String sectionID)
sectionID - ID of section to open to.
ConfigSection.SECTION_* constants
MenuManager getMenuManager()
void attachUI(UIInstanceFactory factory)
throws UIException
factory -
UIException
void detachUI(UIInstanceFactory factory)
throws UIException
factory -
UIExceptionvoid addUIListener(UIManagerListener listener)
listener - void removeUIListener(UIManagerListener listener)
listener - void addUIEventListener(UIManagerEventListener listener)
listener - void removeUIEventListener(UIManagerEventListener listener)
listener - boolean hasUIInstances()
UIInstance[] getUIInstances()
UIInputReceiver getInputReceiver()
UIInputReceiver from any interface available, or
returns null if one is not available. This is a convenience
method to allow you to grab an instance without having to iterate over
any attached interfaces.
UIInstance.getInputReceiver()UIMessage createMessage()
UIMessage from any interface available, or
returns null if one is not available. This is a convenience
method to allow you to grab an instance without having to iterate over
any attached interfaces.
UIInstance.createMessage()void openFile(java.io.File file)
file - The file to open.void showFile(java.io.File file)
file - The file to show.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||