|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.slashie.libjcsi.textcomponents.BasicListItem
public class BasicListItem
This provides for an easy way to output into a list, useful for inventory.
Constructor Summary | |
---|---|
BasicListItem(char index,
int indexColor,
java.lang.String data)
Constructor that sets all variables. |
Method Summary | |
---|---|
char |
getIndex()
|
int |
getIndexColor()
|
java.lang.String |
getRow()
|
void |
setIndex(char index)
Sets the char to use as an index in the list. |
void |
setIndexColor(int indexColor)
Sets the color of the index. |
void |
setRow(java.lang.String data)
Sets the String to be contained. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicListItem(char index, int indexColor, java.lang.String data)
index
- the char to use as an indexindexColor
- the color to display the list itemdata
- the String displayedMethod Detail |
---|
public java.lang.String getRow()
getRow
in interface ListItem
public void setRow(java.lang.String data)
data
- String to be containedpublic void setIndex(char index)
index
- char to be usedpublic void setIndexColor(int indexColor)
indexColor
- int colorpublic char getIndex()
getIndex
in interface ListItem
public int getIndexColor()
getIndexColor
in interface ListItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |