Package org.compiere.model
Class GridFieldVO
- java.lang.Object
-
- org.compiere.model.GridFieldVO
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class GridFieldVO extends Object implements Serializable, Cloneable
Field Model Value Object- Version:
- $Id: GridFieldVO.java,v 1.3 2006/07/30 00:58:04 jjanke Exp $
- Author:
- Jorg Janke, Victor Perez , e-Evolution.SC FR [ 1757088 ] , [1877902] Implement JSR 223 Scripting APIs to Callout, Carlos Ruiz, qss FR [1877902], Juan David Arboleda (arboleda), GlobalQSS, [ 1795398 ] Process Parameter: add display and readonly logic
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GridFieldVO.SeqNoComparator
-
Field Summary
Fields Modifier and Type Field Description int
AD_Chart_ID
int
AD_Column_ID
Clumn IDint
AD_Field_ID
Field IDint
AD_FieldStyle_ID
int
AD_Infowindow_ID
AD_Infowindow_ID call process. user in case from info window call process.int
AD_LabelStyle_ID
int
AD_Process_ID
Processint
AD_Process_ID_Of_Panel
in case this field lie on parameter process panel, AD_Process_ID_Of_Panel is id of process will run in this panel it's difference with AD_Process_IDint
AD_Reference_Value_ID
Reference Valueint
AD_Tab_ID
AD_Tab_IDint
AD_Table_ID
Table IDint
AD_Window_ID
AD_Winmdow_IDint
AD_Window_ID_Of_Panel
ad_window_id of window show process dialog or infoWindow dialogString
Callout
CalloutString
ColumnName
Column nameint
ColumnSpan
ColumnSpan IDEMPIERE368String
ColumnSQL
Column sqlProperties
ctx
ContextString
DefaultValue
Default Value, never set null for itString
DefaultValue2
Process Parameter Value2String
Description
Descriptionint
DisplayLength
Display LengthString
DisplayLogic
Dislay Logic, never set null for itint
displayType
DisplayTypeString
FieldGroup
Field GroupString
FieldGroupType
Field Group Typeint
FieldLength
Field LengthString
FormatPattern
Format patternString
Header
LabelString
Help
Helpint
Included_Tab_ID
boolean
IsAllowCopy
boolean
IsAlwaysUpdateable
Always Updateableboolean
IsAutocomplete
Autocompletion for textfields - Feature Request FR [ 1757088 ]boolean
IsCollapsedByDefault
Collapse By Default *boolean
IsDefaultFocus
Default Focusboolean
IsDisplayed
Displayedboolean
IsDisplayedGrid
Displayed Gridboolean
IsEncryptedColumn
Storage Encryptionboolean
IsEncryptedField
Display Encryptionboolean
IsFieldOnly
Field Onlyboolean
IsHeading
Heading Onlyboolean
IsHtml
boolean
IsKey
PKboolean
IsMandatory
Mandatoryboolean
IsParent
FKboolean
isProcess
Is Process Parameterboolean
IsQuickForm
boolean
isRange
Process Parameter Rangeboolean
IsReadOnly
Read Onlyboolean
IsSameLine
Same Lineboolean
IsSelectionColumn
Find SelectionString
IsToolbarButton
Toolbar Buttonboolean
IsUpdateable
UpdateableMLookupInfo
lookupInfo
Lookup Value ObjectString
MandatoryLogic
Mandatory Logicint
NumLines
NumLines IDEMPIERE368String
ObscureType
Display Obscureint
PA_DashboardContent_ID
String
Placeholder
String
Placeholder2
String
ReadOnlyLogic
Read Only Logicint
SeqNo
Positionint
SeqNoGrid
Grid Display sequenceint
SeqNoSelection
Selection column sequenceint
SortNo
Order Byint
TabNo
Tab Noboolean
tabReadOnly
Is the Tab Read OnlyString
ValidationCode
Lookup Validation codeString
ValidationCodeLookup
Lookup Validation code for Find WindowString
ValueMax
Max.String
ValueMin
Min.String
VFormat
Format enforcementint
WindowNo
Window Noint
XPosition
XPosition IDEMPIERE368
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GridFieldVO
afterCreate()
Additional processing after a new vo have been created from db or cloned from cache This include asp customization, user customization and loading of lookup info.GridFieldVO
clone()
GridFieldVO
clone(Properties Ctx, int windowNo, int tabNo, int ad_Window_ID, int ad_Tab_ID, boolean TabReadOnly)
Clone Field.static GridFieldVO
create(Properties ctx, int WindowNo, int TabNo, int AD_Window_ID, int AD_Tab_ID, boolean readOnly, ResultSet rs)
Create Field Value Object.static GridFieldVO
createFromResultSet(Properties ctx, int WindowNo, int TabNo, int AD_Window_ID, int AD_Tab_ID, boolean readOnly, ResultSet rs)
Create GridFieldVO from db resultset.static GridFieldVO
createParameter(Properties ctx, int WindowNo, int WindowIDOfPanel, int infoWindowID, int AD_Column_ID, String ColumnName, String Name, int AD_Reference_ID, int AD_Reference_Value_ID, boolean IsMandatory, boolean IsEncrypted, String Placeholder)
Create parameter for infoWindowstatic GridFieldVO
createParameter(Properties ctx, int WindowNo, int ProcessIDOfPanel, int WindowIDOfPanel, int adInfoPaneId, ResultSet rs)
Init Field for Process Parameterstatic GridFieldVO
createParameter(GridFieldVO voF)
Create range "to" Parameter Field from "from" Parameter Fieldstatic GridFieldVO
createStdField(Properties ctx, int WindowNo, int TabNo, int AD_Window_ID, int AD_Tab_ID, boolean tabReadOnly, boolean isCreated, boolean isTimestamp)
Make a standard field (Created/Updated/By)static String
getSQL(Properties ctx)
Return the SQL statement used for the MFieldVO.createprotected void
initFinish()
Validate Fields and create LookupInfo if requiredvoid
loadLookupInfo()
load lookup info.void
setCtx(Properties newCtx)
Set Context including contained elementsString
toString()
String Representation
-
-
-
Field Detail
-
ctx
public Properties ctx
Context
-
WindowNo
public int WindowNo
Window No
-
TabNo
public int TabNo
Tab No
-
AD_Window_ID
public int AD_Window_ID
AD_Winmdow_ID
-
AD_Process_ID_Of_Panel
public int AD_Process_ID_Of_Panel
in case this field lie on parameter process panel, AD_Process_ID_Of_Panel is id of process will run in this panel it's difference with AD_Process_ID
-
AD_Window_ID_Of_Panel
public int AD_Window_ID_Of_Panel
ad_window_id of window show process dialog or infoWindow dialog
-
AD_Infowindow_ID
public int AD_Infowindow_ID
AD_Infowindow_ID call process. user in case from info window call process.
-
AD_Tab_ID
public int AD_Tab_ID
AD_Tab_ID
-
tabReadOnly
public boolean tabReadOnly
Is the Tab Read Only
-
isProcess
public boolean isProcess
Is Process Parameter
-
ColumnName
public String ColumnName
Column name
-
ColumnSQL
public String ColumnSQL
Column sql
-
Header
public String Header
Label
-
displayType
public int displayType
DisplayType
-
AD_Table_ID
public int AD_Table_ID
Table ID
-
AD_Column_ID
public int AD_Column_ID
Clumn ID
-
DisplayLength
public int DisplayLength
Display Length
-
IsSameLine
public boolean IsSameLine
Same Line
-
IsDisplayed
public boolean IsDisplayed
Displayed
-
IsDisplayedGrid
public boolean IsDisplayedGrid
Displayed Grid
-
SeqNo
public int SeqNo
Position
-
SeqNoGrid
public int SeqNoGrid
Grid Display sequence
-
DisplayLogic
public String DisplayLogic
Dislay Logic, never set null for it
-
DefaultValue
public String DefaultValue
Default Value, never set null for it
-
IsMandatory
public boolean IsMandatory
Mandatory
-
IsReadOnly
public boolean IsReadOnly
Read Only
-
IsUpdateable
public boolean IsUpdateable
Updateable
-
IsAlwaysUpdateable
public boolean IsAlwaysUpdateable
Always Updateable
-
IsHeading
public boolean IsHeading
Heading Only
-
IsFieldOnly
public boolean IsFieldOnly
Field Only
-
IsEncryptedField
public boolean IsEncryptedField
Display Encryption
-
IsEncryptedColumn
public boolean IsEncryptedColumn
Storage Encryption
-
IsSelectionColumn
public boolean IsSelectionColumn
Find Selection
-
SeqNoSelection
public int SeqNoSelection
Selection column sequence
-
SortNo
public int SortNo
Order By
-
FieldLength
public int FieldLength
Field Length
-
VFormat
public String VFormat
Format enforcement
-
FormatPattern
public String FormatPattern
Format pattern
-
ValueMin
public String ValueMin
Min. Value
-
ValueMax
public String ValueMax
Max. Value
-
FieldGroup
public String FieldGroup
Field Group
-
FieldGroupType
public String FieldGroupType
Field Group Type
-
IsKey
public boolean IsKey
PK
-
IsParent
public boolean IsParent
FK
-
Callout
public String Callout
Callout
-
AD_Process_ID
public int AD_Process_ID
Process
-
Description
public String Description
Description
-
Help
public String Help
Help
-
MandatoryLogic
public String MandatoryLogic
Mandatory Logic
-
ReadOnlyLogic
public String ReadOnlyLogic
Read Only Logic
-
ObscureType
public String ObscureType
Display Obscure
-
IsDefaultFocus
public boolean IsDefaultFocus
Default Focus
-
ValidationCode
public String ValidationCode
Lookup Validation code
-
ValidationCodeLookup
public String ValidationCodeLookup
Lookup Validation code for Find Window
-
AD_Reference_Value_ID
public int AD_Reference_Value_ID
Reference Value
-
isRange
public boolean isRange
Process Parameter Range
-
DefaultValue2
public String DefaultValue2
Process Parameter Value2
-
lookupInfo
public MLookupInfo lookupInfo
Lookup Value Object
-
AD_Field_ID
public int AD_Field_ID
Field ID
-
XPosition
public int XPosition
XPosition IDEMPIERE368
-
ColumnSpan
public int ColumnSpan
ColumnSpan IDEMPIERE368
-
NumLines
public int NumLines
NumLines IDEMPIERE368
-
Included_Tab_ID
public int Included_Tab_ID
-
IsCollapsedByDefault
public boolean IsCollapsedByDefault
Collapse By Default *
-
IsAutocomplete
public boolean IsAutocomplete
Autocompletion for textfields - Feature Request FR [ 1757088 ]
-
IsAllowCopy
public boolean IsAllowCopy
-
IsToolbarButton
public String IsToolbarButton
Toolbar Button
-
AD_Chart_ID
public int AD_Chart_ID
-
AD_LabelStyle_ID
public int AD_LabelStyle_ID
-
AD_FieldStyle_ID
public int AD_FieldStyle_ID
-
PA_DashboardContent_ID
public int PA_DashboardContent_ID
-
Placeholder
public String Placeholder
-
Placeholder2
public String Placeholder2
-
IsHtml
public boolean IsHtml
-
IsQuickForm
public boolean IsQuickForm
-
-
Method Detail
-
getSQL
public static String getSQL(Properties ctx)
Return the SQL statement used for the MFieldVO.create- Parameters:
ctx
- context- Returns:
- SQL with or w/o translation and 1 parameter
-
create
public static GridFieldVO create(Properties ctx, int WindowNo, int TabNo, int AD_Window_ID, int AD_Tab_ID, boolean readOnly, ResultSet rs)
Create Field Value Object. The vo return is not safe to cache directly or through clone- Parameters:
ctx
- contextWindowNo
- windowTabNo
- tabAD_Window_ID
- windowAD_Tab_ID
- tabreadOnly
- r/ors
- resultset AD_Field_v- Returns:
- MFieldVO
-
afterCreate
public GridFieldVO afterCreate()
Additional processing after a new vo have been created from db or cloned from cache This include asp customization, user customization and loading of lookup info.- Returns:
- GridFieldVO
-
createFromResultSet
public static GridFieldVO createFromResultSet(Properties ctx, int WindowNo, int TabNo, int AD_Window_ID, int AD_Tab_ID, boolean readOnly, ResultSet rs)
Create GridFieldVO from db resultset. No further processing is apply to the vo and the vo is safe to cache through clone- Parameters:
ctx
-WindowNo
-TabNo
-AD_Window_ID
-AD_Tab_ID
-readOnly
-rs
-- Returns:
- GridFieldVO
-
createParameter
public static GridFieldVO createParameter(Properties ctx, int WindowNo, int ProcessIDOfPanel, int WindowIDOfPanel, int adInfoPaneId, ResultSet rs)
Init Field for Process Parameter- Parameters:
ctx
- contextWindowNo
- windowrs
- result set AD_Process_Para- Returns:
- MFieldVO
-
createParameter
public static GridFieldVO createParameter(GridFieldVO voF)
Create range "to" Parameter Field from "from" Parameter Field- Parameters:
voF
- field value object- Returns:
- to MFieldVO
-
createParameter
public static GridFieldVO createParameter(Properties ctx, int WindowNo, int WindowIDOfPanel, int infoWindowID, int AD_Column_ID, String ColumnName, String Name, int AD_Reference_ID, int AD_Reference_Value_ID, boolean IsMandatory, boolean IsEncrypted, String Placeholder)
Create parameter for infoWindow- Parameters:
ctx
- ctxWindowNo
- WindowNoAD_Column_ID
- AD_Column_IDColumnName
- ColumnNameName
- NameAD_Reference_ID
- AD_Reference_IDAD_Reference_Value_ID
- AD_Reference_Value_IDIsMandatory
- IsMandatoryIsEncrypted
- IsEncrypted- Returns:
- GridFieldV0 v0
-
createStdField
public static GridFieldVO createStdField(Properties ctx, int WindowNo, int TabNo, int AD_Window_ID, int AD_Tab_ID, boolean tabReadOnly, boolean isCreated, boolean isTimestamp)
Make a standard field (Created/Updated/By)- Parameters:
ctx
- contextWindowNo
- windowTabNo
- tabAD_Window_ID
- windowAD_Tab_ID
- tabtabReadOnly
- rab is r/oisCreated
- is Created fieldisTimestamp
- is the timestamp (not by)- Returns:
- MFieldVO
-
setCtx
public void setCtx(Properties newCtx)
Set Context including contained elements- Parameters:
newCtx
- new context
-
initFinish
protected void initFinish()
Validate Fields and create LookupInfo if required
-
loadLookupInfo
public void loadLookupInfo()
load lookup info. used by findwindow to loadlookupinfo for invisible field
-
clone
public GridFieldVO clone(Properties Ctx, int windowNo, int tabNo, int ad_Window_ID, int ad_Tab_ID, boolean TabReadOnly)
Clone Field.- Parameters:
Ctx
- ctxwindowNo
- window notabNo
- tab noad_Window_ID
- window idad_Tab_ID
- tab idTabReadOnly
- r/o- Returns:
- Field or null
-
clone
public GridFieldVO clone()
-
-