Class GridTab
- All Implemented Interfaces:
Serializable
,EventListener
,DataStatusListener
,Evaluatee
The Tab owns also it's Table model and listens to data changes to update the Field values.
The Tab maintains the bound property: CurrentRow
Event Hierarchies: - dataChanged (from GridTable) - setCurrentRow - Update all Field Values - setValue - Update Field Value - Callout
- Version:
- $Id: GridTab.java,v 1.10 2006/10/02 05:18:39 jjanke Exp $
- Author:
- Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
- BF [ 1742159 ] Editable number field for inactive record
- BF [ 1968598 ] Callout is not called if tab is processed
- BF [ 2104022 ] GridTab.processCallout: throws NPE if callout returns null
- FR [ 2846871 ] Add method org.compiere.model.GridTab.getIncludedTabs https://sourceforge.net/p/adempiere/feature-requests/805/, Teo Sarca, teo.sarca@gmail.com
- BF [ 2873323 ] ABP: Do not concatenate strings in SQL queries https://sourceforge.net/p/adempiere/feature-requests/845/
- BF [ 2874109 ] Tab ORDER BY clause is not supporting context variables https://sourceforge.net/p/adempiere/bugs/2162/
- BF [ 2905287 ] GridTab query is not build correctly https://sourceforge.net/p/adempiere/bugs/2242/
- BF [ 3007342 ] Included tab context conflict issue https://sourceforge.net/p/adempiere/bugs/2409/, Victor Perez , e-Evolution.SC
- FR [1877902] Implement JSR 223 Scripting APIs to Callout
- BF [ 2910358 ] Error in context when a field is found in different tabs. https://sourceforge.net/p/adempiere/bugs/2255/
- BF [ 2910368 ] Error in context when IsActive field is found in different https://sourceforge.net/p/adempiere/bugs/2256/, Carlos Ruiz, qss FR [1877902], Cristina Ghita, www.arhipac.ro FR [2870645] Set null value for an ID, Paul Bowden, phib BF 2900767 Zoom to child tab - inefficient queries
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final String
boolean
protected CLogger
Loggerprotected EventListenerList
A list of event listeners for this component.static final String
Property Change Type -
Constructor Summary
ConstructorDescriptionGridTab
(GridTabVO vo, GridWindow w) Create Tab (Model) from Value Object.GridTab
(GridTabVO vo, GridWindow w, boolean virtual) Create Tab Model from Value Object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
addToSelection
(int rowIndex) Add row index to selectionboolean
Can this tab have Attachments?.void
clear row selectionboolean
Delete current Rowvoid
Ignore/undo data changesboolean
dataNew
(boolean copy) Create (copy) new Row and process Callouts.void
Refresh current row datavoid
dataRefresh
(boolean fireEvent) Refresh current row datavoid
dataRefresh
(int row) Refresh row datavoid
dataRefresh
(int row, boolean fireEvent) Refresh row datavoid
Refresh all datavoid
dataRefreshAll
(boolean fireEvent) Refresh all datavoid
dataRefreshAll
(boolean fireEvent, boolean retainedCurrentRow) Refresh all databoolean
dataSave
(boolean manualCmd) Save datavoid
Data Status event from GridTableprotected void
dispose()
Dispose - clean up resourcesvoid
Enable Events - listen to events from GridTable.void
fireDataStatusEEvent
(String AD_Message, String info, boolean isError) Create and fire Data Status Error Eventvoid
fireDataStatusEEvent
(ValueNamePair errorLog) Create and fire Data Status Error Event (from Error Log)get_ValueAsString
(String variableName) Get Variable Value (Evaluatee) as stringget_ValueAsString
(Properties ctx, String variableName) Get Variable Value (Evaluatee) as stringCallout[]
String[]
int
Get Attachment_ID for current record.int
Get Order column for sort tabint
Get Yes/No column for sort tabint
Get PostItID for this record.int
Get Process IDint
Get Tab IDint
Get Table IDint
Get Window IDint
Get Chat_ID for this record.Get commit/save Warningint
Get Current RowGet Delete Confirmation LogicgetDependantFields
(String columnName) Get dependents fields of columnNameGet a list of variables that this tab is dependent on:
- for display logicGet Description of TabGet Display LogicGet EntityTypegetField
(int index) Get Field by indexGet Field by DB column nameint
Get Column/Field CountGet all FieldsgetHelp()
Get Help of TabgetIcon()
Get Tab Iconint
Deprecated.the functionality related to AD_Tab.Included_Tab_ID is deprecatedint
Return the name of the key column - may be ""int
getKeyID
(int row) Get Key ID of rowgetKeyUUID
(int row) Get Key UUID of rowint
Get Max Query Records.
If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records.protected GridTable
Return Table ModelgetName()
Get Name of Tabint
Return Parent ArrayListgetQuery()
Get Queryint
Get Current Table UUIDint
Get RowCountint[]
Get status line for this tabGet TableModel.Get TableNameint
Get Tab Levelint
getTabNo()
Get TabNoget Tab TypeWhere the tree should be shownDeprecated.use getStatusLine and configure Status Line insteadGet Value of Field for a row.Get Value of Field with columnNameGet Value of Fieldboolean
getValueAsBoolean
(String columnName) Get Boolean Value of Field with columnName.
If there is no column with the given name, the context for current window will be checked.getVO()
Get Tab Where ClauseGet extended Where Clause (parent link)int
Get WindowNoboolean
Returns true, if current row has an Attachmentboolean
Validate if current tab or parent tab record has changed in databaseboolean
hasChat()
Returns true, if current row has chat records.boolean
hasDependants
(String columnName) Has this field dependents ?boolean
hasLabel()
boolean
boolean
boolean
initTab
(boolean async) Initialize Tab with data from AD_Tab_vboolean
isActive()
Is the current record activeboolean
Is Allow Advanced Lookup panel?boolean
Tab contains Always Update Fieldboolean
Is the tab current?boolean
Can we Delete Records?boolean
isDetail()
Returns true if this is a detail tabboolean
Is the Tab Visible.boolean
Is High Volume?boolean
Deprecated.boolean
Can we Insert Records?boolean
boolean
isLocked()
boolean
Is Lookup Only By Selection Fields?boolean
boolean
isNew()
boolean
Are Only Current Rows displayedboolean
isOpen()
Is the tab/table currently openboolean
Is Printed (Document can be printed)boolean
Is Processedboolean
Is Query Activeboolean
isQueryMax
(int noRecords) Over max Queryboolean
Is Query New Recordboolean
isQueryRequire
(int noRecords) Require Queryboolean
boolean
Is Read Only?boolean
isSelected
(int rowIndex) boolean
Is Single Rowboolean
Is Sort Tabboolean
Has Treeboolean
void
Load Record Locks for Table and Userprotected boolean
loadTab()
void
lock
(Properties ctx, int Record_ID, boolean lock) Lock or unlock Recordint
navigate
(int targetRow) Navigate absolute - goto Row - (zero based)int
Navigate to current now (reload)int
navigateRelative
(int rowChange) Navigate relatively - i.e. plus/minus from current positionboolean
needSave
(boolean rowChange, boolean onlyRealChange) Do we need to Save?processCallout
(GridField field) Process Callout(s).processFieldChange
(GridField changedField) Process Field Change - evaluate Dependencies and process Callouts.void
query
(boolean onlyCurrentRows) Assemble whereClause and query GridTable and position to row 0.void
query
(boolean onlyCurrentRows, int onlyCurrentDays, int maxRows) Assemble whereClause and query GridTable and position to row 0.void
refresh current row of parent tabsvoid
refreshParentTabs
(boolean fireParentEvent) refresh current row of parent tabsvoid
boolean
removeFromSelection
(int rowIndex) Remove row index from selectionvoid
void
void
reset()
reset to emptyvoid
Reset detail GridTab when parent tab current record is new and not saved yetvoid
setCalloutUI
(ICalloutUI calloutUI) void
setCurrentRow
(int row) Set current row - used for deleteSelectionint
setCurrentRow
(int newCurrentRow, boolean fireEvents) Set current row and load data into fields.void
setDeleteConfirmationLogic
(String deleteConfirmationLogic) Set Delete Confirmation Logicvoid
setFieldVFormat
(String identifier, String strNewFormat) Feature Request [1707462] Enable runtime change of VFormatvoid
setIncluded
(boolean isIncluded) Deprecated.The method getIncluded now validate against the structure, this method is called nowherevoid
setLinkColumnName
(String linkColumnName) Set Name of link column.void
Set Queryvoid
setQuickForm
(boolean isQuickForm) void
setSingleRow
(boolean isSingleRow) Set Single Row (form presentation) Temporary store of current valuevoid
setUpdateWindowContext
(boolean updateWindowContext) Set New Value and call CalloutSet New Value and call Calloutvoid
switchRows
(int from, int to, int sortColumn, boolean ascending) Switches the line/seqNo of the two rowstoString()
toStringvoid
UpdateDataStatusEvent
properties from gridTab
-
Field Details
-
DEFAULT_STATUS_MESSAGE
- See Also:
-
PROPERTY
Property Change Type- See Also:
-
m_listenerList
A list of event listeners for this component. -
log
Logger -
isQuickForm
public boolean isQuickForm -
CTX_KeyColumnName
- See Also:
-
CTX_LinkColumnName
- See Also:
-
CTX_TabLevel
- See Also:
-
CTX_AccessLevel
- See Also:
-
CTX_AD_Tab_ID
- See Also:
-
CTX_AD_Tab_UU
- See Also:
-
CTX_Name
- See Also:
-
CTX_AD_Table_ID
- See Also:
-
CTX_AD_Table_UU
- See Also:
-
CTX_FindSQL
- See Also:
-
CTX_SQL
- See Also:
-
CTX_IsSortTab
- See Also:
-
CTX_Record_ID
- See Also:
-
CTX_IsLookupOnlySelection
- See Also:
-
CTX_IsAllowAdvancedLookup
- See Also:
-
DEFAULT_GLOBAL_MAX_QUERY_RECORDS
public static final int DEFAULT_GLOBAL_MAX_QUERY_RECORDS- See Also:
-
-
Constructor Details
-
GridTab
Create Tab (Model) from Value Object.MTab provides a property listener for changed rows and a DataStatusListener for communicating changes of the underlying data
- Parameters:
vo
- Value Objectw
-
-
GridTab
Create Tab Model from Value Object.GridTab provides a property listener for changed rows and a DataStatusListener for communicating changes of the underlying data.
- Parameters:
vo
- Value Objectw
-virtual
-
-
-
Method Details
-
isLoadComplete
public boolean isLoadComplete()- Returns:
- true if GridTab loaded.
-
initTab
public boolean initTab(boolean async) Initialize Tab with data from AD_Tab_v- Parameters:
async
- asynchronous- Returns:
- true, if correctly initialized (ignored)
-
loadTab
protected boolean loadTab()- Returns:
- true if loaded
-
dispose
protected void dispose()Dispose - clean up resources -
getDependentOn
Get a list of variables that this tab is dependent on:
- for display logic- Returns:
- ArrayList
-
getDisplayLogic
Get Display Logic- Returns:
- display logic
-
getEntityType
Get EntityType- Returns:
- Window Entity Type
-
getTableModel
Get TableModel. Do not directly communicate with the table model, but through the methods of this class.- Returns:
- Table Model
-
getIcon
Get Tab Icon- Returns:
- Icon
-
hasDependants
Has this field dependents ?- Parameters:
columnName
- column name- Returns:
- true if column has dependent
-
getDependantFields
Get dependents fields of columnName- Parameters:
columnName
- column name- Returns:
- ArrayList with GridFields dependent on columnName
-
setQuery
Set Query- Parameters:
query
- query
-
getQuery
Get Query- Returns:
- query
-
isQueryActive
public boolean isQueryActive()Is Query Active- Returns:
- true if query active
-
isQueryNewRecord
public boolean isQueryNewRecord()Is Query New Record- Returns:
- true if query is to create new record
-
enableEvents
public void enableEvents()Enable Events - listen to events from GridTable. -
getTabType
get Tab Type- Returns:
- String
-
query
public void query(boolean onlyCurrentRows) Assemble whereClause and query GridTable and position to row 0.Scenarios: - Never opened (full query) - query changed (full query) - Detail link value changed (full query) - otherwise (refreshAll)
- Parameters:
onlyCurrentRows
- only current rows (1 day)
-
query
public void query(boolean onlyCurrentRows, int onlyCurrentDays, int maxRows) Assemble whereClause and query GridTable and position to row 0.Scenarios: - Never opened (full query) - query changed (full query) - Detail link value changed (full query) - otherwise (refreshAll)
- Parameters:
onlyCurrentRows
- only current rowsonlyCurrentDays
- if only current row, how many days backmaxRows
- maximum rows or 0 for all
-
resetDetailForNewParentRecord
public void resetDetailForNewParentRecord()Reset detail GridTab when parent tab current record is new and not saved yet -
dataRefreshAll
public void dataRefreshAll()Refresh all data -
dataRefreshAll
public void dataRefreshAll(boolean fireEvent) Refresh all data- Parameters:
fireEvent
-
-
dataRefreshAll
public void dataRefreshAll(boolean fireEvent, boolean retainedCurrentRow) Refresh all data- Parameters:
fireEvent
-retainedCurrentRow
-
-
dataRefresh
public void dataRefresh()Refresh current row data -
dataRefresh
public void dataRefresh(boolean fireEvent) Refresh current row data- Parameters:
fireEvent
-
-
dataRefresh
public void dataRefresh(int row) Refresh row data- Parameters:
row
- index
-
dataRefresh
public void dataRefresh(int row, boolean fireEvent) Refresh row data- Parameters:
row
- indexfireEvent
-
-
dataSave
public boolean dataSave(boolean manualCmd) Save data- Parameters:
manualCmd
- if true, no vetoable PropertyChange event will be fired for save confirmation from GridTable- Returns:
- true if save complete (or not required)
-
isNeedSaveAndMandatoryFill
public boolean isNeedSaveAndMandatoryFill()- Returns:
- true if need save and all mandatory field has value
-
hasChangedCurrentTabAndParents
public boolean hasChangedCurrentTabAndParents()Validate if current tab or parent tab record has changed in database- Returns:
- true if if there are changes
-
refreshParentTabs
public void refreshParentTabs()refresh current row of parent tabs -
refreshParentTabs
public void refreshParentTabs(boolean fireParentEvent) refresh current row of parent tabs- Parameters:
fireParentEvent
-
-
needSave
public boolean needSave(boolean rowChange, boolean onlyRealChange) Do we need to Save?- Parameters:
rowChange
- row changeonlyRealChange
- if true the value of a field was actually changed (e.g. for new records, which have not been changed) - default false- Returns:
- true it needs to be saved
-
dataIgnore
public void dataIgnore()Ignore/undo data changes -
dataNew
public boolean dataNew(boolean copy) Create (copy) new Row and process Callouts.- Parameters:
copy
- copy- Returns:
- true if copied/new
-
dataDelete
public boolean dataDelete()Delete current Row- Returns:
- true if deleted
-
getName
Get Name of Tab- Returns:
- name
-
getDescription
Get Description of Tab- Returns:
- description
-
getHelp
Get Help of Tab- Returns:
- help
-
getTabLevel
public int getTabLevel()Get Tab Level- Returns:
- tab level
-
getCommitWarning
Get commit/save Warning- Returns:
- commit/save warning
-
getMTable
Return Table Model- Returns:
- GridTable
-
getKeyColumnName
Return the name of the key column - may be ""- Returns:
- key column name
-
getKeyColumnIndex
public int getKeyColumnIndex()- Returns:
- key column index
-
getLinkColumnName
- Returns:
- link column name
-
setLinkColumnName
Set Name of link column. Set from GridWindow.loadTabData.- Parameters:
linkColumnName
- name of column - or sets name to AD_Column_ID, if exists
-
isCurrent
public boolean isCurrent()Is the tab current?Yes - Table must be open - Query String is the same - Not Detail Tab - Old link column value is same as current one
- Returns:
- true if current
-
isOpen
public boolean isOpen()Is the tab/table currently open- Returns:
- true if open
-
isIncluded
Deprecated.Is Tab Included in other Tab- Returns:
- true if included
-
setIncluded
Deprecated.The method getIncluded now validate against the structure, this method is called nowhereIs Tab Included in other Tab- Parameters:
isIncluded
- true if included
-
isOnlyCurrentRows
public boolean isOnlyCurrentRows()Are Only Current Rows displayed- Returns:
- true if no history
-
getParentColumnNames
Return Parent ArrayList- Returns:
- parent column names
-
isDetail
public boolean isDetail()Returns true if this is a detail tab- Returns:
- true if not parent tab
-
isPrinted
public boolean isPrinted()Is Printed (Document can be printed)- Returns:
- true if printing
-
getWindowNo
public int getWindowNo()Get WindowNo- Returns:
- window no
-
getTabNo
public int getTabNo()Get TabNo- Returns:
- tab no
-
getAD_Process_ID
public int getAD_Process_ID()Get Process ID- Returns:
- AD_Process_ID
-
isHighVolume
public boolean isHighVolume()Is High Volume?- Returns:
- true if high volume table
-
IsLookupOnlySelection
public boolean IsLookupOnlySelection()Is Lookup Only By Selection Fields?- Returns:
- true if only selection
-
IsAllowAdvancedLookup
public boolean IsAllowAdvancedLookup()Is Allow Advanced Lookup panel?- Returns:
- true if allow the use
-
isReadOnly
public boolean isReadOnly()Is Read Only?- Returns:
- true if read only
-
isAlwaysUpdateField
public boolean isAlwaysUpdateField()Tab contains Always Update Field- Returns:
- true if has field that is always updatable
-
isInsertRecord
public boolean isInsertRecord()Can we Insert Records?- Returns:
- true if can insert new record
-
isDeleteRecord
public boolean isDeleteRecord()Can we Delete Records?- Returns:
- true if can delete existing record
-
isDisplayed
public boolean isDisplayed()Is the Tab Visible.- Returns:
- true, if displayed
-
get_ValueAsString
Get Variable Value (Evaluatee) as string- Specified by:
get_ValueAsString
in interfaceEvaluatee
- Parameters:
variableName
- name- Returns:
- value as string
-
get_ValueAsString
Get Variable Value (Evaluatee) as string- Parameters:
ctx
- contextvariableName
- name- Returns:
- value as string
-
isSingleRow
public boolean isSingleRow()Is Single Row- Returns:
- true if default to single row (i.e form presentation)
-
setSingleRow
public void setSingleRow(boolean isSingleRow) Set Single Row (form presentation) Temporary store of current value- Parameters:
isSingleRow
- toggle
-
isTreeTab
public boolean isTreeTab()Has Tree- Returns:
- true if tree exists
-
getTreeDisplayedOn
Where the tree should be shown- Returns:
- master, detail or both
-
getAD_Tab_ID
public int getAD_Tab_ID()Get Tab ID- Returns:
- AD_Tab_ID
-
getAD_Table_ID
public int getAD_Table_ID()Get Table ID- Returns:
- AD_Table_ID
-
getAD_Window_ID
public int getAD_Window_ID()Get Window ID- Returns:
- AD_Window_ID
-
getIncluded_Tab_ID
Deprecated.the functionality related to AD_Tab.Included_Tab_ID is deprecatedGet Included Tab ID- Returns:
- Included_Tab_ID
-
getTableName
Get TableName- Returns:
- Table Name
-
getWhereClause
Get Tab Where Clause- Returns:
- where clause
-
isSortTab
public boolean isSortTab()Is Sort Tab- Returns:
- true if this is sort tab
-
getAD_ColumnSortOrder_ID
public int getAD_ColumnSortOrder_ID()Get Order column for sort tab- Returns:
- AD_Column_ID for sorting
-
getAD_ColumnSortYesNo_ID
public int getAD_ColumnSortYesNo_ID()Get Yes/No column for sort tab- Returns:
- AD_Column_ID for yes/no flag
-
getWhereExtended
Get extended Where Clause (parent link)- Returns:
- parent link
-
getTrxInfo
Deprecated.use getStatusLine and configure Status Line insteadTransaction support. Depending on Table returns transaction info- Returns:
- info
-
getStatusLine
- Returns:
- status line text
-
getStatusLinesWidget
Get status line for this tab- Returns:
- status line text
-
canHaveAttachment
public boolean canHaveAttachment()Can this tab have Attachments?.A tab can have attachment if it has single key column ending with _ID or _UU.
- Returns:
- true if record can have attachment
-
hasAttachment
public boolean hasAttachment()Returns true, if current row has an Attachment- Returns:
- true if record has attachment
-
getAD_AttachmentID
public int getAD_AttachmentID()Get Attachment_ID for current record.- Returns:
- AD_AttachmentID or 0 if no attachment.
-
hasChat
public boolean hasChat()Returns true, if current row has chat records.- Returns:
- true if current row has chat records.
-
getCM_ChatID
public int getCM_ChatID()Get Chat_ID for this record.- Returns:
- CM_Chat_ID or 0 if no chat records
-
hasPostIt
public boolean hasPostIt()- Returns:
- true if current row has post it note records.
-
getAD_PostIt_ID
public int getAD_PostIt_ID()Get PostItID for this record.- Returns:
- AD_PostIt_ID or 0 if no post it note records.
-
hasLabel
public boolean hasLabel()- Returns:
- true if current row has Label records.
-
hasTemplate
public boolean hasTemplate()- Returns:
- true if this has import templates
-
loadLocks
public void loadLocks()Load Record Locks for Table and User -
isLocked
public boolean isLocked()- Returns:
- true if record is locked
-
lock
Lock or unlock Record- Parameters:
ctx
- contextRecord_ID
- idlock
- true to lock, false to unlock
-
dataStatusChanged
Data Status event from GridTable. - get raw info and add current row information - update current row - redistribute (fire) Data Status event
- Specified by:
dataStatusChanged
in interfaceDataStatusListener
- Parameters:
e
- event
-
updateDataStatusEventProperties
UpdateDataStatusEvent
properties from gridTab- Parameters:
e
-
-
fireDataStatusEEvent
Create and fire Data Status Error Event- Parameters:
AD_Message
- messageinfo
- infoisError
- true for Error, false for Warning
-
fireDataStatusEEvent
Create and fire Data Status Error Event (from Error Log)- Parameters:
errorLog
- log
-
getCurrentRow
public int getCurrentRow()Get Current Row- Returns:
- current row index
-
getRecord_ID
public int getRecord_ID()- Returns:
- Key id of current row (for e.g C_Order_ID value)
-
getRecord_UU
Get Current Table UUID- Returns:
- UUID value of current row (for e.g C_Order_UU value)
-
getKeyID
public int getKeyID(int row) Get Key ID of row- Parameters:
row
- row number- Returns:
- The Key ID of the row or -1 if not found
-
getKeyUUID
Get Key UUID of row- Parameters:
row
- row number- Returns:
- The Key UUID of the row or -1 if not found
-
setCurrentRow
public int setCurrentRow(int newCurrentRow, boolean fireEvents) Set current row and load data into fields. If there is no row - load nulls.- Parameters:
newCurrentRow
- new current rowfireEvents
- fire events- Returns:
- current row index
-
setCurrentRow
public void setCurrentRow(int row) Set current row - used for deleteSelection- Parameters:
row
-
-
getRowCount
public int getRowCount()Get RowCount- Returns:
- row count
-
getFieldCount
public int getFieldCount()Get Column/Field Count- Returns:
- field count
-
getField
Get Field by index- Parameters:
index
- field index- Returns:
- GridField
-
getField
Get Field by DB column name- Parameters:
columnName
- column name- Returns:
- GridField or null
-
getFields
Get all Fields- Returns:
- GridFields
-
setValue
Set New Value and call Callout- Parameters:
columnName
- database column namevalue
- value- Returns:
- error message or ""
-
setValue
Set New Value and call Callout- Parameters:
field
- fieldvalue
- value- Returns:
- error message or ""
-
isProcessed
public boolean isProcessed()Is Processed- Returns:
- true if current record is processed
-
isActive
public boolean isActive()Is the current record active- Returns:
- true if current record is active author Teo Sarca - BF [ 1742159 ]
-
processFieldChange
Process Field Change - evaluate Dependencies and process Callouts.Usually called from UI side data status change listener.
- Parameters:
changedField
- changed field- Returns:
- error message or ""
-
getActiveCallouts
- Returns:
- list of active call out for this tab
-
getActiveCalloutInstance
- Returns:
- list of active call out instance for this tab
-
processCallout
Process Callout(s).The traditional column callout is in the format of "class.method;class.method;".
The class needs to comply with the Interface Callout.Newer callout implement the
IColumnCallout
interface and discover viaIColumnCalloutFactory
service.- Parameters:
field
- field- Returns:
- error message or ""
- See Also:
-
getValue
Get Value of Field with columnName- Parameters:
columnName
- column name- Returns:
- value
-
getValueAsBoolean
Get Boolean Value of Field with columnName.
If there is no column with the given name, the context for current window will be checked.- Parameters:
columnName
- column name- Returns:
- boolean value or false if the field was not found author Teo Sarca
-
getValue
Get Value of Field- Parameters:
field
- field- Returns:
- value
-
getValue
Get Value of Field for a row.- Parameters:
row
- row indexcolumnName
- column name- Returns:
- value
-
toString
toString -
removePropertyChangeListener
- Parameters:
l
- listener
-
addPropertyChangeListener
- Parameters:
l
- listener
-
removeDataStatusListener
- Parameters:
l
- listener
-
addDataStatusListener
- Parameters:
l
- listener
-
addStateChangeListener
- Parameters:
l
-
-
removeStateChangeListener
- Parameters:
l
-
-
setFieldVFormat
Feature Request [1707462] Enable runtime change of VFormat- Parameters:
identifier
- column namestrNewFormat
- new input mask author fer_luck
-
switchRows
public void switchRows(int from, int to, int sortColumn, boolean ascending) Switches the line/seqNo of the two rows- Parameters:
from
- row indexto
- row indexsortColumn
- column index of sort columnascending
- sorting modus
-
getIncludedTabs
- Returns:
- list of all tabs included in this tab
-
getParentTab
- Returns:
- parent GridTab
-
getNumColumns
public int getNumColumns()- Returns:
- number of columns in form presentation
-
isNew
public boolean isNew()- Returns:
- true if current row is a new record row
-
getAD_Tab_UU
- Returns:
- AD_Tab_UU
-
getAD_Process_UU
- Returns:
- AD_Process_UU
-
isUpdateWindowContext
public boolean isUpdateWindowContext()- Returns:
- true if tab will update window context
-
setUpdateWindowContext
public void setUpdateWindowContext(boolean updateWindowContext) - Parameters:
updateWindowContext
-
-
addToSelection
public void addToSelection(int rowIndex) Add row index to selection- Parameters:
rowIndex
-
-
removeFromSelection
public boolean removeFromSelection(int rowIndex) Remove row index from selection- Parameters:
rowIndex
-- Returns:
- true if rowIndex is found and remove
-
getSelection
public int[] getSelection()- Returns:
- selected indexes
-
isSelected
public boolean isSelected(int rowIndex) - Parameters:
rowIndex
-- Returns:
- true if rowIndex is in current selection
-
clearSelection
public void clearSelection()clear row selection -
isQuickForm
public boolean isQuickForm()- Returns:
- true if tab is in quick form
-
setQuickForm
public void setQuickForm(boolean isQuickForm) - Parameters:
isQuickForm
-
-
getGridWindow
- Returns:
- GridWindow
-
getVO
- Returns:
- GridTabVO
-
getCalloutUI
- Returns:
- ICalloutUI
-
setCalloutUI
- Parameters:
calloutUI
-
-
getDeleteConfirmationLogic
Get Delete Confirmation Logic- Returns:
- Delete Confirmation Logic
-
setDeleteConfirmationLogic
Set Delete Confirmation Logic- Parameters:
deleteConfirmationLogic
-
-
getMaxQueryRecords
public int getMaxQueryRecords()Get Max Query Records.
If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records.- Returns:
- Max Query Records
-
isQueryRequire
public boolean isQueryRequire(int noRecords) Require Query- Parameters:
noRecords
- records- Returns:
- true if query is required
-
isQueryMax
public boolean isQueryMax(int noRecords) Over max Query- Parameters:
noRecords
- records- Returns:
- true if over max query records
-
reset
public void reset()reset to empty
-