Package org.adempiere.webui.info
Class InfoWindow
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Window
-
- org.adempiere.webui.component.Window
-
- org.adempiere.webui.panel.InfoPanel
-
- org.adempiere.webui.info.InfoWindow
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ValueChangeListener
,WTableModelListener
,ISupportMask
,IHelpContext
,org.zkoss.zk.ui.Component
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
,org.zkoss.zk.ui.ext.Scope
,org.zkoss.zk.ui.IdSpace
,org.zkoss.zk.ui.sys.ComponentCtrl
,org.zkoss.zul.ext.Framable
,org.zkoss.zul.ext.Sortable<Object>
- Direct Known Subclasses:
InfoAssetWindow
,InfoAssignmentWindow
,InfoBPartnerWindow
,InfoInOutWindow
,InfoInvoiceWindow
,InfoOrderWindow
,InfoPAttributeInstanceWindow
,InfoPAttributeWindow
,InfoPaymentWindow
,InfoProductWindow
public class InfoWindow extends InfoPanel implements ValueChangeListener, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
AD_InfoWindow implementation- Author:
- hengsin
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ColumnInfo[]
columnInfos
protected List<WEditor>
editors
List of WEditorsstatic int
FIELDLENGTH
Max Length of Fieldsprotected List<WEditor>
identifiers
protected InfoColumnVO[]
infoColumns
protected Properties
infoContext
protected Menupopup
ipMenu
Menu contail process menu itemprotected Grid
parameterGrid
protected AccessSqlParser.TableInfo[]
tableInfos
protected AbstractWQuickEntry
vqe
-
Fields inherited from class org.adempiere.webui.panel.InfoPanel
ATT_INFO_PROCESS_KEY, autoCompleteSearchColumn, btCbbProcess, btMenuProcess, btProcessList, cbbProcess, COLUMN_VISIBLE_ORIGINAL, columnDataIndex, confirmPanel, contentPanel, editorMap, extra_max_row, hasRightQuickEntry, haveProcess, indexColumnCount, indexKeyOfView, indexOrderColumn, INFO_QUERY_TIME_OUT_ERROR, infoProcessBtList, infoProcessDropList, infoProcessList, infoProcessMenuList, infoWindow, isAutoComplete, isColumnSortAscending, isHasNextPage, isIDColumnKeyOfView, isIgnoreCacheAll, isMustUpdateColumnIndex, isQueryByUser, isRequeryByRunSuccessProcess, keyColumnOfView, log, lsReadedColumn, m_count, m_gridfield, m_infoWindowID, m_lookup, m_sqlCount, m_sqlMain, m_sqlOrder, m_values, m_viewIDMap, numPagePreLoad, ON_RUN_PROCESS, p_keyColumn, p_layout, p_loadedOK, p_multipleSelection, p_tableName, p_whereClause, p_WindowNo, pageNo, pageSize, paging, prevParameterValues, prevQueryOperators, prevRefParmeterEditor, prevWhereClause, PROCESS_ID_KEY, queryTimeout, queryValue, recordSelectedData, relatedInfoList, sqlOrderColumn, statusBar, useQueryTimeoutFromSysConfig, VK_ENTER, VK_ESCAPE
-
Fields inherited from class org.adempiere.webui.component.Window
INSERT_END, INSERT_NEXT, INSERT_POSITION_KEY, MODE_EMBEDDED, MODE_HIGHLIGHTED, MODE_KEY, MODE_MODAL, MODE_OVERLAPPED, MODE_POPUP, showMaskWrapper
-
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
-
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
-
Fields inherited from interface org.adempiere.webui.ISupportMask
READY_SHOW_MASK_FLAG
-
-
Constructor Summary
Constructors Constructor Description InfoWindow(int WindowNo, String tableName, String keyColumn, String queryValue, boolean multipleSelection, String whereClause, int AD_InfoWindow_ID)
InfoWindow(int WindowNo, String tableName, String keyColumn, String queryValue, boolean multipleSelection, String whereClause, int AD_InfoWindow_ID, boolean lookup)
InfoWindow(int WindowNo, String tableName, String keyColumn, String queryValue, boolean multipleSelection, String whereClause, int AD_InfoWindow_ID, boolean lookup, GridField field)
InfoWindow(int WindowNo, String tableName, String keyColumn, String queryValue, boolean multipleSelection, String whereClause, int AD_InfoWindow_ID, boolean lookup, GridField field, String predefinedContextVariables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addKeyViewToQuery()
ifInfoPanel.keyColumnOfView
not null and not display, add query to query it's valueprotected String
addMoreColumnToQuery(String sqlMain, IInfoColumn[] listInfoColumn)
because data of infoColumn have isDisplay = false not load, just display column is load to show in List.protected void
addSearchParameter(Label label, org.zkoss.zk.ui.Component fieldEditor)
protected void
addSelectionColumn(InfoColumnVO infoColumn, GridField mField)
Add Selection Column to first Tabprotected void
addViewIDToQuery()
add all ViewID in each MInfoProcess to query if main query have subquery in SELECT, it will beak or incorrectprotected void
bindInfoProcess()
evaluate display logic of button process empty method. implement at child class extendprotected void
bindInfoProcessBt()
evel display logic of process info button set visible of button base in display logic when two button set for same process, two button can hiden too, or display too.protected void
bindInfoProcessDropDown()
recreate drop down item by recreate model to set hiden, display of drop down item when all item is hiden, hiden combobox and process button tooprotected void
bindInfoProcessMenu()
recreate menu item by set hiden, display of menu item when all menu item is hiden, hiden process menu button tooprotected String
buildDataSQL(int start, int end)
protected void
cacheOriginalValues(int rowIndex)
protected void
createAndCheckbox()
protected ColumnInfo
createLookupColumnInfo(AccessSqlParser.TableInfo[] tableInfos, GridField gridField, InfoColumnVO infoColumn)
protected void
createParameterPanel()
protected void
dynamicDisplay(WEditor editor)
protected void
enableExportButton()
protected void
evalDisplayLogic()
protected void
executeQuery()
Execute Queryprotected int
findColumnIndex(String columnName)
protected InfoColumnVO
findInfoColumn(GridField gridField)
protected InfoColumnVO
findInfoColumnParameter(GridField gridField)
protected int
getADWindowID()
Get id of window link with main table of this info windowprotected GridField
getGridField(InfoColumnVO infoColumn)
author xolali IDEMPIERE-1045 GridField getGridField(InfoColumnVO infoColumn)ArrayList<ColumnInfo>
getInfoColumnslayout(MInfoWindow info)
author xolali IDEMPIERE-1045 getInfoColumnslayout(MInfoWindow info)protected int
getNoOfParameterColumns()
Properties
getRowaAsCtx(int row, int editingColumn, Object editingValue)
protected String
getSQLWhere()
Get dynamic WHERE part of SQL To be overwritten by concrete classes When override this method, please consider isQueryByUser and prevWhereClauseprotected boolean
hasNew()
Has new function for create new record (false) To be overwritten by concrete classesprotected boolean
hasZoom()
Has Zoom (false) To be overwritten by concrete classesprotected void
initExport()
protected void
initInfoProcess()
IDEMPIERE-1334 load info process info separate by layout type init drop list and menu control set status of haveProcess flagprotected void
insertPagingComponent()
boolean
isNeedAppendKeyViewData()
need overrider at infoWindow to check isDisplayprotected boolean
isParameteChangeValue()
Check has new parameter is change or new input in case first time search, return trueprotected void
layoutParameterGrid(boolean update)
protected boolean
loadInfoDefinition()
protected boolean
loadInfoRelatedTabs()
protected void
loadInfoWindowData()
query ADInfoWindow from ADInfoWindowIDprotected void
newRecordAction()
process action when user click to new buttonvoid
onCellEditCallback(ValueChangeEvent event, int rowIndex, int colIndex, WEditor editor, GridField field)
protected void
onClientInfo()
void
onEvent(org.zkoss.zk.ui.event.Event event)
void
onPageAttached(org.zkoss.zk.ui.Page newpage, org.zkoss.zk.ui.Page oldpage)
void
onQueryCallback(org.zkoss.zk.ui.event.Event event)
boolean
onRestoreSelectedItemIndexInPage(Integer keyViewValue, int rowIndex, Object oRow)
Hook to intercept 'restore selection' actionsprotected void
prepareTable()
protected void
prepareTable(ColumnInfo[] layout, String from, String where, String orderBy)
protected void
processQueryValue()
protected void
renderContentPane(org.zkoss.zul.Center center)
protected void
renderFooter(org.zkoss.zul.South south)
protected void
renderParameterPane(org.zkoss.zul.North north)
protected void
renderWindow()
protected void
reset(EmbedWinInfo relatedInfo)
reset to emptyprotected void
resetParameters()
protected void
restoreOriginalValues(int rowIndex)
protected void
restoreSelectedInPage()
go through all data record, in case key value is inInfoPanel.recordSelectedData
, mark it as selected recordprotected void
saveSelectionDetail()
Save Selection Details Get Location/Partner Infoprotected void
setParameter(PreparedStatement pstmt, int parameterIndex, Object value, String queryOperator)
set parameter for statement.protected void
setParameters(PreparedStatement pstmt, boolean forCount)
Set Parameters for Query To be overwritten by concrete classes When override this method, please consider isQueryByUser and prevWhereClauseprotected void
setSouthVisible(boolean visible)
Allow to show or hide the sub panel (detail) programmaticallyvoid
tableChanged(WTableModelEvent event)
This fine grain notification tells listeners the exact range of cells, rows, or columns that changed.protected boolean
testCount()
Test Row Countprotected boolean
testCount(boolean promptError)
Test Row Countprotected void
updateListSelected()
get all selected record of current page and update toInfoPanel.recordSelectedData
remove unselected record and add new selected record we maintain value of key, and extra value append byInfoPanel.appendInfoColumnData(ResultSet, List, IInfoColumn[], List)
protected void
updateSubcontent(int row)
Update relate info for a specific row, if targetRow < 0 update using selected rowprotected boolean
validateField(WEditor wEditor)
valid mandatory of a not null, display field display red color when a mandatory field is not inputboolean
validateParameters()
validate parameter before run queryvoid
valueChange(ValueChangeEvent evt)
-
Methods inherited from class org.adempiere.webui.panel.InfoPanel
addValueChangeListener, appendDataForKeyView, appendDataForParentLink, appendDataForViewID, appendInfoColumnData, autoHideEmptyColumns, correctHeaderOrderIndicator, create, createT_Selection_InfoWindow, customize, dispose, enableButtons, enableButtons, fireValueChange, getAD_Window_ID, getCacheEnd, getCacheStart, getColumnHeader, getColumnValue, getEvents, getFirstRowKey, getGridfield, getIndexKeyColumnOfView, getInfoColumnIDFromProcess, getKeyColumn, getKeyNullException, getOverIntValue, getOverIntValue, getPageSize, getRowCount, getRowKeyAt, getSaveKeys, getSelectedKey, getSelectedKeys, getSelectedKeysCollection, getSelectedRowInfo, getSelectedRowKey, getSelectedRowKeys, getSelectedSQL, getSortDirection, getSubList, getTableName, getUserOrderClause, getUserOrderClause, getWindowNo, hasCustomize, hasHistory, hasProcess, initParameters, isAutoHideEmptyColumns, isCancelled, isIDColumn, isIDColumn, isLoadPageNumber, isLookup, isUseDatabasePaging, loadedOK, onDoubleClick, onOk, onPageDetached, onUserQuery, parseQueryValue, renderItems, runProcess, saveResultSelection, saveSelection, scrollToSelectedRow, setFixedQueryTimeout, setGridfield, setStatusDB, setStatusLine, setStatusSelected, showHistory, showPanel, sort, syncSelectedAfterRequery, updateStatusBar, updateSubcontent, validateEndPage, validateOrderIndex, zoom
-
Methods inherited from class org.adempiere.webui.component.Window
dispose, getMaskComponent, getMaskObj, getModeAttribute, hideMask, showMask
-
Methods inherited from class org.zkoss.zul.Window
beforeChildAdded, clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMinheight, getMinwidth, getMode, getModeType, getPosition, getTitle, getZclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isCollapsible, isMaximizable, isMaximized, isMinimizable, isMinimized, isShadow, isSizable, onChildRemoved, onClose, onModal, renderProperties, service, setBorder, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMaximizable, setMaximized, setMinheight, setMinimizable, setMinimized, setMinwidth, setMode, setMode, setMode, setPosition, setShadow, setSizable, setTitle, setTopmost, setVisible
-
Methods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
-
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
-
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.zkoss.zk.ui.IdSpace
getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, hasFellow, hasFellow
-
-
-
-
Field Detail
-
parameterGrid
protected Grid parameterGrid
-
infoContext
protected Properties infoContext
-
FIELDLENGTH
public static final int FIELDLENGTH
Max Length of Fields- See Also:
- Constant Field Values
-
columnInfos
protected ColumnInfo[] columnInfos
-
tableInfos
protected AccessSqlParser.TableInfo[] tableInfos
-
infoColumns
protected InfoColumnVO[] infoColumns
-
vqe
protected AbstractWQuickEntry vqe
-
ipMenu
protected Menupopup ipMenu
Menu contail process menu item
-
-
Constructor Detail
-
InfoWindow
public InfoWindow(int WindowNo, String tableName, String keyColumn, String queryValue, boolean multipleSelection, String whereClause, int AD_InfoWindow_ID)
- Parameters:
WindowNo
-tableName
-keyColumn
-multipleSelection
-whereClause
-
-
InfoWindow
public InfoWindow(int WindowNo, String tableName, String keyColumn, String queryValue, boolean multipleSelection, String whereClause, int AD_InfoWindow_ID, boolean lookup)
- Parameters:
WindowNo
-tableName
-keyColumn
-multipleSelection
-whereClause
-lookup
-
-
InfoWindow
public InfoWindow(int WindowNo, String tableName, String keyColumn, String queryValue, boolean multipleSelection, String whereClause, int AD_InfoWindow_ID, boolean lookup, GridField field)
- Parameters:
WindowNo
-tableName
-keyColumn
-queryValue
-multipleSelection
-whereClause
-AD_InfoWindow_ID
-lookup
-field
-
-
InfoWindow
public InfoWindow(int WindowNo, String tableName, String keyColumn, String queryValue, boolean multipleSelection, String whereClause, int AD_InfoWindow_ID, boolean lookup, GridField field, String predefinedContextVariables)
- Parameters:
WindowNo
-tableName
-keyColumn
-queryValue
-multipleSelection
-whereClause
-AD_InfoWindow_ID
-lookup
-field
-predefinedContextVariables
-
-
-
Method Detail
-
updateSubcontent
protected void updateSubcontent(int row)
Update relate info for a specific row, if targetRow < 0 update using selected row- Overrides:
updateSubcontent
in classInfoPanel
-
initInfoProcess
protected void initInfoProcess()
IDEMPIERE-1334 load info process info separate by layout type init drop list and menu control set status of haveProcess flag
-
bindInfoProcess
protected void bindInfoProcess()
evaluate display logic of button process empty method. implement at child class extend- Overrides:
bindInfoProcess
in classInfoPanel
-
bindInfoProcessBt
protected void bindInfoProcessBt()
evel display logic of process info button set visible of button base in display logic when two button set for same process, two button can hiden too, or display too. this is bug of implementor by never have this case
-
bindInfoProcessDropDown
protected void bindInfoProcessDropDown()
recreate drop down item by recreate model to set hiden, display of drop down item when all item is hiden, hiden combobox and process button too
-
bindInfoProcessMenu
protected void bindInfoProcessMenu()
recreate menu item by set hiden, display of menu item when all menu item is hiden, hiden process menu button too
-
processQueryValue
protected void processQueryValue()
-
loadInfoWindowData
protected void loadInfoWindowData()
Description copied from class:InfoPanel
query ADInfoWindow from ADInfoWindowID- Overrides:
loadInfoWindowData
in classInfoPanel
-
loadInfoDefinition
protected boolean loadInfoDefinition()
-
loadInfoRelatedTabs
protected boolean loadInfoRelatedTabs()
-
prepareTable
protected void prepareTable()
-
createLookupColumnInfo
protected ColumnInfo createLookupColumnInfo(AccessSqlParser.TableInfo[] tableInfos, GridField gridField, InfoColumnVO infoColumn)
-
getSQLWhere
protected String getSQLWhere()
Description copied from class:InfoPanel
Get dynamic WHERE part of SQL To be overwritten by concrete classes When override this method, please consider isQueryByUser and prevWhereClause- Specified by:
getSQLWhere
in classInfoPanel
- Returns:
- WHERE clause
-
findInfoColumn
protected InfoColumnVO findInfoColumn(GridField gridField)
-
findInfoColumnParameter
protected InfoColumnVO findInfoColumnParameter(GridField gridField)
-
isParameteChangeValue
protected boolean isParameteChangeValue()
Check has new parameter is change or new input in case first time search, return true- Returns:
-
setParameters
protected void setParameters(PreparedStatement pstmt, boolean forCount) throws SQLException
Description copied from class:InfoPanel
Set Parameters for Query To be overwritten by concrete classes When override this method, please consider isQueryByUser and prevWhereClause- Specified by:
setParameters
in classInfoPanel
- Parameters:
pstmt
- statementforCount
- for counting records- Throws:
SQLException
-
setParameter
protected void setParameter(PreparedStatement pstmt, int parameterIndex, Object value, String queryOperator) throws SQLException
set parameter for statement. not need check null for value- Parameters:
pstmt
-parameterIndex
-value
-queryOperator
-- Throws:
SQLException
-
prepareTable
protected void prepareTable(ColumnInfo[] layout, String from, String where, String orderBy)
- Overrides:
prepareTable
in classInfoPanel
-
addViewIDToQuery
protected void addViewIDToQuery()
add all ViewID in each MInfoProcess to query if main query have subquery in SELECT, it will beak or incorrect
-
addKeyViewToQuery
protected void addKeyViewToQuery()
ifInfoPanel.keyColumnOfView
not null and not display, add query to query it's value
-
isNeedAppendKeyViewData
public boolean isNeedAppendKeyViewData()
Description copied from class:InfoPanel
need overrider at infoWindow to check isDisplay- Overrides:
isNeedAppendKeyViewData
in classInfoPanel
- Returns:
-
addMoreColumnToQuery
protected String addMoreColumnToQuery(String sqlMain, IInfoColumn[] listInfoColumn)
because data of infoColumn have isDisplay = false not load, just display column is load to show in List. Some function receive data from hidden column as viewID in infoProcess or parentLink of infoRelateWindow. this function just add column name of hidden infoWindow to end of query- Parameters:
sqlMain
- main sql to append columnlistInfoColumn
- list of PO contain infoColumnID, this infoColumnID will add to query- Returns:
- sql after append column
-
renderWindow
protected void renderWindow()
-
renderFooter
protected void renderFooter(org.zkoss.zul.South south)
-
insertPagingComponent
protected void insertPagingComponent()
- Overrides:
insertPagingComponent
in classInfoPanel
-
renderContentPane
protected void renderContentPane(org.zkoss.zul.Center center)
-
renderParameterPane
protected void renderParameterPane(org.zkoss.zul.North north)
-
createParameterPanel
protected void createParameterPanel()
-
layoutParameterGrid
protected void layoutParameterGrid(boolean update)
-
evalDisplayLogic
protected void evalDisplayLogic()
-
addSelectionColumn
protected void addSelectionColumn(InfoColumnVO infoColumn, GridField mField)
Add Selection Column to first Tab- Parameters:
infoColumn
-mField
- field
-
addSearchParameter
protected void addSearchParameter(Label label, org.zkoss.zk.ui.Component fieldEditor)
-
getNoOfParameterColumns
protected int getNoOfParameterColumns()
-
createAndCheckbox
protected void createAndCheckbox()
-
findColumnIndex
protected int findColumnIndex(String columnName)
-
saveSelectionDetail
protected void saveSelectionDetail()
Save Selection Details Get Location/Partner Info- Overrides:
saveSelectionDetail
in classInfoPanel
-
buildDataSQL
protected String buildDataSQL(int start, int end)
- Overrides:
buildDataSQL
in classInfoPanel
-
executeQuery
protected void executeQuery()
Description copied from class:InfoPanel
Execute Query- Overrides:
executeQuery
in classInfoPanel
-
hasZoom
protected boolean hasZoom()
Description copied from class:InfoPanel
Has Zoom (false) To be overwritten by concrete classes
-
valueChange
public void valueChange(ValueChangeEvent evt)
- Specified by:
valueChange
in interfaceValueChangeListener
-
dynamicDisplay
protected void dynamicDisplay(WEditor editor)
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event event)
-
resetParameters
protected void resetParameters()
- Overrides:
resetParameters
in classInfoPanel
-
onPageAttached
public void onPageAttached(org.zkoss.zk.ui.Page newpage, org.zkoss.zk.ui.Page oldpage)
- Specified by:
onPageAttached
in interfaceorg.zkoss.zk.ui.sys.ComponentCtrl
- Overrides:
onPageAttached
in classInfoPanel
-
onClientInfo
protected void onClientInfo()
-
testCount
protected boolean testCount()
Test Row Count
-
testCount
protected boolean testCount(boolean promptError)
Test Row Count- Returns:
- true if display
-
getInfoColumnslayout
public ArrayList<ColumnInfo> getInfoColumnslayout(MInfoWindow info)
author xolali IDEMPIERE-1045 getInfoColumnslayout(MInfoWindow info)- Parameters:
info
-- Returns:
-
reset
protected void reset(EmbedWinInfo relatedInfo)
reset to empty- Parameters:
relatedInfo
-
-
getGridField
protected GridField getGridField(InfoColumnVO infoColumn)
author xolali IDEMPIERE-1045 GridField getGridField(InfoColumnVO infoColumn)- Parameters:
infoColumn
-- Returns:
-
validateParameters
public boolean validateParameters()
validate parameter before run query eval input value of mandatory field, if null show field in red color- Overrides:
validateParameters
in classInfoPanel
- Returns:
-
validateField
protected boolean validateField(WEditor wEditor)
valid mandatory of a not null, display field display red color when a mandatory field is not input- Parameters:
wEditor
-- Returns:
-
hasNew
protected boolean hasNew()
Description copied from class:InfoPanel
Has new function for create new record (false) To be overwritten by concrete classes
-
getADWindowID
protected int getADWindowID()
Get id of window link with main table of this info window- Returns:
-
newRecordAction
protected void newRecordAction()
Description copied from class:InfoPanel
process action when user click to new button- Overrides:
newRecordAction
in classInfoPanel
-
setSouthVisible
protected void setSouthVisible(boolean visible)
Allow to show or hide the sub panel (detail) programmatically
-
getRowaAsCtx
public Properties getRowaAsCtx(int row, int editingColumn, Object editingValue)
-
onCellEditCallback
public void onCellEditCallback(ValueChangeEvent event, int rowIndex, int colIndex, WEditor editor, GridField field)
-
restoreOriginalValues
protected void restoreOriginalValues(int rowIndex)
-
cacheOriginalValues
protected void cacheOriginalValues(int rowIndex)
-
tableChanged
public void tableChanged(WTableModelEvent event)
Description copied from interface:WTableModelListener
This fine grain notification tells listeners the exact range of cells, rows, or columns that changed.- Specified by:
tableChanged
in interfaceWTableModelListener
- Overrides:
tableChanged
in classInfoPanel
- Parameters:
event
- table model event
-
onQueryCallback
public void onQueryCallback(org.zkoss.zk.ui.event.Event event)
- Overrides:
onQueryCallback
in classInfoPanel
-
updateListSelected
protected void updateListSelected()
Description copied from class:InfoPanel
get all selected record of current page and update toInfoPanel.recordSelectedData
remove unselected record and add new selected record we maintain value of key, and extra value append byInfoPanel.appendInfoColumnData(ResultSet, List, IInfoColumn[], List)
- Overrides:
updateListSelected
in classInfoPanel
-
restoreSelectedInPage
protected void restoreSelectedInPage()
Description copied from class:InfoPanel
go through all data record, in case key value is inInfoPanel.recordSelectedData
, mark it as selected record- Overrides:
restoreSelectedInPage
in classInfoPanel
-
onRestoreSelectedItemIndexInPage
public boolean onRestoreSelectedItemIndexInPage(Integer keyViewValue, int rowIndex, Object oRow)
Description copied from class:InfoPanel
Hook to intercept 'restore selection' actions- Overrides:
onRestoreSelectedItemIndexInPage
in classInfoPanel
- Parameters:
keyViewValue
- row view keyrowIndex
- row indexoRow
- row- Returns:
- false to skip restore selection
-
initExport
protected void initExport()
-
enableExportButton
protected void enableExportButton()
-
-