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 classGridFieldVO.SeqNoComparator
-
Field Summary
Fields Modifier and Type Field Description intAD_Chart_IDintAD_Column_IDClumn IDintAD_Field_IDField IDintAD_FieldStyle_IDintAD_Infowindow_IDAD_Infowindow_ID call process. user in case from info window call process.intAD_LabelStyle_IDintAD_Process_IDProcessintAD_Process_ID_Of_Panelin 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_IDintAD_Reference_Value_IDReference ValueintAD_Tab_IDAD_Tab_IDintAD_Table_IDTable IDintAD_Window_IDAD_Winmdow_IDintAD_Window_ID_Of_Panelad_window_id of window show process dialog or infoWindow dialogStringCalloutCalloutStringColumnNameColumn nameintColumnSpanColumnSpan IDEMPIERE368StringColumnSQLColumn sqlPropertiesctxContextStringDefaultValueDefault Value, never set null for itStringDefaultValue2Process Parameter Value2StringDescriptionDescriptionintDisplayLengthDisplay LengthStringDisplayLogicDislay Logic, never set null for itintdisplayTypeDisplayTypeStringFieldGroupField GroupStringFieldGroupTypeField Group TypeintFieldLengthField LengthStringFormatPatternFormat patternStringHeaderLabelStringHelpHelpintIncluded_Tab_IDbooleanIsAllowCopybooleanIsAlwaysUpdateableAlways UpdateablebooleanIsAutocompleteAutocompletion for textfields - Feature Request FR [ 1757088 ]booleanIsCollapsedByDefaultCollapse By Default *booleanIsDefaultFocusDefault FocusbooleanIsDisplayedDisplayedbooleanIsDisplayedGridDisplayed GridbooleanIsEncryptedColumnStorage EncryptionbooleanIsEncryptedFieldDisplay EncryptionbooleanIsFieldOnlyField OnlybooleanIsHeadingHeading OnlybooleanIsHtmlbooleanIsKeyPKbooleanIsMandatoryMandatorybooleanIsParentFKbooleanisProcessIs Process ParameterbooleanIsQuickFormbooleanisRangeProcess Parameter RangebooleanIsReadOnlyRead OnlybooleanIsSameLineSame LinebooleanIsSelectionColumnFind SelectionStringIsToolbarButtonToolbar ButtonbooleanIsUpdateableUpdateableMLookupInfolookupInfoLookup Value ObjectStringMandatoryLogicMandatory LogicintNumLinesNumLines IDEMPIERE368StringObscureTypeDisplay ObscureintPA_DashboardContent_IDStringPlaceholderStringPlaceholder2StringReadOnlyLogicRead Only LogicintSeqNoPositionintSeqNoGridGrid Display sequenceintSeqNoSelectionSelection column sequenceintSortNoOrder ByintTabNoTab NobooleantabReadOnlyIs the Tab Read OnlyStringValidationCodeLookup Validation codeStringValidationCodeLookupLookup Validation code for Find WindowStringValueMaxMax.StringValueMinMin.StringVFormatFormat enforcementintWindowNoWindow NointXPositionXPosition IDEMPIERE368
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GridFieldVOafterCreate()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.GridFieldVOclone()GridFieldVOclone(Properties Ctx, int windowNo, int tabNo, int ad_Window_ID, int ad_Tab_ID, boolean TabReadOnly)Clone Field.static GridFieldVOcreate(Properties ctx, int WindowNo, int TabNo, int AD_Window_ID, int AD_Tab_ID, boolean readOnly, ResultSet rs)Create Field Value Object.static GridFieldVOcreateFromResultSet(Properties ctx, int WindowNo, int TabNo, int AD_Window_ID, int AD_Tab_ID, boolean readOnly, ResultSet rs)Create GridFieldVO from db resultset.static GridFieldVOcreateParameter(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 GridFieldVOcreateParameter(Properties ctx, int WindowNo, int ProcessIDOfPanel, int WindowIDOfPanel, int adInfoPaneId, ResultSet rs)Init Field for Process Parameterstatic GridFieldVOcreateParameter(GridFieldVO voF)Create range "to" Parameter Field from "from" Parameter Fieldstatic GridFieldVOcreateStdField(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 StringgetSQL(Properties ctx)Return the SQL statement used for the MFieldVO.createprotected voidinitFinish()Validate Fields and create LookupInfo if requiredvoidloadLookupInfo()load lookup info.voidsetCtx(Properties newCtx)Set Context including contained elementsStringtoString()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()
-
-