| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UIInstance
This interface represents a UI running on the core (e.g. the SWT UI). The actual implementation of this will support UI-specific operations - you need to cast this to the appropriate type to access them. This is to allow "native" UI plugin access - for example a plugin that directly accesses SWT functionality would do it via this object (it'll be an instance of org.gudy.azureus2.ui.swt.plugins.UISWTInstance )
| Field Summary | |
|---|---|
static int | 
UIT_CONSOLE
 | 
static int | 
UIT_SWT
 | 
| Method Summary | |
|---|---|
 UIMessage | 
createMessage()
Creates a UIMessage instance to allow a plugin to inform or ask the
 user something. | 
 UIInputReceiver | 
getInputReceiver()
Creates a UIInputReceiver instance to allow a plugin to request
 text input from the user. | 
 UIToolBarManager | 
getToolBarManager()
 | 
 int | 
getUIType()
 | 
 boolean | 
openView(BasicPluginViewModel model)
 | 
 int | 
promptUser(String title,
           String text,
           String[] options,
           int defaultOption)
Prompts the user with a title, text, and a series of options.  | 
| Field Detail | 
|---|
static final int UIT_SWT
static final int UIT_CONSOLE
| Method Detail | 
|---|
int getUIType()
boolean openView(BasicPluginViewModel model)
int promptUser(String title,
               String text,
               String[] options,
               int defaultOption)
title - text - options - 
UIInputReceiver getInputReceiver()
UIInputReceiver instance to allow a plugin to request
 text input from the user. Some interfaces may not allow or support the
 ability for a plugin to request text input from a user, in which case
 they will return null for this method.
UIMessage createMessage()
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.
UIToolBarManager getToolBarManager()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||