|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
org.compiere.model.Lookup
org.compiere.model.MLookup
public final class MLookup
An intelligent MutableComboBoxModel, which determines what can be cached.
Validated - SQL is final / not dynamic
AllLoaded - All Records are loaded
Get Info about Lookup
- SQL
- KeyColumn
- Zoom Target
| Field Summary | |
|---|---|
static String |
INACTIVE_E
Inactive Marker End |
static String |
INACTIVE_S
Inactive Marker Start |
| Fields inherited from class org.compiere.model.Lookup |
|---|
log, p_data |
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
MLookup(MLookupInfo info,
int TabNo)
MLookup Constructor |
|
| Method Summary | |
|---|---|
boolean |
containsKey(Object key)
The Lookup contains the key |
void |
dispose()
Dispose |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
NamePair |
get(Object key)
Get value (name) for key. |
int |
getAD_Reference_Value_ID()
Get Reference Value |
String |
getColumnName()
Get underlying fully qualified Table.Column Name |
ArrayList<Object> |
getData(boolean mandatory,
boolean onlyValidated,
boolean onlyActive,
boolean temporary)
Return data as Array containing Value/KeyNamePair |
NamePair |
getDirect(Object key,
boolean saveInCache,
boolean cacheLocal)
Get Data Direct from Table. |
String |
getDisplay(Object key)
Get Display value (name). |
String |
getInfoFactoryClass()
Get custom info factory class |
String |
getValidation()
Get Validation SQL |
int |
getZoom()
Get Zoom |
int |
getZoom(MQuery query)
Get Zoom |
MQuery |
getZoomQuery()
Get Zoom Query String |
boolean |
hasInactive()
Has inactive elements in list |
boolean |
isAllLoaded()
Is it all loaded |
boolean |
isValidated()
Is the List fully Validated |
void |
loadComplete()
Wait until async Load Complete |
int |
refresh()
Refresh & return number of items read. |
int |
refresh(boolean loadParent)
Refresh & return number of items read |
void |
removeAllElements()
Remove All cached Elements |
int |
size()
Return Size |
String |
toString()
|
| Methods inherited from class org.compiere.model.Lookup |
|---|
addElement, fillComboBox, fillComboBox, getDisplayType, getElementAt, getIndexOf, getSelectedItem, getSize, getWindowNo, insertElementAt, isLoaded, isMandatory, put, put, removeElement, removeElementAt, setMandatory, setSelectedItem |
| Methods inherited from class javax.swing.AbstractListModel |
|---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.ListModel |
|---|
addListDataListener, removeListDataListener |
| Field Detail |
|---|
public static final String INACTIVE_S
public static final String INACTIVE_E
| Constructor Detail |
|---|
public MLookup(MLookupInfo info,
int TabNo)
info - infoTabNo - tab no| Method Detail |
|---|
public void dispose()
dispose in class Lookuppublic void loadComplete()
loadComplete in class Lookuppublic NamePair get(Object key)
get in class Lookupkey - key (Integer for Keys or String for Lists)
public String getDisplay(Object key)
getDisplay in class Lookupkey - key
public boolean containsKey(Object key)
containsKey in class Lookupkey - key
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.public int size()
public boolean isAllLoaded()
public boolean isValidated()
isValidated in class Lookuppublic String getValidation()
getValidation in class Lookuppublic int getAD_Reference_Value_ID()
public boolean hasInactive()
hasInactive in class Lookup
public ArrayList<Object> getData(boolean mandatory,
boolean onlyValidated,
boolean onlyActive,
boolean temporary)
getData in class Lookupmandatory - if not mandatory, an additional empty value is insertedonlyValidated - only validatedonlyActive - only activetemporary - force load for temporary display
public NamePair getDirect(Object key,
boolean saveInCache,
boolean cacheLocal)
getDirect in class Lookupkey - keysaveInCache - save in cache for r/wcacheLocal - cache locally for r/o
public int getZoom()
getZoom in class Lookuppublic int getZoom(MQuery query)
getZoom in class Lookupquery - query
public MQuery getZoomQuery()
getZoomQuery in class Lookuppublic String getColumnName()
getColumnName in class Lookuppublic int refresh()
refresh in class Lookuppublic int refresh(boolean loadParent)
loadParent - get data of parent lookups
public void removeAllElements()
removeAllElements in class LookupLookup.removeAllElements()public String getInfoFactoryClass()
Lookup
getInfoFactoryClass in class Lookup
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||