|
|||||||||
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.
To get an UIManager, see PluginInterface.getUIManager()
Field Summary | |
---|---|
static java.lang.String |
MB_PARAM_AUTO_CLOSE_MS
|
static java.lang.String |
MB_PARAM_REMEMBER_BY_DEF
|
static java.lang.String |
MB_PARAM_REMEMBER_ID
|
static java.lang.String |
MB_PARAM_REMEMBER_RES
|
Method Summary | |
---|---|
void |
addDataSourceListener(UIDataSourceListener l,
boolean triggerNow)
|
void |
addUIEventListener(UIManagerEventListener listener)
|
void |
addUIListener(UIManagerListener listener)
Listen for UIManagerListener.UIAttached(UIInstance) and
UIManagerListener.UIDetached(UIInstance) events. |
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. |
BasicPluginViewModel |
createLoggingViewModel(LoggerChannel channel,
boolean use_plugin_name)
Creates a BasicPluginViewModel object primarily to be used for
storing logging output. |
UIMessage |
createMessage()
Retrieves a UIMessage from any interface available, or
returns null if one is not available. |
void |
detachUI(UIInstanceFactory factory)
detach a UI - can fail if the UI doesn't support detaching |
java.lang.Object |
getDataSource()
|
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()
|
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 |
removeDataSourceListener(UIDataSourceListener l)
|
void |
removeUIEventListener(UIManagerEventListener listener)
|
void |
removeUIListener(UIManagerListener listener)
Remove an existing UIManagerListener |
void |
setEverythingHidden(boolean hidden)
|
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)
|
long |
showMessageBox(java.lang.String title_resource,
java.lang.String message_resource,
long message_map,
java.util.Map<java.lang.String,java.lang.Object> params)
|
long |
showMessageBox(java.lang.String title_resource,
java.lang.String message_resource,
long message_map,
java.lang.Object[] params)
|
void |
showTextMessage(java.lang.String title_resource,
java.lang.String message_resource,
java.lang.String contents)
|
Field Detail |
---|
static final java.lang.String MB_PARAM_REMEMBER_ID
static final java.lang.String MB_PARAM_REMEMBER_BY_DEF
static final java.lang.String MB_PARAM_REMEMBER_RES
static final java.lang.String MB_PARAM_AUTO_CLOSE_MS
Method Detail |
---|
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).
BasicPluginViewModel createLoggingViewModel(LoggerChannel channel, boolean use_plugin_name)
BasicPluginViewModel
object primarily to be used for
storing logging output. This is just a shortcut way of creating a log
view for the logger channel.
channel
- The LoggerChannel
to associate with.use_plugin_name
- If set to true, the log view will be
taken from the plugin name, if false, it will be taken from
the channel name.void copyToClipBoard(java.lang.String data) throws UIException
data
-
UIException
TableManager 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
long showMessageBox(java.lang.String title_resource, java.lang.String message_resource, long message_map, java.lang.Object[] params)
title_resource
- message
- message_map
- - see UIManagerEvent.MT_xparams
- - [ remember-id (String), remember-by-default (Boolean), remember-resource (String) ]
long showMessageBox(java.lang.String title_resource, java.lang.String message_resource, long message_map, java.util.Map<java.lang.String,java.lang.Object> params)
title_resource
- message_resource
- message_map
- params
-
void openURL(java.net.URL url) throws UIException
url
-
UIException
void openTorrent(Torrent torrent)
torrent
- 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
-
UIException
void addUIListener(UIManagerListener listener)
UIManagerListener.UIAttached(UIInstance)
and
UIManagerListener.UIDetached(UIInstance)
events. Typically,
you hook this listener so you can access UISWTInstance
when it
gets created.
void removeUIListener(UIManagerListener listener)
UIManagerListener
listener
- Listener to removevoid 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.void addDataSourceListener(UIDataSourceListener l, boolean triggerNow)
void removeDataSourceListener(UIDataSourceListener l)
java.lang.Object getDataSource()
void setEverythingHidden(boolean hidden)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |