Package org.adempiere.webui.adwindow
Class QuickGridTabRowRenderer
- java.lang.Object
-
- org.adempiere.webui.adwindow.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringCSS_READ_ONLY_COMPONENTstatic StringCURRENT_ROW_STYLEintcurrentRowIndexMap<org.zkoss.zul.Row,ArrayList<WEditor>>editorsListMapstatic StringGRID_ROW_INDEX_ATTRstatic StringIS_QUICK_FORM_COMPONENTMap<org.zkoss.zul.Row,ArrayList<WEditor>>readOnlyEditorsListMap
-
Constructor Summary
Constructors Constructor Description QuickGridTabRowRenderer(GridTab gridTab, int windowNo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRemovePropertyChangeListener(boolean isAddListener, int col)If true add Property Change Listener, a false Remove Property Change ListenervoidclearMaps()Clear editorsListmap on page change and dispose.voiddoCatch(Throwable ex)voiddoFinally()voiddoTry()voideditCurrentRow()Enter edit modeintgetColumnIndex(GridField field)intgetControls()org.zkoss.zul.CellgetCurrentCell()org.zkoss.zul.RowgetCurrentRow()intgetCurrentRowIndex()BooleanisAddRemoveListener(int code)booleanisDisableReadonlyComponent(org.zkoss.zk.ui.Component component, boolean isDisable)Disable Read-only components for while pressing tab button focus goes to read-only component.booleanisEditing()org.zkoss.zk.ui.ComponentnewCell(org.zkoss.zul.Row row)org.zkoss.zul.RownewRow(org.zkoss.zul.Grid grid)voidonEvent(org.zkoss.zk.ui.event.Event event)voidrender(org.zkoss.zul.Row row, Object[] data, int index)voidsetADWindowPanel(AbstractADWindowContent windowPanel)voidsetCurrentCell(int row, int col, int code)voidsetCurrentCell(org.zkoss.zul.Cell currentCell)voidsetCurrentRow(org.zkoss.zul.Row row)voidsetFocusOnCurrentCell()voidsetGridPanel(QuickGridView gridPanel)voidsetPaging(org.zkoss.zul.Paging paging)voidsetRowTo(int row)
-
-
-
Field Detail
-
IS_QUICK_FORM_COMPONENT
public static final String IS_QUICK_FORM_COMPONENT
- See Also:
- Constant Field Values
-
GRID_ROW_INDEX_ATTR
public static final String GRID_ROW_INDEX_ATTR
- See Also:
- Constant Field Values
-
CURRENT_ROW_STYLE
public static final String CURRENT_ROW_STYLE
- See Also:
- Constant Field Values
-
CSS_READ_ONLY_COMPONENT
public static final String CSS_READ_ONLY_COMPONENT
- See Also:
- Constant Field Values
-
currentRowIndex
public int currentRowIndex
-
-
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-
-
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:
getControlsin interfaceorg.zkoss.zul.RowRendererExt- See Also:
RowRendererExt.getControls()
-
newCell
public org.zkoss.zk.ui.Component newCell(org.zkoss.zul.Row row)
- Specified by:
newCellin interfaceorg.zkoss.zul.RowRendererExt- See Also:
RowRendererExt.newCell(Row)
-
newRow
public org.zkoss.zul.Row newRow(org.zkoss.zul.Grid grid)
- Specified by:
newRowin interfaceorg.zkoss.zul.RowRendererExt- See Also:
RowRendererExt.newRow(Grid)
-
doCatch
public void doCatch(Throwable ex) throws Throwable
- Specified by:
doCatchin interfaceorg.zkoss.zul.RendererCtrl- Throws:
Throwable- See Also:
RendererCtrl.doCatch(Throwable)
-
doFinally
public void doFinally()
- Specified by:
doFinallyin interfaceorg.zkoss.zul.RendererCtrl- See Also:
RendererCtrl.doFinally()
-
doTry
public void doTry()
- Specified by:
doTryin interfaceorg.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:
onEventin interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>- Throws:
Exception
-
clearMaps
public void clearMaps()
Clear editorsListmap on page change and dispose.
-
-