com.atlassian.confluence.util.message
Class DefaultMessage

java.lang.Object
  extended by com.atlassian.confluence.util.message.DefaultMessage
All Implemented Interfaces:
Message
Direct Known Subclasses:
WebSudoMessage

public class DefaultMessage
extends Object
implements Message

A global message


Constructor Summary
DefaultMessage()
           
DefaultMessage(String text, String cssClass)
          Message will be shown a closable by default.
DefaultMessage(String text, String cssClass, boolean closable)
          Constructor without explicit visible parameter.
DefaultMessage(String text, String cssClass, boolean closable, boolean visible)
           
 
Method Summary
 String getCssClass()
          Gets the name of the CSS class associated with this message.
 String getId()
          Get the unique ID for this message.
 String getText()
          Get the text for this message
 boolean isClosable()
          Determines whether the message can be closed
 boolean isVisible()
          Determines whether the message should be shown
 void setVisible(boolean visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessage

public DefaultMessage()

DefaultMessage

public DefaultMessage(String text,
                      String cssClass,
                      boolean closable,
                      boolean visible)

DefaultMessage

public DefaultMessage(String text,
                      String cssClass,
                      boolean closable)
Constructor without explicit visible parameter. Show will be set to true by default.

Parameters:
text -
cssClass -
closable -

DefaultMessage

public DefaultMessage(String text,
                      String cssClass)
Message will be shown a closable by default.

Parameters:
text -
cssClass -
Method Detail

getId

public String getId()
Description copied from interface: Message
Get the unique ID for this message.

Specified by:
getId in interface Message
Returns:
message id

getText

public String getText()
Description copied from interface: Message
Get the text for this message

Specified by:
getText in interface Message
Returns:
message text

getCssClass

public String getCssClass()
Description copied from interface: Message
Gets the name of the CSS class associated with this message. The class name can be used to style the message

Specified by:
getCssClass in interface Message
Returns:
String name of the css class

isClosable

public boolean isClosable()
Description copied from interface: Message
Determines whether the message can be closed

Specified by:
isClosable in interface Message
Returns:
boolean

isVisible

public boolean isVisible()
Description copied from interface: Message
Determines whether the message should be shown

Specified by:
isVisible in interface Message
Returns:
boolean

setVisible

public void setVisible(boolean visible)


Copyright © 2003–2015 Atlassian. All rights reserved.