|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 IUserInterface
init
in class UITemplateHeadless
first
- 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 IUserInterface
processArgs
in class UITemplate
public int getUIType()
getUIType
in interface UIInstance
public void startUI()
IUserInterface
startUI
in interface IUserInterface
startUI
in class UITemplate
public void openRemoteTorrent(String url)
public void openTorrent(String fileName)
IUserInterface
openTorrent
in interface IUserInterface
openTorrent
in class UITemplate
public UIInstance getInstance(PluginInterface plugin_interface)
UIInstanceFactory
getInstance
in interface UIInstanceFactory
public void detach() throws UIException
UIInstanceFactory
detach
in interface UIInstanceFactory
UIException
public boolean eventOccurred(UIManagerEvent event)
UIManagerEventListener
eventOccurred
in interface UIManagerEventListener
public int promptUser(String title, String text, String[] options, int defaultOption)
UIInstance
promptUser
in interface UIInstance
public boolean openView(BasicPluginViewModel model)
openView
in interface UIInstance
public UIInputReceiver getInputReceiver()
getInputReceiver
in interface UIInstance
public UIMessage createMessage()
UIInstance
UIMessage
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 UIInstance
public UIToolBarManager getToolBarManager()
getToolBarManager
in interface UIInstance
public 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 |