Interface IFisheye

All Superinterfaces:
IChildrenOfInputgroup<IFisheye>, IComponent<IFisheye>, IHtmlBasedComponent<IFisheye>, ILabelElement<IFisheye>, ILabelImageElement<IFisheye>, IXulElement<IFisheye>

public interface IFisheye extends ILabelImageElement<IFisheye>
Immutable Fisheye component.

A fisheye item.

Author:
jumperchen
See Also:
  • Fisheye
  • Field Details

    • DEFAULT

      static final IFisheye DEFAULT
      Constant for default attributes of this immutable component.
  • Method Details

    • getWidth

      @Derived @Nullable default String getWidth()
      Description copied from interface: IHtmlBasedComponent
      Returns the width of the component. If not specified, null is assumed.

      Default: null

      Specified by:
      getWidth in interface IHtmlBasedComponent<IFisheye>
    • withWidth

      default IFisheye withWidth(String width)
      This method is unsupported. Please use IFisheyebar.withItemWidth(int) instead.
      Specified by:
      withWidth in interface IHtmlBasedComponent<IFisheye>
      Parameters:
      width - The width of the component.

      Default: null

      Returns:
      A modified copy of the this object
    • getHeight

      @Derived @Nullable default String getHeight()
      Description copied from interface: IHtmlBasedComponent
      Returns the height of the component. If not specified, null is assumed.

      Default: null

      Specified by:
      getHeight in interface IHtmlBasedComponent<IFisheye>
    • withHeight

      default IFisheye withHeight(String height)
      This method is unsupported. Please use IFisheyebar.withItemHeight(int) instead.
      Specified by:
      withHeight in interface IHtmlBasedComponent<IFisheye>
      Parameters:
      height - The height of the component.

      Default: null

      Returns:
      A modified copy of the this object
    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zkex.menu.Fisheye"

      Specified by:
      getWidgetClass in interface IComponent<IFisheye>
    • of

      static IFisheye of(String label)
      Returns the instance with the given label.
      Parameters:
      label - The label that the component holds.
    • of

      static IFisheye of(String label, String image)
      Returns the instance with the given label and image.
      Parameters:
      label - The label that the component holds.
      image - The image that the component holds.
    • ofImage

      static IFisheye ofImage(String image)
      Returns the instance with the given image.
      Parameters:
      image - The image that the component holds.
    • ofId

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