public final class ChatEntryModelClass extends Object
Constructor and Description |
---|
ChatEntryModelClass(String labelParam,
de.lessvoid.nifty.render.NiftyImage iconParam)
Constructor excepting the line and the icon.
|
ChatEntryModelClass(String labelParam,
de.lessvoid.nifty.render.NiftyImage iconParam,
String style) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
de.lessvoid.nifty.render.NiftyImage |
getIcon()
Return the supplied icon.
|
String |
getLabel()
Return the supplied label.
|
String |
getStyle()
Returns the style of the current entry.
|
int |
hashCode() |
void |
setIcon(de.lessvoid.nifty.render.NiftyImage icon)
Supply a new icon which replaces the current one.
|
void |
setLabel(String label)
Set a new label to replace the current one.
|
void |
setStyle(String style)
Supply a new style which replaces the current one, null reverts to the
default style from the XML.
|
String |
toString() |
public ChatEntryModelClass(String labelParam, de.lessvoid.nifty.render.NiftyImage iconParam)
labelParam
- The label to put in the entry. This can be either a chat line or a player name.iconParam
- The icon to display in the entry, this one is optional.public String getLabel()
public void setLabel(String label)
label
- The new label.public de.lessvoid.nifty.render.NiftyImage getIcon()
public void setIcon(de.lessvoid.nifty.render.NiftyImage icon)
icon
- The icon.public String getStyle()
public void setStyle(String style)
style
- The new style.Copyright © 2013. All Rights Reserved.