|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.GridField
public class GridField
Grid Field Model.
Fields are a combination of AD_Field (the display attributes) and AD_Column (the storage attributes).
The Field maintains the current edited value. If the value is changed,
it fire PropertyChange "FieldValue".
If the background is changed the PropertyChange "FieldAttribute" is fired.
Usually editors listen to their fields.
| Field Summary | |
|---|---|
static String |
INSERTING
Indicator for new Value |
static int |
MAXDISPLAY_LENGTH
Max Display Length = 60 |
static String |
PROPERTY
PropertyChange Name |
| Constructor Summary | |
|---|---|
GridField(GridFieldVO vo)
Field Constructor. |
|
| Method Summary | |
|---|---|
void |
addDependencies(ArrayList<String> list)
Add Display Dependencies to given List. |
void |
addPropertyChangeListener(PropertyChangeListener l)
Add Property Change Listener |
static GridField[] |
createFields(Ctx ctx,
int WindowNo,
int TabNo,
int AD_Tab_ID,
int AD_UserDef_Win_ID)
Create Fields. |
protected void |
dispose()
Dispose |
String |
get_ValueAsString(String variableName)
Get Variable Value (Evaluatee) |
int |
getAD_Column_ID()
Get AD_Column_ID |
int |
getAD_Process_ID()
Get AD_Process_ID |
int |
getAD_Reference_Value_ID()
Get AD_Reference_Value_ID |
int |
getAD_Tab_ID()
Get AD_Tab_ID |
int |
getAD_Window_ID()
Get AD_Window_ID |
String |
getCallout()
Get Callout |
String |
getColumnName()
Get Column Name |
String |
getColumnSQL(boolean withAS)
Get Column Name or SQL .. with/without AS |
Object |
getDefault(Ctx ctx,
int windowNo)
Create default value. |
String |
getDefaultValue()
Get Default Value |
ArrayList<String> |
getDependentOn()
Get a list of variables, this field is dependent on |
String |
getDescription()
Get Description |
int |
getDisplayLength()
Get Display Length |
String |
getDisplayLogic()
Get DisplayLogic |
int |
getDisplayType()
Get Display Type |
String |
getErrorValue()
Get Error Value (the value, which cuased some Error) AND reset it to null |
String |
getFieldGroup()
Get Field Group |
int |
getFieldLength()
Get Field Length |
String |
getHeader()
Get Header |
String |
getHelp()
Get Help |
Lookup |
getLookup()
Get Lookup, may return null |
MLookupInfo |
getLookupInfo()
Get LookupInfo, may return null; |
char |
getMnemonic()
Get Label Mnemonic |
String |
getObscureType()
Get Obscure Type |
Object |
getOldValue()
Get old/previous Value. |
int |
getSortNo()
Get Sort No |
Object |
getValue()
Get Value |
String |
getValueMax()
Get Value Max |
String |
getValueMin()
Get Value Min |
String |
getVFormat()
Get VFormat |
GridFieldVO |
getVO()
Get VO |
int |
getWindowNo()
Get Window No |
boolean |
isAlwaysUpdateable()
Is Always Updateable |
boolean |
isCreateMnemonic()
Create Mnemonic for field |
boolean |
isDefaultFocus()
Default Focus |
boolean |
isDisplayed()
Is Displayed |
boolean |
isDisplayed(boolean checkContext)
Is the Column Visible ? |
boolean |
isEditable(boolean checkContext)
Is it Editable - checks IsActive, IsUpdateable, and isDisplayed |
boolean |
isEncrypted()
Is Encrypted Field (display) or obscured |
boolean |
isEncryptedColumn()
Is Encrypted Column (data) |
boolean |
isEncryptedField()
Is Encrypted Field (display) |
boolean |
isError()
Get Background Error. |
boolean |
isErrorValue()
Return true, if value has Error (for HTML interface) AND reset it to false |
boolean |
isFieldOnly()
Is Field Only |
boolean |
isHeading()
Is Heading |
boolean |
isKey()
Key |
boolean |
isLongField()
Is this a long (string/text) field (over 60/2=30 characters) |
boolean |
isLookup()
Is this field a Lookup?. |
boolean |
isMandatory(boolean checkContext)
Is it Mandatory to enter for user? |
boolean |
isParentColumn()
Parent Column |
boolean |
isParentValue()
Parent Link Value |
boolean |
isReadOnly()
Is ReadOnly |
boolean |
isSameLine()
Is SameLine |
boolean |
isSelectionColumn()
Is Selection Column |
boolean |
isUpdateable()
Is Updateable |
boolean |
isVirtualColumn()
Is Virtual Column |
void |
loadLookup()
Set Lookup for columns with lookup |
void |
lookupLoadComplete()
Wait until Load is complete |
boolean |
refreshLookup()
Refresh Lookup if the lookup is unstable |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove Property Change Listener |
void |
setDisplayed(boolean displayed)
Overwrite Displayed |
void |
setDisplayLength(int length)
Overwrite default DisplayLength |
void |
setDisplayType(int AD_Reference_ID)
Get Display Type |
void |
setError(boolean error)
Set Error. |
void |
setErrorValue(String errorValue)
Set Error Value (the value, which cuased some Error) |
void |
setInserting(boolean inserting)
Set Inserting (allows to enter not updateable fields). |
void |
setMnemonic(char mnemonic)
Set Label Mnemonic |
void |
setValue()
Set Value to null. |
void |
setValue(Object newValue,
boolean inserting)
Set Value. |
void |
setValueNoFire(boolean value)
Set old/previous Value. |
String |
setValueValidate(String newValue,
boolean inserting)
Set Value and Validate |
String |
toString()
String representation |
String |
toStringX()
Extended String representation |
boolean |
validateValue()
Validate initial Field Value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAXDISPLAY_LENGTH
public static final String PROPERTY
public static final String INSERTING
| Constructor Detail |
|---|
public GridField(GridFieldVO vo)
vo - ValueObjecy| Method Detail |
|---|
protected void dispose()
public void loadLookup()
public void lookupLoadComplete()
public Lookup getLookup()
public MLookupInfo getLookupInfo()
public boolean isLookup()
public boolean refreshLookup()
public ArrayList<String> getDependentOn()
public void setError(boolean error)
error - true if errorpublic boolean isError()
public boolean isMandatory(boolean checkContext)
checkContext - - check environment (requires correct row position)
public boolean isEditable(boolean checkContext)
checkContext - if true checks Context for Active, IsProcessed, LinkColumn
public void setInserting(boolean inserting)
inserting - true if inserting
public Object getDefault(Ctx ctx,
int windowNo)
(a) Key/Parent/IsActive/SystemAccess
(b) SQL Default
(c) Column Default // system integrity
(d) User Preference
(e) System Preference
(f) DataType Defaults
Don't default from Context => use explicit defaultValue
(would otherwise copy previous record)
public boolean validateValue()
public boolean isDisplayed(boolean checkContext)
checkContext - - check environment (requires correct row position)
public String get_ValueAsString(String variableName)
get_ValueAsString in interface EvaluateevariableName - name
public void addDependencies(ArrayList<String> list)
list - list to be added topublic String getColumnName()
public String getColumnSQL(boolean withAS)
withAS - include AS ColumnName for virtual columns in select statements
public boolean isVirtualColumn()
public String getHeader()
public int getDisplayType()
public void setDisplayType(int AD_Reference_ID)
AD_Reference_ID - display typepublic int getAD_Reference_Value_ID()
public int getAD_Window_ID()
public int getWindowNo()
public int getAD_Column_ID()
public int getDisplayLength()
public boolean isSameLine()
public boolean isDisplayed()
public String getDisplayLogic()
public String getDefaultValue()
public boolean isReadOnly()
public boolean isUpdateable()
public boolean isAlwaysUpdateable()
public boolean isHeading()
public boolean isFieldOnly()
public boolean isEncryptedField()
public boolean isEncrypted()
public boolean isEncryptedColumn()
public boolean isSelectionColumn()
public String getObscureType()
public int getSortNo()
public int getFieldLength()
public String getVFormat()
public String getValueMin()
public String getValueMax()
public String getFieldGroup()
public boolean isKey()
public boolean isParentColumn()
public boolean isParentValue()
public String getCallout()
public int getAD_Process_ID()
public String getDescription()
public String getHelp()
public int getAD_Tab_ID()
public GridFieldVO getVO()
public boolean isDefaultFocus()
public boolean isLongField()
public void setValue()
Do not update context - called from GridTab.setCurrentRow Send Bean PropertyChange if there is a change
public void setValue(Object newValue,
boolean inserting)
Update context, if not text or RowID; Send Bean PropertyChange if there is a change
newValue - new valueinserting - true if inserting
public String setValueValidate(String newValue,
boolean inserting)
newValue - valueinserting - insert
public Object getValue()
public void setValueNoFire(boolean value)
value - if false property change will always be firespublic Object getOldValue()
public void setErrorValue(String errorValue)
errorValue - error messagepublic String getErrorValue()
public boolean isErrorValue()
public void setDisplayLength(int length)
length - new lengthpublic void setDisplayed(boolean displayed)
displayed - trie if displayedpublic boolean isCreateMnemonic()
public char getMnemonic()
public void setMnemonic(char mnemonic)
mnemonic - Mnemonicpublic String toString()
toString in class Objectpublic String toStringX()
public void removePropertyChangeListener(PropertyChangeListener l)
l - listenerpublic void addPropertyChangeListener(PropertyChangeListener l)
l - listener
public static GridField[] createFields(Ctx ctx,
int WindowNo,
int TabNo,
int AD_Tab_ID,
int AD_UserDef_Win_ID)
ctx - contextWindowNo - windowTabNo - tab noAD_Tab_ID - tab
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||