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[]columnInfosprotected List<WEditor>editorsList of WEditorsstatic intFIELDLENGTHMax Length of Fieldsprotected List<WEditor>identifiersprotected InfoColumnVO[]infoColumnsprotected PropertiesinfoContextprotected MenupopupipMenuMenu contail process menu itemprotected GridparameterGridprotected AccessSqlParser.TableInfo[]tableInfosprotected AbstractWQuickEntryvqe-
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 voidaddKeyViewToQuery()ifInfoPanel.keyColumnOfViewnot null and not display, add query to query it's valueprotected StringaddMoreColumnToQuery(String sqlMain, IInfoColumn[] listInfoColumn)because data of infoColumn have isDisplay = false not load, just display column is load to show in List.protected voidaddSearchParameter(Label label, org.zkoss.zk.ui.Component fieldEditor)protected voidaddSelectionColumn(InfoColumnVO infoColumn, GridField mField)Add Selection Column to first Tabprotected voidaddViewIDToQuery()add all ViewID in each MInfoProcess to query if main query have subquery in SELECT, it will beak or incorrectprotected voidbindInfoProcess()evaluate display logic of button process empty method. implement at child class extendprotected voidbindInfoProcessBt()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 voidbindInfoProcessDropDown()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 voidbindInfoProcessMenu()recreate menu item by set hiden, display of menu item when all menu item is hiden, hiden process menu button tooprotected StringbuildDataSQL(int start, int end)protected voidcacheOriginalValues(int rowIndex)protected voidcreateAndCheckbox()protected ColumnInfocreateLookupColumnInfo(AccessSqlParser.TableInfo[] tableInfos, GridField gridField, InfoColumnVO infoColumn)protected voidcreateParameterPanel()protected voiddynamicDisplay(WEditor editor)protected voidenableExportButton()protected voidevalDisplayLogic()protected voidexecuteQuery()Execute Queryprotected intfindColumnIndex(String columnName)protected InfoColumnVOfindInfoColumn(GridField gridField)protected InfoColumnVOfindInfoColumnParameter(GridField gridField)protected intgetADWindowID()Get id of window link with main table of this info windowprotected GridFieldgetGridField(InfoColumnVO infoColumn)author xolali IDEMPIERE-1045 GridField getGridField(InfoColumnVO infoColumn)ArrayList<ColumnInfo>getInfoColumnslayout(MInfoWindow info)author xolali IDEMPIERE-1045 getInfoColumnslayout(MInfoWindow info)protected intgetNoOfParameterColumns()PropertiesgetRowaAsCtx(int row, int editingColumn, Object editingValue)protected StringgetSQLWhere()Get dynamic WHERE part of SQL To be overwritten by concrete classes When override this method, please consider isQueryByUser and prevWhereClauseprotected booleanhasNew()Has new function for create new record (false) To be overwritten by concrete classesprotected booleanhasZoom()Has Zoom (false) To be overwritten by concrete classesprotected voidinitExport()protected voidinitInfoProcess()IDEMPIERE-1334 load info process info separate by layout type init drop list and menu control set status of haveProcess flagprotected voidinsertPagingComponent()booleanisNeedAppendKeyViewData()need overrider at infoWindow to check isDisplayprotected booleanisParameteChangeValue()Check has new parameter is change or new input in case first time search, return trueprotected voidlayoutParameterGrid(boolean update)protected booleanloadInfoDefinition()protected booleanloadInfoRelatedTabs()protected voidloadInfoWindowData()query ADInfoWindow from ADInfoWindowIDprotected voidnewRecordAction()process action when user click to new buttonvoidonCellEditCallback(ValueChangeEvent event, int rowIndex, int colIndex, WEditor editor, GridField field)protected voidonClientInfo()voidonEvent(org.zkoss.zk.ui.event.Event event)voidonPageAttached(org.zkoss.zk.ui.Page newpage, org.zkoss.zk.ui.Page oldpage)voidonQueryCallback(org.zkoss.zk.ui.event.Event event)booleanonRestoreSelectedItemIndexInPage(Integer keyViewValue, int rowIndex, Object oRow)Hook to intercept 'restore selection' actionsprotected voidprepareTable()protected voidprepareTable(ColumnInfo[] layout, String from, String where, String orderBy)protected voidprocessQueryValue()protected voidrenderContentPane(org.zkoss.zul.Center center)protected voidrenderFooter(org.zkoss.zul.South south)protected voidrenderParameterPane(org.zkoss.zul.North north)protected voidrenderWindow()protected voidreset(EmbedWinInfo relatedInfo)reset to emptyprotected voidresetParameters()protected voidrestoreOriginalValues(int rowIndex)protected voidrestoreSelectedInPage()go through all data record, in case key value is inInfoPanel.recordSelectedData, mark it as selected recordprotected voidsaveSelectionDetail()Save Selection Details Get Location/Partner Infoprotected voidsetParameter(PreparedStatement pstmt, int parameterIndex, Object value, String queryOperator)set parameter for statement.protected voidsetParameters(PreparedStatement pstmt, boolean forCount)Set Parameters for Query To be overwritten by concrete classes When override this method, please consider isQueryByUser and prevWhereClauseprotected voidsetSouthVisible(boolean visible)Allow to show or hide the sub panel (detail) programmaticallyvoidtableChanged(WTableModelEvent event)This fine grain notification tells listeners the exact range of cells, rows, or columns that changed.protected booleantestCount()Test Row Countprotected booleantestCount(boolean promptError)Test Row Countprotected voidupdateListSelected()get all selected record of current page and update toInfoPanel.recordSelectedDataremove unselected record and add new selected record we maintain value of key, and extra value append byInfoPanel.appendInfoColumnData(ResultSet, List, IInfoColumn[], List)protected voidupdateSubcontent(int row)Update relate info for a specific row, if targetRow < 0 update using selected rowprotected booleanvalidateField(WEditor wEditor)valid mandatory of a not null, display field display red color when a mandatory field is not inputbooleanvalidateParameters()validate parameter before run queryvoidvalueChange(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:
updateSubcontentin 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:
bindInfoProcessin 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:InfoPanelquery ADInfoWindow from ADInfoWindowID- Overrides:
loadInfoWindowDatain 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:InfoPanelGet dynamic WHERE part of SQL To be overwritten by concrete classes When override this method, please consider isQueryByUser and prevWhereClause- Specified by:
getSQLWherein 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:InfoPanelSet Parameters for Query To be overwritten by concrete classes When override this method, please consider isQueryByUser and prevWhereClause- Specified by:
setParametersin 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:
prepareTablein 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.keyColumnOfViewnot null and not display, add query to query it's value
-
isNeedAppendKeyViewData
public boolean isNeedAppendKeyViewData()
Description copied from class:InfoPanelneed overrider at infoWindow to check isDisplay- Overrides:
isNeedAppendKeyViewDatain 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:
insertPagingComponentin 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:
saveSelectionDetailin classInfoPanel
-
buildDataSQL
protected String buildDataSQL(int start, int end)
- Overrides:
buildDataSQLin classInfoPanel
-
executeQuery
protected void executeQuery()
Description copied from class:InfoPanelExecute Query- Overrides:
executeQueryin classInfoPanel
-
hasZoom
protected boolean hasZoom()
Description copied from class:InfoPanelHas Zoom (false) To be overwritten by concrete classes
-
valueChange
public void valueChange(ValueChangeEvent evt)
- Specified by:
valueChangein interfaceValueChangeListener
-
dynamicDisplay
protected void dynamicDisplay(WEditor editor)
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event event)
-
resetParameters
protected void resetParameters()
- Overrides:
resetParametersin classInfoPanel
-
onPageAttached
public void onPageAttached(org.zkoss.zk.ui.Page newpage, org.zkoss.zk.ui.Page oldpage)- Specified by:
onPageAttachedin interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
onPageAttachedin 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:
validateParametersin 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:InfoPanelHas 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:InfoPanelprocess action when user click to new button- Overrides:
newRecordActionin 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:WTableModelListenerThis fine grain notification tells listeners the exact range of cells, rows, or columns that changed.- Specified by:
tableChangedin interfaceWTableModelListener- Overrides:
tableChangedin classInfoPanel- Parameters:
event- table model event
-
onQueryCallback
public void onQueryCallback(org.zkoss.zk.ui.event.Event event)
- Overrides:
onQueryCallbackin classInfoPanel
-
updateListSelected
protected void updateListSelected()
Description copied from class:InfoPanelget all selected record of current page and update toInfoPanel.recordSelectedDataremove unselected record and add new selected record we maintain value of key, and extra value append byInfoPanel.appendInfoColumnData(ResultSet, List, IInfoColumn[], List)- Overrides:
updateListSelectedin classInfoPanel
-
restoreSelectedInPage
protected void restoreSelectedInPage()
Description copied from class:InfoPanelgo through all data record, in case key value is inInfoPanel.recordSelectedData, mark it as selected record- Overrides:
restoreSelectedInPagein classInfoPanel
-
onRestoreSelectedItemIndexInPage
public boolean onRestoreSelectedItemIndexInPage(Integer keyViewValue, int rowIndex, Object oRow)
Description copied from class:InfoPanelHook to intercept 'restore selection' actions- Overrides:
onRestoreSelectedItemIndexInPagein classInfoPanel- Parameters:
keyViewValue- row view keyrowIndex- row indexoRow- row- Returns:
- false to skip restore selection
-
initExport
protected void initExport()
-
enableExportButton
protected void enableExportButton()
-
-