Interface IBreadcrumbitem

    • Field Detail

      • DEFAULT

        static final IBreadcrumbitem 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.Breadcrumbitem"

        Specified by:
        getWidgetClass in interface IComponent<IBreadcrumbitem>
      • getHref

        @Nullable
        default java.lang.String getHref()
        Returns the navigation target URL.

        Default: null. When null, the item renders as plain text (typically the last item).

      • withHref

        IBreadcrumbitem withHref​(@Nullable
                                 java.lang.String href)
        Returns a copy of this immutable component with the specified href.

        Sets the navigation target URL.

        Note: UiAgent.smartUpdate(Locator, SmartUpdater) is not supported for this property — IBreadcrumbitem.Updater ships the raw attribute while the initial render ships the Execution#encodeURL form. Push a whole component with UiAgent.replaceWith(Locator, IComponent) instead.

        Parameters:
        href - the URL the item links to; when null the item renders as plain text.

        Default: null.

        Returns:
        A modified copy of the this object
        Throws:
        org.zkoss.zk.ui.WrongValueException - if href uses an unsafe scheme (javascript:, vbscript:, blob:, filesystem:, or a non-image data: URI).
      • getTarget

        @Nullable
        default java.lang.String getTarget()
        Returns the browsing context target (e.g., "_blank").

        Default: null.

      • withTarget

        IBreadcrumbitem withTarget​(@Nullable
                                   java.lang.String target)
        Returns a copy of this immutable component with the specified target.

        Sets the browsing context target (e.g., "_blank").

        Parameters:
        target - the target browsing context.

        Default: null.

        Returns:
        A modified copy of the this object
      • of

        static IBreadcrumbitem of​(java.lang.String label)
        Returns the instance with the given label.
        Parameters:
        label - The label of the breadcrumb item
      • of

        static IBreadcrumbitem of​(java.lang.String label,
                                  java.lang.String href)
        Returns the instance with the given label and href.
        Parameters:
        label - The label of the breadcrumb item
        href - The URL the breadcrumb item links to
      • ofId

        static IBreadcrumbitem ofId​(java.lang.String id)
        Returns the instance with the given id.
        Parameters:
        id - The id to identify this component