org.pushingpixels.flamingo.api.bcb
T
- Type of associated data.public final class BreadcrumbItem<T> extends Object
JBreadcrumbBar
model.Modifier and Type | Field and Description |
---|---|
protected T |
data
Data value for this item.
|
protected String |
key
Display key for this item.
|
Constructor and Description |
---|
BreadcrumbItem(String s)
Creates a new item.
|
BreadcrumbItem(String key,
T data)
Creates a new item.
|
Modifier and Type | Method and Description |
---|---|
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() |
protected String key
protected T data
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.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 Icon getIcon()
this
item.this
item.public void setIcon(Icon icon)
this
item.icon
- The new icon for this
item.