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 ofthisitem.- Returns:
- The index of
thisitem.
-
setIndex
public void setIndex(int index) Sets the index ofthisitem.- Parameters:
index- The new index ofthisitem.
-
toString
-
getIcon
Returns the icon ofthisitem.- Returns:
- The icon of
thisitem.
-
setIcon
Sets the new icon onthisitem.- Parameters:
icon- The new icon forthisitem.
-