org.pushingpixels.flamingo.api.bcb.core
Class BreadcrumbSvnSelector.PathCallback

java.lang.Object
  extended by org.pushingpixels.flamingo.api.bcb.BreadcrumbBarCallBack<java.lang.String>
      extended by org.pushingpixels.flamingo.api.bcb.core.BreadcrumbSvnSelector.PathCallback
Enclosing class:
BreadcrumbSvnSelector

public static class BreadcrumbSvnSelector.PathCallback
extends BreadcrumbBarCallBack<java.lang.String>

SVN-specific implementation of the BreadcrumbBarCallBack.


Field Summary
 
Fields inherited from class org.pushingpixels.flamingo.api.bcb.BreadcrumbBarCallBack
throwsExceptions
 
Constructor Summary
BreadcrumbSvnSelector.PathCallback(java.lang.String url, java.lang.String userName, java.lang.String password)
          Creates a new callback.
 
Method Summary
 java.io.InputStream getLeafContent(java.lang.String leaf)
          Returns the input stream with the leaf content.
 java.util.List<StringValuePair<java.lang.String>> getLeafs(java.util.List<BreadcrumbItem<java.lang.String>> path)
          Returns the choice element that corresponds to the specified path.
 java.util.List<StringValuePair<java.lang.String>> getPathChoices(java.util.List<BreadcrumbItem<java.lang.String>> path)
          Returns the choice element that corresponds to the specified path.
 void setup()
          Sets up the callback.
 
Methods inherited from class org.pushingpixels.flamingo.api.bcb.BreadcrumbBarCallBack
setThrowsExceptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BreadcrumbSvnSelector.PathCallback

public BreadcrumbSvnSelector.PathCallback(java.lang.String url,
                                          java.lang.String userName,
                                          java.lang.String password)
Creates a new callback.

Parameters:
url - Repository URL.
userName - User name.
password - Password.
Method Detail

setup

public void setup()
           throws BreadcrumbBarException
Description copied from class: BreadcrumbBarCallBack
Sets up the callback.

Overrides:
setup in class BreadcrumbBarCallBack<java.lang.String>
Throws:
BreadcrumbBarException - Runtime exception that wraps the cause. Is thrown only when BreadcrumbBarCallBack.setThrowsExceptions(boolean) has been called with true parameter.

getPathChoices

public java.util.List<StringValuePair<java.lang.String>> getPathChoices(java.util.List<BreadcrumbItem<java.lang.String>> path)
                                                                 throws BreadcrumbBarException
Description copied from class: BreadcrumbBarCallBack
Returns the choice element that corresponds to the specified path. If the path is empty, null should be returned. If path is null, the "root" elements should be returned

Overrides:
getPathChoices in class BreadcrumbBarCallBack<java.lang.String>
Parameters:
path - Breadcrumb bar path.
Returns:
The choice element that corresponds to the specified path
Throws:
BreadcrumbBarException - Runtime exception that wraps the cause. Is thrown only when BreadcrumbBarCallBack.setThrowsExceptions(boolean) has been called with true parameter.

getLeafs

public java.util.List<StringValuePair<java.lang.String>> getLeafs(java.util.List<BreadcrumbItem<java.lang.String>> path)
                                                           throws BreadcrumbBarException
Description copied from class: BreadcrumbBarCallBack
Returns the choice element that corresponds to the specified path. If the path is empty, null should be returned. If path is null, the "root" elements should be returned

Overrides:
getLeafs in class BreadcrumbBarCallBack<java.lang.String>
Parameters:
path - Breadcrumb bar path.
Returns:
The choice element that corresponds to the specified path
Throws:
BreadcrumbBarException - Runtime exception that wraps the cause. Is thrown only when BreadcrumbBarCallBack.setThrowsExceptions(boolean) has been called with true parameter.

getLeafContent

public java.io.InputStream getLeafContent(java.lang.String leaf)
                                   throws BreadcrumbBarException
Description copied from class: BreadcrumbBarCallBack
Returns the input stream with the leaf content. Some implementations may return null if this is not applicable.

Overrides:
getLeafContent in class BreadcrumbBarCallBack<java.lang.String>
Parameters:
leaf - Leaf.
Returns:
Input stream with the leaf content. May be null if this is not applicable.
Throws:
BreadcrumbBarException - Runtime exception that wraps the cause. Is thrown only when BreadcrumbBarCallBack.setThrowsExceptions(boolean) has been called with true parameter.