public class TooltipInfo extends Object
Constructor and Description |
---|
TooltipInfo()
Constructs a new tooltip info instance.
|
TooltipInfo(String tooltip)
Constructs a new tooltip info instance.
|
TooltipInfo(String tooltip,
String errorMessage)
Constructs a new tooltip info instance.
|
TooltipInfo(String tooltip,
String errorMessage,
Object identifier)
Constructs a new tooltip info instance.
|
TooltipInfo(String tooltip,
String errorMessage,
Object identifier,
ErrorLevel errorLevel)
Constructs a new tooltip info instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(TooltipInfo other)
Indicates whether another tooltip info instance is equal to this one.
|
ContentMode |
getContentMode()
Gets the tooltip title's content mode.
|
ErrorLevel |
getErrorLevel()
Gets the error level.
|
String |
getErrorMessage()
Gets the error message.
|
Object |
getIdentifier()
Gets the tooltip's identifier.
|
String |
getTitle()
Gets the tooltip title.
|
boolean |
hasMessage()
Checks is a message has been defined for the tooltip.
|
void |
setContentMode(ContentMode contentMode)
Sets the tooltip title's content mode.
|
void |
setErrorLevel(ErrorLevel errorLevel)
Sets the error level.
|
void |
setErrorMessage(String errorMessage)
Sets the error message.
|
void |
setIdentifier(Object identifier)
Sets the tooltip's identifier.
|
void |
setTitle(String title)
Sets the tooltip title.
|
public TooltipInfo()
public TooltipInfo(String tooltip)
tooltip
- tooltip titlepublic TooltipInfo(String tooltip, String errorMessage)
tooltip
- tooltip titleerrorMessage
- error messagepublic TooltipInfo(String tooltip, String errorMessage, Object identifier)
tooltip
- tooltip titleerrorMessage
- error messageidentifier
- the tooltip's identifierpublic TooltipInfo(String tooltip, String errorMessage, Object identifier, ErrorLevel errorLevel)
tooltip
- tooltip titleerrorMessage
- error messageidentifier
- the tooltip's identifiererrorLevel
- error levelpublic void setIdentifier(Object identifier)
identifier
- the identifier to setpublic Object getIdentifier()
public String getTitle()
public void setTitle(String title)
title
- the title to setpublic String getErrorMessage()
public void setErrorMessage(String errorMessage)
errorMessage
- the error message to setpublic ErrorLevel getErrorLevel()
public void setErrorLevel(ErrorLevel errorLevel)
errorLevel
- the error level to setpublic boolean hasMessage()
public boolean equals(TooltipInfo other)
other
- the reference tooltip info instance with which to comparetrue
if the instances are equal, false
otherwisepublic ContentMode getContentMode()
public void setContentMode(ContentMode contentMode)
contentMode
- the content mode to setCopyright © 2019 Vaadin Ltd. All rights reserved.