|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.controls.chatcontrol.ChatEntryModelClass
public final class ChatEntryModelClass
Handles a line in the chat controller. This can be either a chat line or an entry in the list of players.
Constructor Summary | |
---|---|
ChatEntryModelClass(String labelParam,
NiftyImage iconParam)
Constructor excepting the line and the icon. |
|
ChatEntryModelClass(String labelParam,
NiftyImage iconParam,
String style)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
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(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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChatEntryModelClass(String labelParam, 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 ChatEntryModelClass(String labelParam, NiftyImage iconParam, String style)
Method Detail |
---|
public String toString()
toString
in class Object
public String getLabel()
public void setLabel(String label)
label
- The new label.public NiftyImage getIcon()
public void setIcon(NiftyImage icon)
icon
- The icon.public String getStyle()
public void setStyle(String style)
style
- The new style.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |