|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pushingpixels.flamingo.api.bcb.BreadcrumbItem<T>
T - Type of associated data.public final class BreadcrumbItem<T>
A single item in the JBreadcrumbBar model.
| Field Summary | |
|---|---|
protected T |
data
Data value for this item. |
protected String |
key
Display key for this item. |
| Constructor Summary | |
|---|---|
BreadcrumbItem(String s)
Creates a new item. |
|
BreadcrumbItem(String key,
T data)
Creates a new item. |
|
| Method Summary | |
|---|---|
T |
getData()
|
Icon |
getIcon()
Returns the icon of this item. |
int |
getIndex()
Returns the index of this item. |
String |
getKey()
|
void |
setIcon(Icon icon)
Sets the new icon on this item. |
void |
setIndex(int index)
Sets the index of this item. |
void |
setKey(String key)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String key
protected T data
| Constructor Detail |
|---|
public BreadcrumbItem(String key,
T data)
key - Item key.data - Item data.public BreadcrumbItem(String s)
s - String that will be used for display purposes.| Method Detail |
|---|
public String getKey()
public T getData()
public void setKey(String key)
public int getIndex()
this item.
this item.public void setIndex(int index)
this item.
index - The new index of this item.public String toString()
toString in class Objectpublic Icon getIcon()
this item.
this item.public void setIcon(Icon icon)
this item.
icon - The new icon for this item.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||