public class KnowledgeItem
extends java.lang.Object
Constructor and Description |
---|
KnowledgeItem(int knowledgeIndex,
@NotNull java.lang.String type,
@NotNull java.lang.String title,
int faceNum)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addKnowledgeItemListener(@NotNull KnowledgeItemListener listener)
Adds a
KnowledgeItemListener to be notified of changes. |
int |
getFaceNum()
Returns the face number.
|
int |
getKnowledgeIndex()
Returns the tag ID.
|
@NotNull java.lang.String |
getKnowledgeTitle()
Returns the description.
|
@NotNull java.lang.String |
getTooltipText()
Returns a description for this spell to be used in tooltips.
|
@NotNull java.lang.String |
getType()
Returns the knowledge's type.
|
void |
removeKnowledgeItemListener(@NotNull KnowledgeItemListener listener)
Removes a
KnowledgeItemListener to be notified of changes. |
@NotNull java.lang.String |
toString() |
public KnowledgeItem(int knowledgeIndex, @NotNull @NotNull java.lang.String type, @NotNull @NotNull java.lang.String title, int faceNum)
knowledgeIndex
- the knowledge identifiertype
- the knowledge's typetitle
- the descriptionfaceNum
- the face numberpublic int getKnowledgeIndex()
@NotNull public @NotNull java.lang.String getKnowledgeTitle()
public int getFaceNum()
@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object
@NotNull public @NotNull java.lang.String getTooltipText()
public void addKnowledgeItemListener(@NotNull @NotNull KnowledgeItemListener listener)
KnowledgeItemListener
to be notified of changes.listener
- the listener to addpublic void removeKnowledgeItemListener(@NotNull @NotNull KnowledgeItemListener listener)
KnowledgeItemListener
to be notified of changes.listener
- the listener to remove@NotNull public @NotNull java.lang.String getType()