Class QuickGridTabRowRenderer

  • All Implemented Interfaces:
    org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, org.zkoss.zul.RendererCtrl, org.zkoss.zul.RowRenderer<Object[]>, org.zkoss.zul.RowRendererExt

    public class QuickGridTabRowRenderer
    extends Object
    implements org.zkoss.zul.RowRenderer<Object[]>, org.zkoss.zul.RowRendererExt, org.zkoss.zul.RendererCtrl, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
    Row renderer for Quick GridTab grid.
    Since:
    Nov 03, 2017
    Author:
    Logilite Technologies
    • Constructor Detail

      • QuickGridTabRowRenderer

        public QuickGridTabRowRenderer​(GridTab gridTab,
                                       int windowNo)
        Parameters:
        gridTab -
        windowNo -
    • Method Detail

      • getColumnIndex

        public int getColumnIndex​(GridField field)
      • setPaging

        public void setPaging​(org.zkoss.zul.Paging paging)
        Parameters:
        paging -
      • render

        public void render​(org.zkoss.zul.Row row,
                           Object[] data,
                           int index)
                    throws Exception
        Specified by:
        render in interface org.zkoss.zul.RowRenderer<Object[]>
        Parameters:
        row -
        data -
        index -
        Throws:
        Exception
      • isDisableReadonlyComponent

        public boolean isDisableReadonlyComponent​(org.zkoss.zk.ui.Component component,
                                                  boolean isDisable)
        Disable Read-only components for while pressing tab button focus goes to read-only component. Enable Read-only component before display Logic update. Add/Remove CSS Class from read-only component
        Parameters:
        component -
        isDisable -
        Returns:
      • getCurrentCell

        public org.zkoss.zul.Cell getCurrentCell()
      • setCurrentCell

        public void setCurrentCell​(org.zkoss.zul.Cell currentCell)
      • setCurrentCell

        public void setCurrentCell​(int row,
                                   int col,
                                   int code)
      • addRemovePropertyChangeListener

        public void addRemovePropertyChangeListener​(boolean isAddListener,
                                                    int col)
        If true add Property Change Listener, a false Remove Property Change Listener
        Parameters:
        isAddListener -
        col -
      • isAddRemoveListener

        public Boolean isAddRemoveListener​(int code)
        Parameters:
        code -
        Returns:
      • setRowTo

        public void setRowTo​(int row)
        Parameters:
        row -
      • setFocusOnCurrentCell

        public void setFocusOnCurrentCell()
      • setCurrentRow

        public void setCurrentRow​(org.zkoss.zul.Row row)
        Parameters:
        row -
      • getCurrentRow

        public org.zkoss.zul.Row getCurrentRow()
        Returns:
        Row
      • getCurrentRowIndex

        public int getCurrentRowIndex()
        Returns:
        current row index ( absolute )
      • editCurrentRow

        public void editCurrentRow()
        Enter edit mode
      • getControls

        public int getControls()
        Specified by:
        getControls in interface org.zkoss.zul.RowRendererExt
        See Also:
        RowRendererExt.getControls()
      • newCell

        public org.zkoss.zk.ui.Component newCell​(org.zkoss.zul.Row row)
        Specified by:
        newCell in interface org.zkoss.zul.RowRendererExt
        See Also:
        RowRendererExt.newCell(Row)
      • newRow

        public org.zkoss.zul.Row newRow​(org.zkoss.zul.Grid grid)
        Specified by:
        newRow in interface org.zkoss.zul.RowRendererExt
        See Also:
        RowRendererExt.newRow(Grid)
      • doCatch

        public void doCatch​(Throwable ex)
                     throws Throwable
        Specified by:
        doCatch in interface org.zkoss.zul.RendererCtrl
        Throws:
        Throwable
        See Also:
        RendererCtrl.doCatch(Throwable)
      • doFinally

        public void doFinally()
        Specified by:
        doFinally in interface org.zkoss.zul.RendererCtrl
        See Also:
        RendererCtrl.doFinally()
      • doTry

        public void doTry()
        Specified by:
        doTry in interface org.zkoss.zul.RendererCtrl
        See Also:
        RendererCtrl.doTry()
      • setGridPanel

        public void setGridPanel​(QuickGridView gridPanel)
        Parameters:
        gridPanel -
      • isEditing

        public boolean isEditing()
        Returns:
        boolean
      • setADWindowPanel

        public void setADWindowPanel​(AbstractADWindowContent windowPanel)
        Parameters:
        windowPanel -
      • onEvent

        public void onEvent​(org.zkoss.zk.ui.event.Event event)
                     throws Exception
        Specified by:
        onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
        Throws:
        Exception
      • clearMaps

        public void clearMaps()
        Clear editorsListmap on page change and dispose.