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 String
CSS_READ_ONLY_COMPONENT
static String
CURRENT_ROW_STYLE
int
currentRowIndex
Map<org.zkoss.zul.Row,ArrayList<WEditor>>
editorsListMap
static String
GRID_ROW_INDEX_ATTR
static String
IS_QUICK_FORM_COMPONENT
Map<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 void
addRemovePropertyChangeListener(boolean isAddListener, int col)
If true add Property Change Listener, a false Remove Property Change Listenervoid
clearMaps()
Clear editorsListmap on page change and dispose.void
doCatch(Throwable ex)
void
doFinally()
void
doTry()
void
editCurrentRow()
Enter edit modeint
getColumnIndex(GridField field)
int
getControls()
org.zkoss.zul.Cell
getCurrentCell()
org.zkoss.zul.Row
getCurrentRow()
int
getCurrentRowIndex()
Boolean
isAddRemoveListener(int code)
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.boolean
isEditing()
org.zkoss.zk.ui.Component
newCell(org.zkoss.zul.Row row)
org.zkoss.zul.Row
newRow(org.zkoss.zul.Grid grid)
void
onEvent(org.zkoss.zk.ui.event.Event event)
void
render(org.zkoss.zul.Row row, Object[] data, int index)
void
setADWindowPanel(AbstractADWindowContent windowPanel)
void
setCurrentCell(int row, int col, int code)
void
setCurrentCell(org.zkoss.zul.Cell currentCell)
void
setCurrentRow(org.zkoss.zul.Row row)
void
setFocusOnCurrentCell()
void
setGridPanel(QuickGridView gridPanel)
void
setPaging(org.zkoss.zul.Paging paging)
void
setRowTo(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:
getControls
in interfaceorg.zkoss.zul.RowRendererExt
- See Also:
RowRendererExt.getControls()
-
newCell
public org.zkoss.zk.ui.Component newCell(org.zkoss.zul.Row row)
- Specified by:
newCell
in interfaceorg.zkoss.zul.RowRendererExt
- See Also:
RowRendererExt.newCell(Row)
-
newRow
public org.zkoss.zul.Row newRow(org.zkoss.zul.Grid grid)
- Specified by:
newRow
in interfaceorg.zkoss.zul.RowRendererExt
- See Also:
RowRendererExt.newRow(Grid)
-
doCatch
public void doCatch(Throwable ex) throws Throwable
- Specified by:
doCatch
in interfaceorg.zkoss.zul.RendererCtrl
- Throws:
Throwable
- See Also:
RendererCtrl.doCatch(Throwable)
-
doFinally
public void doFinally()
- Specified by:
doFinally
in interfaceorg.zkoss.zul.RendererCtrl
- See Also:
RendererCtrl.doFinally()
-
doTry
public void doTry()
- Specified by:
doTry
in 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:
onEvent
in 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.
-
-