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 theJBreadcrumbBar
model.
-
-
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 T
getData()
Icon
getIcon()
Returns the icon ofthis
item.int
getIndex()
Returns the index ofthis
item.String
getKey()
void
setIcon(Icon icon)
Sets the new icon onthis
item.void
setIndex(int index)
Sets the index ofthis
item.void
setKey(String key)
String
toString()
-
-
-
Method Detail
-
getKey
public String getKey()
-
getData
public T getData()
-
setKey
public void setKey(String key)
-
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.
-
getIcon
public Icon getIcon()
Returns the icon ofthis
item.- Returns:
- The icon of
this
item.
-
setIcon
public void setIcon(Icon icon)
Sets the new icon onthis
item.- Parameters:
icon
- The new icon forthis
item.
-
-