Package org.zkoss.stateless.sul
Interface IBreadcrumbitem
- All Superinterfaces:
IChildrenOfInputgroup<IBreadcrumbitem>,IComponent<IBreadcrumbitem>,IDisable<IBreadcrumbitem>,IHtmlBasedComponent<IBreadcrumbitem>,ILabelElement<IBreadcrumbitem>,ILabelImageElement<IBreadcrumbitem>,IXulElement<IBreadcrumbitem>
public interface IBreadcrumbitem
extends ILabelImageElement<IBreadcrumbitem>, IDisable<IBreadcrumbitem>
Immutable
Breadcrumbitem component.
A single entry in an IBreadcrumb.
- Since:
- 11.0.0
- Author:
- peaker
- See Also:
-
Breadcrumbitem
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIBreadcrumbitem.static classBuilds an updater of typeIBreadcrumbitemforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IBreadcrumbitemConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetHref()Returns the navigation target URL.default StringReturns the browsing context target (e.g.,"_blank").default StringReturns the client widget class.static IBreadcrumbitemReturns the instance with the given label.static IBreadcrumbitemReturns the instance with the given label and href.static IBreadcrumbitemReturns the instance with the given id.Returns a copy ofthisimmutable component with the specifiedhref.withTarget(String target) Returns a copy ofthisimmutable component with the specifiedtarget.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, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IDisable
isDisabled, withDisabledMethods 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.ILabelElement
getLabel, withLabelMethods inherited from interface org.zkoss.stateless.sul.ILabelImageElement
getHoverImage, getIconSclass, getIconSclasses, getIconTooltip, getIconTooltips, getImage, isPreloadImage, withHoverImage, withIconSclass, withIconSclasses, withIconTooltip, withIconTooltips, withImage, withPreloadImageMethods 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.Breadcrumbitem"- Specified by:
getWidgetClassin interfaceIComponent<IBreadcrumbitem>
-
getHref
Returns the navigation target URL.Default:
null. Whennull, the item renders as plain text (typically the last item). -
withHref
Returns a copy ofthisimmutable component with the specifiedhref.Sets the navigation target URL.
Note:
UiAgent.smartUpdate(Locator, SmartUpdater)is not supported for this property —IBreadcrumbitem.Updaterships the raw attribute while the initial render ships theExecution#encodeURLform. Push a whole component withUiAgent.replaceWith(Locator, IComponent)instead.- Parameters:
href- the URL the item links to; whennullthe item renders as plain text.Default:
null.- Returns:
- A modified copy of the
thisobject - Throws:
org.zkoss.zk.ui.WrongValueException- ifhrefuses an unsafe scheme (javascript:, vbscript:, blob:, filesystem:, or a non-image data: URI).
-
getTarget
Returns the browsing context target (e.g.,"_blank").Default:
null. -
withTarget
Returns a copy ofthisimmutable component with the specifiedtarget.Sets the browsing context target (e.g.,
"_blank").- Parameters:
target- the target browsing context.Default:
null.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given label.- Parameters:
label- The label of the breadcrumb item
-
of
Returns the instance with the given label and href.- Parameters:
label- The label of the breadcrumb itemhref- The URL the breadcrumb item links to
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-