public class DefaultInfoConfig extends InfoConfig
Info
which supports a title and text.Modifier and Type | Class and Description |
---|---|
static interface |
DefaultInfoConfig.DefaultInfoConfigAppearance |
InfoConfig.InfoPosition
Constructor and Description |
---|
DefaultInfoConfig(DefaultInfoConfig.DefaultInfoConfigAppearance appearance,
SafeHtml titleHtml,
SafeHtml messageHtml)
Creates a new config for an Info to display.
|
DefaultInfoConfig(DefaultInfoConfig.DefaultInfoConfigAppearance appearance,
String titleText,
String messageText)
Creates a new config for an Info to display.
|
DefaultInfoConfig(SafeHtml titleText,
SafeHtml messageText)
Creates a new config for an Info to display.
|
DefaultInfoConfig(String titleText,
String messageText)
Creates a new config for an Info to display.
|
Modifier and Type | Method and Description |
---|---|
DefaultInfoConfig.DefaultInfoConfigAppearance |
getAppearance() |
SafeHtml |
getMessage() |
SafeHtml |
getTitle() |
protected SafeHtml |
render(Info info) |
void |
setMessage(SafeHtml message) |
void |
setMessage(String message) |
void |
setTitle(SafeHtml title) |
void |
setTitle(String title) |
getDisplay, getHeight, getHideHandler, getMargin, getPosition, getShowHandler, getWidth, setDisplay, setHeight, setHideHandler, setMargin, setPosition, setShowHandler, setWidth
public DefaultInfoConfig(String titleText, String messageText)
titleText
- the title textmessageText
- the message textpublic DefaultInfoConfig(SafeHtml titleText, SafeHtml messageText)
titleText
- the title as HTMLmessageText
- the message as HTMLpublic DefaultInfoConfig(DefaultInfoConfig.DefaultInfoConfigAppearance appearance, String titleText, String messageText)
appearance
- the appearance to usetitleText
- the title textmessageText
- the message textpublic DefaultInfoConfig(DefaultInfoConfig.DefaultInfoConfigAppearance appearance, SafeHtml titleHtml, SafeHtml messageHtml)
appearance
- the appearance to usetitleHtml
- the title as HTMLmessageHtml
- the message as HTMLpublic DefaultInfoConfig.DefaultInfoConfigAppearance getAppearance()
public SafeHtml getMessage()
public SafeHtml getTitle()
public void setMessage(String message)
public void setTitle(String title)
public void setTitle(SafeHtml title)
public void setMessage(SafeHtml message)
protected SafeHtml render(Info info)
render
in class InfoConfig
Copyright © 2018. All rights reserved.