FileDocCategorySizeDatePackage
UIInstance.javaAPI DocAzureus 3.0.3.42150Mon Nov 13 13:50:46 GMT 2006org.gudy.azureus2.plugins.ui

UIInstance

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 )

Fields Summary
Constructors Summary
Methods Summary
public UIInputReceivergetInputReceiver()
Creates a {@link 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.

public intpromptUser(java.lang.String title, java.lang.String text, java.lang.String[] options, int defaultOption)
Prompts the user with a title, text, and a series of options. The options are typically displayed as buttons.

param
title
param
text
param
options
return
Index of option chosen, -1 if cancelled or error