public class DefaultMessage extends Object implements Message
| Constructor and Description |
|---|
DefaultMessage()
Default constructor
|
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) |
DefaultMessage(String id,
String text,
String cssClass,
boolean closable) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public DefaultMessage()
public DefaultMessage(String text, String cssClass, boolean closable, boolean visible)
text - the content of the messagecssClass - additional CSS classesclosable - show a close button if truevisible - true if the message should be visiblepublic DefaultMessage(String id, String text, String cssClass, boolean closable)
id - the ID of the HTML elementtext - the content of the messagecssClass - additional CSS classesclosable - show a close button if truepublic DefaultMessage(String text, String cssClass, boolean closable)
text - the content of the messagecssClass - additional CSS classesclosable - show a close button if truepublic String getId()
Messagepublic String getText()
Messagepublic String getCssClass()
MessagegetCssClass in interface Messagepublic boolean isClosable()
MessageisClosable in interface Messagepublic boolean isVisible()
Messagepublic void setVisible(boolean visible)
Copyright © 2003–2021 Atlassian. All rights reserved.