Class LabelBreadcrumb

  extended by com.atlassian.confluence.util.breadcrumbs.AbstractBreadcrumb
      extended by com.atlassian.confluence.util.breadcrumbs.AbstractActionBreadcrumb
          extended by com.atlassian.confluence.util.breadcrumbs.AbstractSpaceActionBreadcrumb
              extended by com.atlassian.confluence.util.breadcrumbs.LabelBreadcrumb
All Implemented Interfaces:

public class LabelBreadcrumb
extends AbstractSpaceActionBreadcrumb

Represents Label breadcrumbs. Handles all Label actions, including listing and viewing. A crumb of "Labels" always occurs and is just text (see examples below).

Examples: If viewing a global label: "Dashboard > Labels > labelOne" If viewing a space label: "Dashboard > Demo Space > Browse Space > Labels > labelOne"

Field Summary
Fields inherited from class com.atlassian.confluence.util.breadcrumbs.AbstractSpaceActionBreadcrumb
Fields inherited from class com.atlassian.confluence.util.breadcrumbs.AbstractActionBreadcrumb
Fields inherited from class com.atlassian.confluence.util.breadcrumbs.AbstractBreadcrumb
displayTitle, target, title, tooltip
Constructor Summary
LabelBreadcrumb(com.opensymphony.xwork.Action action, DisplayableLabel label, Space space)
          Label crumbs are sequenced a little differently than normal (where ContentActionBreadcrumbs typically come last).
Method Summary
protected  List getMyCrumbs()
          Returns a list of breadcrumbs for the current breadcrumb.
 Breadcrumb getParent()
          Gets the parent breadcrumb.
Methods inherited from class com.atlassian.confluence.util.breadcrumbs.AbstractBreadcrumb
getBreadcrumbsTrail, getDisplayTitle, getTarget, getTitle, getTooltip, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public LabelBreadcrumb(com.opensymphony.xwork.Action action,
                       DisplayableLabel label,
                       Space space)
Label crumbs are sequenced a little differently than normal (where ContentActionBreadcrumbs typically come last). Space labels can only be viewed via the browse space tab so it's crumbs will look something like: Browse Space > Labels > LabelName

Method Detail


protected List getMyCrumbs()
Description copied from class: AbstractBreadcrumb
Returns a list of breadcrumbs for the current breadcrumb. For example, the BlogPostBreadcrumb overrides this method and returns 4 crumbs altogether to represent itself: 2007 > 11 > 28 > BlogTitle. By default my crumbs will be a list with size 1, containing itself.

getMyCrumbs in class AbstractBreadcrumb


public Breadcrumb getParent()
Description copied from class: AbstractBreadcrumb
Gets the parent breadcrumb. By default the dashboard breadcrumb is returned.

Specified by:
getParent in class AbstractBreadcrumb
the parent breadcrumb.

Copyright © 2003-2012 Atlassian. All Rights Reserved.