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>
Immutable
Breadcrumb component.
A breadcrumb navigation. Contains an ordered list of IBreadcrumbitem.
- Since:
- 11.0.0
- Author:
- peaker
- See Also:
-
Breadcrumb
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIBreadcrumb.static classBuilds an updater of typeIBreadcrumbforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IBreadcrumbConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the maximum number of items to display before collapsing.default StringReturns the separator between items, or null when it was reset to the default.default StringReturns the client widget class.static IBreadcrumbof(Iterable<? extends IBreadcrumbitem> children) Returns the instance with the givenIBreadcrumbitemchildren.static IBreadcrumbof(IBreadcrumbitem... children) Returns the instance with the givenIBreadcrumbitemchildren.static IBreadcrumbReturns the instance with the given id.withMaxItems(int maxItems) Returns a copy ofthisimmutable component with the specifiedmaxItems.withSeparator(String separator) Returns a copy ofthisimmutable component with the specifiedseparator.Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildrenMethods 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, withWidgetOverridesMethods 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, withZIndexMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zul.wgt.Breadcrumb"- Specified by:
getWidgetClassin interfaceIComponent<IBreadcrumb>
-
getSeparator
Returns the separator between items, or null when it was reset to the default.Default:
"/". -
withSeparator
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, or null to reset to the default, asBreadcrumb.setSeparator(String)does.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
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
Returns the instance with the givenIBreadcrumbitemchildren.- Parameters:
children- The children ofIBreadcrumbitem
-
of
Returns the instance with the givenIBreadcrumbitemchildren.- Parameters:
children- The children ofIBreadcrumbitem
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-