Adempiere 3.5.2a

org.compiere.model
Class GridFieldVO

java.lang.Object
  extended by org.compiere.model.GridFieldVO
All Implemented Interfaces:
Serializable

public class GridFieldVO
extends Object
implements Serializable

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]
See Also:
to FR [1877902], Serialized Form

Field Summary
 int AD_Column_ID
          Clumn ID
 int AD_Process_ID
          Process
 int AD_Reference_Value_ID
          Reference Value
 int AD_Tab_ID
          AD_Tab_ID
 int AD_Table_ID
          Table ID
 int AD_Window_ID
          AD_Winmdow_ID
 String Callout
          Callout
 String ColumnName
          Column name
 String ColumnSQL
          Column sql
 Properties ctx
          Context
 String DefaultValue
          Default Value
 String DefaultValue2
          Process Parameter Value2
 String Description
          Description
 int DisplayLength
          Display Length
 String DisplayLogic
          Dislay Logic
 int displayType
          DisplayType
 String FieldGroup
          Field Group
 String FieldGroupType
          Field Group Type
 int FieldLength
          Field Length
 String Header
          Label
 String Help
          Help
 int Included_Tab_ID
           
 String InfoFactoryClass
           
 boolean IsAlwaysUpdateable
          Always Updateable
 boolean IsAutocomplete
          Autocompletion for textfields - Feature Request FR [ 1757088 ]
 boolean IsCollapsedByDefault
          Collapse By Default *
 boolean IsDisplayed
          Displayed
 boolean IsEncryptedColumn
          Storage Encryption
 boolean IsEncryptedField
          Display Encryption
 boolean IsFieldOnly
          Field Only
 boolean IsHeading
          Heading Only
 boolean IsKey
          PK
 boolean IsMandatory
          Mandatory
 boolean IsParent
          FK
 boolean isProcess
          Is Process Parameter
 boolean isRange
          Process Parameter Range
 boolean IsReadOnly
          Read Only
 boolean IsSameLine
          Same Line
 boolean IsSelectionColumn
          Find Selection
 boolean IsUpdateable
          Updateable
 MLookupInfo lookupInfo
          Lookup Value Object
 String MandatoryLogic
          Mandatory Logic
 String ObscureType
          Display Obscure
 String ReadOnlyLogic
          Read Only Logic
 int SortNo
          Order By
 int TabNo
          Tab No
 boolean tabReadOnly
          Is the Tab Read Only
 String ValidationCode
          Lookup Validation code
 String ValueMax
          Max.
 String ValueMin
          Min.
 String VFormat
          Format enforcement
 int WindowNo
          Window No
 
Method Summary
 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 createParameter(GridFieldVO voF)
          Create range "to" Parameter Field from "from" Parameter Field
static GridFieldVO createParameter(Properties ctx, int WindowNo, ResultSet rs)
          Init Field for Process Parameter
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)
static String getSQL(Properties ctx)
          Return the SQL statement used for the MFieldVO.create
protected  void initFinish()
          Validate Fields and create LookupInfo if required
 void setCtx(Properties newCtx)
          Set Context including contained elements
 String toString()
          String Representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

InfoFactoryClass

public String InfoFactoryClass

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_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


DisplayLogic

public String DisplayLogic
Dislay Logic


DefaultValue

public String DefaultValue
Default Value


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


SortNo

public int SortNo
Order By


FieldLength

public int FieldLength
Field Length


VFormat

public String VFormat
Format enforcement


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


ValidationCode

public String ValidationCode
Lookup Validation code


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


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 ]

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

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

createParameter

public static GridFieldVO createParameter(Properties ctx,
                                          int WindowNo,
                                          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

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


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

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.