|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.ui.common.UITemplate
org.gudy.azureus2.ui.common.UITemplateHeadless
org.gudy.azureus2.ui.console.UI
public class UI
| Field Summary |
|---|
| Fields inherited from interface org.gudy.azureus2.plugins.ui.UIInstance |
|---|
UIT_CONSOLE, UIT_SWT |
| Constructor Summary | |
|---|---|
UI()
|
|
| Method Summary | |
|---|---|
UIMessage |
createMessage()
Creates a UIMessage instance to allow a plugin to inform or ask the
user something. |
void |
detach()
This method will be called by the UI manager when detaching the UI to permit the action to be vetoed/any detach logic to occur. |
boolean |
eventOccurred(UIManagerEvent event)
Return true if the event has been handled |
UIInputReceiver |
getInputReceiver()
Not yet supported. |
UIInstance |
getInstance(PluginInterface plugin_interface)
Some UI instances need to understand which plugin they are associated with. |
UIToolBarManager |
getToolBarManager()
|
int |
getUIType()
|
void |
init(boolean first,
boolean others)
Creates a new instance of Main |
void |
openRemoteTorrent(String url)
|
void |
openTorrent(String fileName)
Open a torrent file. |
boolean |
openView(BasicPluginViewModel model)
|
String[] |
processArgs(String[] args)
Process UI specific command line arguments. |
int |
promptUser(String title,
String text,
String[] options,
int defaultOption)
Prompts the user with a title, text, and a series of options. |
void |
startUI()
Start the UI. |
void |
unload(PluginInterface pi)
PluginInterface is unloading.. |
| Methods inherited from class org.gudy.azureus2.ui.common.UITemplate |
|---|
isStarted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gudy.azureus2.ui.common.IUserInterface |
|---|
isStarted |
| Constructor Detail |
|---|
public UI()
| Method Detail |
|---|
public void init(boolean first,
boolean others)
init in interface IUserInterfaceinit in class UITemplateHeadlessfirst - This UI Instance is the first on the command line and should take control of singular stuff (LocaleUtil and torrents added via Command Line).others - Indicates wether other UIs run along.public String[] processArgs(String[] args)
IUserInterface
processArgs in interface IUserInterfaceprocessArgs in class UITemplatepublic int getUIType()
getUIType in interface UIInstancepublic void startUI()
IUserInterface
startUI in interface IUserInterfacestartUI in class UITemplatepublic void openRemoteTorrent(String url)
public void openTorrent(String fileName)
IUserInterface
openTorrent in interface IUserInterfaceopenTorrent in class UITemplatepublic UIInstance getInstance(PluginInterface plugin_interface)
UIInstanceFactory
getInstance in interface UIInstanceFactory
public void detach()
throws UIException
UIInstanceFactory
detach in interface UIInstanceFactoryUIExceptionpublic boolean eventOccurred(UIManagerEvent event)
UIManagerEventListener
eventOccurred in interface UIManagerEventListener
public int promptUser(String title,
String text,
String[] options,
int defaultOption)
UIInstance
promptUser in interface UIInstancepublic boolean openView(BasicPluginViewModel model)
openView in interface UIInstancepublic UIInputReceiver getInputReceiver()
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 UIInstancepublic 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 | ||||||||