FileDocCategorySizeDatePackage
UISWTStatusEntry.javaAPI DocAzureus 3.0.3.42820Sun Feb 04 03:27:30 GMT 2007org.gudy.azureus2.ui.swt.plugins

UISWTStatusEntry

public interface UISWTStatusEntry
This interface represents a status entry indicator in the status bar. Examples of such indicators are the Share Ratio indicator and the DHT Status indicator. Plugins can create their own indicators via {@link UISWTInstance#createStatusEntry()}. When a status entry is first created, it is set to be invisible, with no status text or tool tip text and no image to be associated with it.
see
UISWTInstance#createStatusEntry()
author
amc1
since
3.0.0.8

Fields Summary
public static final int
IMAGE_LED_GREY
public static final int
IMAGE_LED_RED
public static final int
IMAGE_LED_YELLOW
public static final int
IMAGE_LED_GREEN
Constructors Summary
Methods Summary
public voiddestroy()
Destroys the status entry.

public voidsetImage(int image_id)
Sets the image to display - the value here must be one of the IMAGE_ values defined above.

public voidsetImage(org.eclipse.swt.graphics.Image image)
Sets the image to display.

public voidsetImageEnabled(boolean enabled)
Indicates whether an image should be displayed or not.

public voidsetListener(UISWTStatusEntryListener listener)
Sets a listener to be informed when the status entry has been clicked on.

public voidsetText(java.lang.String text)
Sets the text to display in the status bar. If you want to prevent any text being displayed, pass null as a parameter.

public voidsetTooltipText(java.lang.String text)
Sets the tooltip text to associate with the status bar. If you want to remove any tooltip text, pass null as a parameter.

public voidsetVisible(boolean visible)
Toggles the visibility of the entry in the status bar.