org.gudy.azureus2.ui.swt.shells
Class MessageSlideShell

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.shells.MessageSlideShell

public class MessageSlideShell
extends java.lang.Object

+=====================================+ | +----+ | | |Icon| Big Bold Title | | +----+ | | Wrapping message text | | with optional URL links | | +-----+ | | |BGImg| XX more slideys.. | | | Icon| Closing in XX secs | | +-----+ [HideAll] [Details] [Hide] | +=====================================+

Author:
TuxPaper

Nested Class Summary
static class MessageSlideShell.PopupParams
           
 
Field Summary
protected  org.eclipse.swt.graphics.Color colorURL
           
 
Constructor Summary
MessageSlideShell(org.eclipse.swt.widgets.Display display, int iconID, java.lang.String keyPrefix, java.lang.String details, java.lang.String[] textParams, int timeoutSecs)
          Open a popup using resource keys for title/text
MessageSlideShell(org.eclipse.swt.widgets.Display display, int iconID, java.lang.String keyPrefix, java.lang.String details, java.lang.String[] textParams, java.lang.Object[] relatedObjects, int timeoutSecs)
           
MessageSlideShell(org.eclipse.swt.widgets.Display display, int iconID, java.lang.String title, java.lang.String text, java.lang.String details, int timeoutSecs)
           
MessageSlideShell(org.eclipse.swt.widgets.Display display, int iconID, java.lang.String title, java.lang.String text, java.lang.String details, java.lang.Object[] relatedObjects, int timeoutSecs)
          Open Mr Slidey
 
Method Summary
static void displayLastMessage(org.eclipse.swt.widgets.Display display, boolean last_unread)
           
 org.eclipse.swt.graphics.Color getColorFG()
           
 org.eclipse.swt.graphics.Color getUrlColor()
           
static void main(java.lang.String[] args)
          Test
static void recordMessage(int iconID, java.lang.String title, java.lang.String text, java.lang.String details, java.lang.Object[] relatedTo, int timeoutSecs)
          Adds this message to the slide shell without forcing it to be displayed.
 void setColorFG(org.eclipse.swt.graphics.Color colorFG)
           
 void setUrlColor(org.eclipse.swt.graphics.Color urlColor)
           
static void test(org.eclipse.swt.widgets.Display display)
           
static void waitUntilClosed()
          Waits until all slideys are closed before returning to caller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colorURL

protected org.eclipse.swt.graphics.Color colorURL
Constructor Detail

MessageSlideShell

public MessageSlideShell(org.eclipse.swt.widgets.Display display,
                         int iconID,
                         java.lang.String keyPrefix,
                         java.lang.String details,
                         java.lang.String[] textParams,
                         int timeoutSecs)
Open a popup using resource keys for title/text

Parameters:
display - Display to create the shell on
iconID - SWT.ICON_* constant for icon in top left
keyPrefix - message bundle key prefix used to get title and text. Title will be keyPrefix + ".title", and text will be set to keyPrefix + ".text"
details - actual text for details (not a key)
textParams - any parameters for text

MessageSlideShell

public MessageSlideShell(org.eclipse.swt.widgets.Display display,
                         int iconID,
                         java.lang.String keyPrefix,
                         java.lang.String details,
                         java.lang.String[] textParams,
                         java.lang.Object[] relatedObjects,
                         int timeoutSecs)
Parameters:
display -
iconID -
keyPrefix -
details -
textParams -
relatedObjects -
timeoutSecs - = -1 -> use default timeout, 0 -> no timeout, other -> timeout in secs

MessageSlideShell

public MessageSlideShell(org.eclipse.swt.widgets.Display display,
                         int iconID,
                         java.lang.String title,
                         java.lang.String text,
                         java.lang.String details,
                         int timeoutSecs)

MessageSlideShell

public MessageSlideShell(org.eclipse.swt.widgets.Display display,
                         int iconID,
                         java.lang.String title,
                         java.lang.String text,
                         java.lang.String details,
                         java.lang.Object[] relatedObjects,
                         int timeoutSecs)
Open Mr Slidey

Parameters:
display - Display to create the shell on
iconID - SWT.ICON_* constant for icon in top left
title - Text to put in the title
text - Text to put in the body
details - Text displayed when the Details button is pressed. Null for disabled Details button.
timeoutSecs - = -1 -> use default timeout, 0 -> no timeout, other -> timeout in secs
Method Detail

displayLastMessage

public static void displayLastMessage(org.eclipse.swt.widgets.Display display,
                                      boolean last_unread)

recordMessage

public static void recordMessage(int iconID,
                                 java.lang.String title,
                                 java.lang.String text,
                                 java.lang.String details,
                                 java.lang.Object[] relatedTo,
                                 int timeoutSecs)
Adds this message to the slide shell without forcing it to be displayed.

Parameters:
relatedTo -

waitUntilClosed

public static void waitUntilClosed()
Waits until all slideys are closed before returning to caller.


main

public static void main(java.lang.String[] args)
Test

Parameters:
args -

test

public static void test(org.eclipse.swt.widgets.Display display)

getUrlColor

public org.eclipse.swt.graphics.Color getUrlColor()

setUrlColor

public void setUrlColor(org.eclipse.swt.graphics.Color urlColor)

getColorFG

public org.eclipse.swt.graphics.Color getColorFG()

setColorFG

public void setColorFG(org.eclipse.swt.graphics.Color colorFG)