org.jvnet.flamingo.bcb.ui
Class BreadcrumbItemChoices<T>

java.lang.Object
  extended by org.jvnet.flamingo.bcb.ui.BreadcrumbItemChoices<T>

public final class BreadcrumbItemChoices<T>
extends java.lang.Object

This is the model for the popup that is shown by clicking on the path selector.


Constructor Summary
BreadcrumbItemChoices(BreadcrumbItem ancestor, java.util.List<StringValuePair<T>> entries)
           
 
Method Summary
 BreadcrumbItem getAncestor()
           
 BreadcrumbItem[] getChoices()
          Returns the item array of truehis element.
 int getIndex()
          Returns the index of this element.
 int getPosition(java.lang.String s)
          Returns the 0-based index of the first BreadcrumbItem whose display name matches the specified string.
 void setIndex(int index)
          Sets the index of this element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BreadcrumbItemChoices

public BreadcrumbItemChoices(BreadcrumbItem ancestor,
                             java.util.List<StringValuePair<T>> entries)
Method Detail

getPosition

public int getPosition(java.lang.String s)
Returns the 0-based index of the first BreadcrumbItem whose display name matches the specified string.

Parameters:
s - String.
Returns:
The 0-based index of the first BreadcrumbItem whose display name matches the specified string.

getIndex

public int getIndex()
Returns the index of this element.

Returns:
The index of this element.

setIndex

public void setIndex(int index)
Sets the index of this element.

Parameters:
index - The new index of this element.

getChoices

public BreadcrumbItem[] getChoices()
Returns the item array of truehis element.

Returns:
The item array of truehis element.

getAncestor

public BreadcrumbItem getAncestor()