Package org.zkoss.stateless.sul
Interface IBreadcrumb
-
- All Superinterfaces:
IAnyGroup<IBreadcrumb>,IChildable<IBreadcrumb,IBreadcrumbitem>,IComponent<IBreadcrumb>,IHtmlBasedComponent<IBreadcrumb>,IXulElement<IBreadcrumb>
public interface IBreadcrumb extends IXulElement<IBreadcrumb>, IChildable<IBreadcrumb,IBreadcrumbitem>, IAnyGroup<IBreadcrumb>
ImmutableBreadcrumbcomponent.A breadcrumb navigation. Contains an ordered list of
IBreadcrumbitem.- Since:
- 11.0.0
- Author:
- peaker
- See Also:
Breadcrumb
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIBreadcrumb.BuilderBuilds instances of typeIBreadcrumb.static classIBreadcrumb.UpdaterBuilds an updater of typeIBreadcrumbforUiAgent.smartUpdate(Locator, SmartUpdater).
-
Field Summary
Fields Modifier and Type Field Description static IBreadcrumbDEFAULTConstant for default attributes of this immutable component.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetMaxItems()Returns the maximum number of items to display before collapsing.default java.lang.StringgetSeparator()Returns the separator between items.default java.lang.StringgetWidgetClass()Returns the client widget class.static IBreadcrumbof(java.lang.Iterable<? extends IBreadcrumbitem> children)Returns the instance with the givenIBreadcrumbitemchildren.static IBreadcrumbof(IBreadcrumbitem... children)Returns the instance with the givenIBreadcrumbitemchildren.static IBreadcrumbofId(java.lang.String id)Returns the instance with the given id.IBreadcrumbwithMaxItems(int maxItems)Returns a copy ofthisimmutable component with the specifiedmaxItems.IBreadcrumbwithSeparator(java.lang.String separator)Returns a copy ofthisimmutable component with the specifiedseparator.-
Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildren
-
Methods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverrides
-
Methods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndex
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Field Detail
-
DEFAULT
static final IBreadcrumb DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
getWidgetClass
default java.lang.String getWidgetClass()
Returns the client widget class.Default:
"zul.wgt.Breadcrumb"- Specified by:
getWidgetClassin interfaceIComponent<IBreadcrumb>
-
getSeparator
default java.lang.String getSeparator()
Returns the separator between items.Default:
"/".
-
withSeparator
IBreadcrumb withSeparator(java.lang.String separator)
Returns a copy ofthisimmutable component with the specifiedseparator.Sets the separator. Also accepts icon form:
"icon:z-icon-chevron-right".- Parameters:
separator- the separator between items.Default:
"/".- Returns:
- A modified copy of the
thisobject
-
getMaxItems
default int getMaxItems()
Returns the maximum number of items to display before collapsing.Default:
0(no limit).
-
withMaxItems
IBreadcrumb withMaxItems(int maxItems)
Returns a copy ofthisimmutable component with the specifiedmaxItems.Sets the maximum number of items to display before collapsing.
Use
0to disable collapse (default). A non-zero value must be>= 2— the collapse always keeps the first and last item, somaxItems = 1cannot actually hide anything and is rejected.- Parameters:
maxItems- the maximum number of items to display before collapsing.Default:
0.- Returns:
- A modified copy of the
thisobject - Throws:
org.zkoss.zk.ui.WrongValueException- ifmaxItemsis negative or equal to 1.
-
of
static IBreadcrumb of(java.lang.Iterable<? extends IBreadcrumbitem> children)
Returns the instance with the givenIBreadcrumbitemchildren.- Parameters:
children- The children ofIBreadcrumbitem
-
of
static IBreadcrumb of(IBreadcrumbitem... children)
Returns the instance with the givenIBreadcrumbitemchildren.- Parameters:
children- The children ofIBreadcrumbitem
-
ofId
static IBreadcrumb ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
-