Interface RenderAgent

  • All Superinterfaces:
    Agent, OperationAgent

    public interface RenderAgent
    extends OperationAgent

    To render a child components of a data component that is not rendered yet. Listbox and Grid supports this operation.

    Because of ZK will not render all sub-items at first, it just pre-loads first few items. Until a user scrolls the scroll bar down, it loads and renders subsequent items. You will retrieve an invalid child component before it's rendered. Hence if you want to manipulate a not-rendered child component, you have to render it first.

    Author:
    dennis
    • Method Detail

      • render

        void render​(int start,
                    int end)
        Render the sub-item from index "start" to "end".
        Parameters:
        start - the start index(zero-base, included) of sub-item to render, -1 means from 0
        end - the end index(zero-base, exclusive) of sub-item to render, -1 means to end of the sub-items