Spiffy UI Framework

org.spiffyui.client.widgets
Class LongMessage

java.lang.Object
  extended by FlowPanel
      extended by org.spiffyui.client.widgets.LongMessage

public class LongMessage
extends FlowPanel

A class for showing messages that are wordy and take more than a few seconds to read.


Constructor Summary
LongMessage()
          Create a new LongMessage Panel with a randomly generated ID
LongMessage(java.lang.String id)
          Create a new LongMessage panel with the specified ID
 
Method Summary
 void clear()
          Clears the error panel.
 java.lang.String getHTML()
          Get the current HTML conents of this long message.
static java.lang.String joinNames(java.util.List<java.lang.String> list)
          Join a list of Strings together for display with the default delimiter
static java.lang.String joinNames(java.util.List<java.lang.String> list, java.lang.String delim, boolean sort)
          Join a list of Strings together for display using a delimiter
 void onPreviewNativeEvent(NativePreviewEvent event)
           
 void setCloseButtonTitle(java.lang.String title)
          Set the title (tooltip) text of the close button on the LongMessage
 void setHTML(java.lang.String message)
          Sets a message as HTML in the panel and makes it visible
 void setText(java.lang.String message)
          Sets a message in the panel and makes it visible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongMessage

public LongMessage()
Create a new LongMessage Panel with a randomly generated ID


LongMessage

public LongMessage(java.lang.String id)
Create a new LongMessage panel with the specified ID

Parameters:
id - - the unique ID of this element
Method Detail

setCloseButtonTitle

public void setCloseButtonTitle(java.lang.String title)
Set the title (tooltip) text of the close button on the LongMessage

Parameters:
title - the title

setText

public void setText(java.lang.String message)
Sets a message in the panel and makes it visible

Parameters:
message - the message String

setHTML

public void setHTML(java.lang.String message)
Sets a message as HTML in the panel and makes it visible

Parameters:
message - the message

getHTML

public java.lang.String getHTML()
Get the current HTML conents of this long message.

Returns:
the html contents

clear

public void clear()
Clears the error panel. This method will make the panel invisible.


onPreviewNativeEvent

public void onPreviewNativeEvent(NativePreviewEvent event)

joinNames

public static java.lang.String joinNames(java.util.List<java.lang.String> list)
Join a list of Strings together for display with the default delimiter

Parameters:
list - - the list of Strings
Returns:
- a String concatenation of names

joinNames

public static java.lang.String joinNames(java.util.List<java.lang.String> list,
                                         java.lang.String delim,
                                         boolean sort)
Join a list of Strings together for display using a delimiter

Parameters:
list - - the list of Strings
delim - - the delimiter
sort - - whether or not to sort the list
Returns:
- a String concatenation of names

Spiffy UI Framework