Class BreadcrumbItem<T>
java.lang.Object
org.pushingpixels.flamingo.api.bcb.BreadcrumbItem<T>
- Type Parameters:
T
- Type of associated data.
A single item in the
JBreadcrumbBar
model.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
key
Display key for this item. -
data
Data value for this item.
-
-
Constructor Details
-
BreadcrumbItem
Creates a new item.- Parameters:
key
- Item key.data
- Item data.
-
BreadcrumbItem
Creates a new item.- Parameters:
s
- String that will be used for display purposes.
-
-
Method Details
-
getKey
-
getData
-
setKey
-
getIndex
public int getIndex()Returns the index ofthis
item.- Returns:
- The index of
this
item.
-
setIndex
public void setIndex(int index) Sets the index ofthis
item.- Parameters:
index
- The new index ofthis
item.
-
toString
-
getIcon
Returns the icon ofthis
item.- Returns:
- The icon of
this
item.
-
setIcon
Sets the new icon onthis
item.- Parameters:
icon
- The new icon forthis
item.
-