public interface CategoryBrowser
Modifier and Type | Method and Description |
---|---|
boolean |
accept(CategoryBrowserContext ctx)
Returns true if the Category Browser proposes to browse this cateogy.
|
java.lang.String |
getIcon(CategoryBrowserContext ctx)
Returns the icon of the Category Browser.
|
java.lang.String |
getLabel(CategoryBrowserContext ctx)
Return the label used in the dropdown menu.
|
default java.lang.String |
getLinkAttributes()
Returns HTML attributes to add to the link.
|
default java.lang.String |
getLinkCss()
Returns CSS classes to add to the link.
|
java.lang.String |
getUrl(CategoryBrowserContext ctx)
Returns the URL to browse the category
|
default boolean |
isExclusive(CategoryBrowserContext ctx)
Returns true if this CategoryBrowser must be the only one to be displayed.
|
boolean accept(CategoryBrowserContext ctx)
ctx
- the Category Browser contextjava.lang.String getUrl(CategoryBrowserContext ctx)
ctx
- the Category Browser contextjava.lang.String getLabel(CategoryBrowserContext ctx)
ctx
- the Category Browser contextjava.lang.String getIcon(CategoryBrowserContext ctx)
ctx
- the Category Browser contextdefault java.lang.String getLinkCss()
default java.lang.String getLinkAttributes()
default boolean isExclusive(CategoryBrowserContext ctx)
ctx
- the Category Browser contextCopyright © 2001-2021 Jalios SA. All Rights Reserved.