|
|||||||||
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 String |
MB_PARAM_AUTO_CLOSE_MS
|
static String |
MB_PARAM_REMEMBER_BY_DEF
|
static String |
MB_PARAM_REMEMBER_ID
|
static 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(String data)
|
BasicPluginConfigModel |
createBasicPluginConfigModel(String section_name)
|
BasicPluginConfigModel |
createBasicPluginConfigModel(String parent_section,
String section_name)
Creates a basic plugin view model and adds it to the plugin in one step. |
BasicPluginViewModel |
createBasicPluginViewModel(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 |
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(File file)
Opens up the file using the associated application. |
void |
openTorrent(Torrent torrent)
|
void |
openURL(URL url)
|
void |
removeDataSourceListener(UIDataSourceListener l)
|
void |
removeUIEventListener(UIManagerEventListener listener)
|
void |
removeUIListener(UIManagerListener listener)
Remove an existing UIManagerListener |
void |
setEverythingHidden(boolean hidden)
|
boolean |
showConfigSection(String sectionID)
Open Config View to the section specified |
void |
showFile(File file)
Shows the file in a file explorer application in its parent folder. |
long |
showMessageBox(String title_resource,
String message_resource,
long message_map)
|
long |
showMessageBox(String title_resource,
String message_resource,
long message_map,
Map<String,Object> params)
|
long |
showMessageBox(String title_resource,
String message_resource,
long message_map,
Object[] params)
|
void |
showTextMessage(String title_resource,
String message_resource,
String contents)
|
Field Detail |
---|
static final String MB_PARAM_REMEMBER_ID
static final String MB_PARAM_REMEMBER_BY_DEF
static final String MB_PARAM_REMEMBER_RES
static final String MB_PARAM_AUTO_CLOSE_MS
Method Detail |
---|
BasicPluginConfigModel createBasicPluginConfigModel(String section_name)
section_name
-
BasicPluginConfigModel createBasicPluginConfigModel(String parent_section, String section_name)
parent_section
- section_name
- see ConfigSection
.SECTION_*
PluginConfigModel[] getPluginConfigModels()
BasicPluginViewModel createBasicPluginViewModel(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(String data) throws UIException
data
-
UIException
TableManager getTableManager()
void showTextMessage(String title_resource, String message_resource, String contents)
title_resource
- message_resource
- contents
- long showMessageBox(String title_resource, String message_resource, long message_map)
title_resource
- message
- message_map
- - see UIManagerEvent.MT_x
long showMessageBox(String title_resource, String message_resource, long message_map, Object[] params)
title_resource
- message
- message_map
- - see UIManagerEvent.MT_xparams
- - [ remember-id (String), remember-by-default (Boolean), remember-resource (String) ]
long showMessageBox(String title_resource, String message_resource, long message_map, Map<String,Object> params)
title_resource
- message_resource
- message_map
- params
-
void openURL(URL url) throws UIException
url
-
UIException
void openTorrent(Torrent torrent)
torrent
- boolean showConfigSection(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(File file)
file
- The file to open.void showFile(File file)
file
- The file to show.void addDataSourceListener(UIDataSourceListener l, boolean triggerNow)
void removeDataSourceListener(UIDataSourceListener l)
Object getDataSource()
void setEverythingHidden(boolean hidden)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |