public class

DefaultMessage

extends Object
implements Message
java.lang.Object
   ↳ com.atlassian.confluence.util.message.DefaultMessage
Known Direct Subclasses

Class Overview

A global message

Summary

Public Constructors
DefaultMessage()
DefaultMessage(String text, String cssClass, boolean closable, boolean visible)
DefaultMessage(String text, String cssClass, boolean closable)
Constructor without explicit visible parameter.
DefaultMessage(String text, String cssClass)
Message will be shown a closable by default.
Public Methods
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)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.util.message.Message

Public Constructors

public DefaultMessage ()

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

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

Constructor without explicit visible parameter. Show will be set to true by default.

public DefaultMessage (String text, String cssClass)

Message will be shown a closable by default.

Public Methods

public String getCssClass ()

Gets the name of the CSS class associated with this message. The class name can be used to style the message

Returns
  • String name of the css class

public String getId ()

Get the unique ID for this message.

Returns
  • message id

public String getText ()

Get the text for this message

Returns
  • message text

public boolean isClosable ()

Determines whether the message can be closed

Returns
  • boolean

public boolean isVisible ()

Determines whether the message should be shown

Returns
  • boolean

public void setVisible (boolean visible)