Class IBiglistboxController<RowT,​HeadT,​CellT,​HeaderT>

  • All Implemented Interfaces:
    ItemController<java.lang.Object,​org.zkoss.zkmax.zul.MatrixModel<RowT,​HeadT,​CellT,​HeaderT>,​IBiglistbox,​java.lang.String>

    public class IBiglistboxController<RowT,​HeadT,​CellT,​HeaderT>
    extends java.lang.Object
    implements ItemController<java.lang.Object,​org.zkoss.zkmax.zul.MatrixModel<RowT,​HeadT,​CellT,​HeaderT>,​IBiglistbox,​java.lang.String>
    An IBiglistbox controller to control any operation on the given model.

    Note: this class is not thread-safe, so when it's used in multi-threading environment, the developer should handle the threading issue.

    Author:
    katherine
    • Method Detail

      • of

        public static <RowT,​HeadT,​CellT,​HeaderT> IBiglistboxController<RowT,​HeadT,​CellT,​HeaderT> of​(IBiglistbox owner,
                                                                                                                                        org.zkoss.zkmax.zul.MatrixModel<RowT,​HeadT,​CellT,​HeaderT> model)
        Returns the controller instance with the given biglistbox
        Parameters:
        owner - The controller to control with
        model - The matrix model to associate with the biglistbox.
      • of

        public static <RowT,​HeadT,​CellT,​HeaderT> IBiglistboxController<RowT,​HeadT,​CellT,​HeaderT> of​(IBiglistbox owner,
                                                                                                                                        org.zkoss.zkmax.zul.MatrixModel<RowT,​HeadT,​CellT,​HeaderT> model,
                                                                                                                                        CheckedFunction2<java.lang.Object,​java.lang.Integer,​java.lang.String> renderer)
        Returns the controller instance with the given biglistbox
        Parameters:
        owner - The controller to control with
        model - The matrix model to associate with the biglistbox.
        renderer - The renderer of the matrix model.
      • getSelectedIndex

        public int getSelectedIndex()
        Returns the index of the selected item (-1 if no one is selected).

        Default: -1 or depends on Selectable

      • getSelectedObject

        public java.lang.Object getSelectedObject()
        Returns the selected object or null.

        Default: null

      • setSelectedIndex

        public void setSelectedIndex​(int jsel)
        Selects the item with the given index.
      • setSelectedObject

        public void setSelectedObject​(java.lang.Object item)
        Sets the selected object or null.