Class BreadcrumbItem<T>
- java.lang.Object
-
- org.pushingpixels.flamingo.api.bcb.BreadcrumbItem<T>
-
- Type Parameters:
T- Type of associated data.
public final class BreadcrumbItem<T> extends Object
A single item in theJBreadcrumbBarmodel.
-
-
Constructor Summary
Constructors Constructor Description BreadcrumbItem(String s)Creates a new item.BreadcrumbItem(String key, T data)Creates a new item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetData()IcongetIcon()Returns the icon ofthisitem.intgetIndex()Returns the index ofthisitem.StringgetKey()voidsetIcon(Icon icon)Sets the new icon onthisitem.voidsetIndex(int index)Sets the index ofthisitem.voidsetKey(String key)StringtoString()
-
-
-
Method Detail
-
getKey
public String getKey()
-
getData
public T getData()
-
setKey
public void setKey(String key)
-
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.
-
getIcon
public Icon getIcon()
Returns the icon ofthisitem.- Returns:
- The icon of
thisitem.
-
setIcon
public void setIcon(Icon icon)
Sets the new icon onthisitem.- Parameters:
icon- The new icon forthisitem.
-
-