public class ItemTooltipEvent extends ItemEvent
itemTooltipDisplaying event.| Constructor and Description |
|---|
ItemTooltipEvent(java.lang.Object source,
Item item,
java.lang.String tooltip)
Initializes a new instance of the
ItemTooltipEvent class. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getTooltip()
Gets the tooltip of the item.
|
void |
setTooltip(java.lang.String value)
Sets the tooltip of the item.
|
public ItemTooltipEvent(java.lang.Object source,
Item item,
java.lang.String tooltip)
ItemTooltipEvent class.public java.lang.String getTooltip()
public void setTooltip(java.lang.String value)
Change this value if you need to override the default tool tip text.
value - A string specifying the item's tool tip.