|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.VO
org.compiere.controller.UIFieldVO
org.compiere.controller.UIField
public class UIField
User Interface Field
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class org.compiere.controller.UIFieldVO |
|---|
createdMS |
| Fields inherited from class org.compiere.framework.VO |
|---|
p_vos, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
UIField(UIFieldVO vo)
UIField |
|
| Method Summary | |
|---|---|
protected void |
addImpactsUIColumn(String columnName)
Add Column name Impacting UI of this column |
protected void |
addImpactsValueColumn(String columnName)
Add Column name Impacting Value of this column |
BigDecimal |
convertToBigDecimal(String stringValue)
Convert to BigDecimal. |
int |
convertToInteger(String stringValue)
Convert to Integer Checks also data type. |
String |
convertToString(Object value)
Convert to String |
Timestamp |
convertToTimestamp(String stringValue)
Convert to Timestamp Checks also data type. |
Object |
getDefault(CContext ctx,
int WindowNo,
UITab tab)
Create default value. |
String |
getDefaultAsString(CContext ctx,
int WindowNo,
UITab tab)
Get Default As String |
ArrayList<String> |
getDependsOnUI()
Get the list of column names this field Depends On for UI. |
ArrayList<String> |
getDependsOnValue()
Get the list of column names this field Depends On for Value. |
ArrayList<String> |
getImpactsUI()
Get the list of column names this field impacts their UI. |
ArrayList<String> |
getImpactsValue()
Get the list of column names this field impacts their Value. |
String |
getLabel()
Get Label (Name w/o Mnemonic) |
Lookup |
getLookup()
Get Lookup |
ArrayList<NamePair> |
getLookupData(Ctx ctx,
int windowNo,
boolean refresh)
Get Lookup Data |
String |
getLookupDisplay(CContext ctx,
int windowNo,
String key)
Get Lookup Data |
String |
getLookupDisplay(CContext ctx,
int windowNo,
String key,
boolean cache)
Get Lookup Data |
MLookupInfo |
getLookupInfo()
Get Lookup Info |
char |
getMnemonic()
Get Label Mnemonic |
int |
getSortNoAsInt()
Get Sort No |
boolean |
initialize(CContext ctx,
int WindowNo)
Initialize Field |
boolean |
isColumnAccess(Ctx ctx)
Does the Role in the context have r/w access to this column? |
protected boolean |
isCreateMnemonic()
Create Mnemonic for field |
boolean |
isDependentUI()
Field is Dependent on others for UI |
boolean |
isDependentValue()
Field is Dependent on other fields for Value |
boolean |
isDisplayed(CContext ctx,
int WindowNo)
Field is Displayed |
boolean |
isEditable(CContext ctx,
int WindowNo,
UITab tab,
boolean inserting)
Is it Editable - checks IsActive, IsUpdateable, and isDisplayed |
boolean |
isError()
Get Background Error. |
boolean |
isImpactsUI()
Has Impact on UI. |
boolean |
isImpactsUITab()
Columns impact Tab UI |
boolean |
isImpactsValue()
Has Impact when value changes. |
boolean |
isLookup()
Is this field a Lookup?. |
boolean |
isMandatory(CContext ctx,
int WindowNo)
Is Field Mandatory |
boolean |
isParentValue(UITab tab)
Parent Link Value |
boolean |
isVirtualColumn()
Is Virtual Column |
void |
lookupLoadComplete()
Wait until Load is complete |
void |
setError(boolean error)
Set Error. |
protected void |
setImpactsUITab(boolean impacts)
Set Tab UI is impacted by column |
protected void |
setMnemonic(char mnemonic)
Set Label Mnemonic |
String |
toString()
String Representation |
String |
validateValueAsString(String oldValue,
String newValue)
Set Value As String |
| Methods inherited from class org.compiere.framework.VO |
|---|
clear, clone, containsKey, containsValue, dump, entrySet, get_xmlDocument, get_xmlString, get_xmlString, get, getData, getEmbedded, getHashMap, isEmpty, keySet, put, put, putAll, remove, setEmbedded, setHdrInfo, size, toStringX, values |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public UIField(UIFieldVO vo)
vo - | Method Detail |
|---|
public int getSortNoAsInt()
public boolean isVirtualColumn()
public boolean isMandatory(CContext ctx,
int WindowNo)
ctx - optional checks Context
public boolean isDisplayed(CContext ctx,
int WindowNo)
ctx - optional checks context
public boolean isEditable(CContext ctx,
int WindowNo,
UITab tab,
boolean inserting)
ctx - optional checks context for Active, IsProcessed, LinkColumnWindowNo - windowtab - sibling tabinserting -
public boolean isColumnAccess(Ctx ctx)
ctx - context for role
public boolean isLookup()
public boolean initialize(CContext ctx,
int WindowNo)
ctx - contextWindowNo - window
public void lookupLoadComplete()
public ArrayList<NamePair> getLookupData(Ctx ctx,
int windowNo,
boolean refresh)
ctx - contextwindowNo - windowrefresh - requery data
public Lookup getLookup()
public MLookupInfo getLookupInfo()
public String getLookupDisplay(CContext ctx,
int windowNo,
String key)
ctx - contextwindowNo - windowkey - the string key value
public String getLookupDisplay(CContext ctx,
int windowNo,
String key,
boolean cache)
ctx - contextwindowNo - windowkey - the string key valuewhether - read from cache or from table
public Object getDefault(CContext ctx,
int WindowNo,
UITab tab)
(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)
ctx - contextWindowNo - windowtab - the containing tab
public String getDefaultAsString(CContext ctx,
int WindowNo,
UITab tab)
ctx - contextWindowNo - window notab - tab
public BigDecimal convertToBigDecimal(String stringValue)
stringValue - value
public int convertToInteger(String stringValue)
stringValue - value
public Timestamp convertToTimestamp(String stringValue)
stringValue - value
public String convertToString(Object value)
value - value
public boolean isParentValue(UITab tab)
tab - tab
public ArrayList<String> getDependsOnUI()
public ArrayList<String> getDependsOnValue()
public boolean isDependentUI()
public boolean isDependentValue()
protected void addImpactsUIColumn(String columnName)
columnName - column namepublic ArrayList<String> getImpactsUI()
protected void addImpactsValueColumn(String columnName)
columnName - column namepublic ArrayList<String> getImpactsValue()
protected void setImpactsUITab(boolean impacts)
impacts - true if tab impactedpublic boolean isImpactsUITab()
public boolean isImpactsValue()
public boolean isImpactsUI()
public String validateValueAsString(String oldValue,
String newValue)
newValue - newoldValue - old
public String getLabel()
protected boolean isCreateMnemonic()
public char getMnemonic()
protected void setMnemonic(char mnemonic)
mnemonic - Mnemonicpublic void setError(boolean error)
error - true if errorpublic boolean isError()
public String toString()
toString in class UIFieldVO
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||