Class 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
    • Field Detail

      • 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 - context
        WindowNo - window
        TabNo - tab
        AD_Window_ID - window
        AD_Tab_ID - tab
        readOnly - r/o
        rs - 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 - context
        WindowNo - window
        rs - 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 - ctx
        WindowNo - WindowNo
        AD_Column_ID - AD_Column_ID
        ColumnName - ColumnName
        Name - Name
        AD_Reference_ID - AD_Reference_ID
        AD_Reference_Value_ID - AD_Reference_Value_ID
        IsMandatory - IsMandatory
        IsEncrypted - 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 - context
        WindowNo - window
        TabNo - tab
        AD_Window_ID - window
        AD_Tab_ID - tab
        tabReadOnly - rab is r/o
        isCreated - is Created field
        isTimestamp - 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 - ctx
        windowNo - window no
        tabNo - tab no
        ad_Window_ID - window id
        ad_Tab_ID - tab id
        TabReadOnly - r/o
        Returns:
        Field or null
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class Object
        Returns:
        info