|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
org.compiere.framework.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.framework.Lookup |
|---|
log, m_WindowNo, p_data |
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
MLookup(Ctx ctx,
int windowNo,
int displayType)
MLookup Constructor. |
|
| Method Summary | |
|---|---|
boolean |
containsKey(Object key)
The Lookup contains the key |
void |
disableValidation()
Disable Validation (for Search/Find) |
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<NamePair> |
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 |
getValidation()
Get Validation SQL |
Query |
getZoomQuery()
Get Zoom Query String |
int |
getZoomWindow()
Get Zoom |
int |
getZoomWindow(Query query)
Get Zoom |
boolean |
hasInactive()
Has inactive elements in list |
MLookup |
initialize(MLookupInfo info)
Initialize |
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()
String Representation |
| Methods inherited from class org.compiere.framework.Lookup |
|---|
addElement, addElement, fillComboBox, fillComboBox, getCtx, getDisplayType, getElementAt, getIndexOf, getSelectedItem, getSize, getWindowNo, insertElementAt, insertElementAt, isValidationDisabled, put, put, removeElement, removeElementAt, setContext, setDisplayType, setSelectedItem, setSelectedItemAlways |
| 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(Ctx ctx,
int windowNo,
int displayType)
ctx - contextwindowNo - windowdisplayType - display type| Method Detail |
|---|
public MLookup initialize(MLookupInfo info)
info - info
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()
Lookup
toString in class Lookuppublic 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 void disableValidation()
disableValidation in class Lookuppublic 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<NamePair> 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 e.g. parent
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 getZoomWindow()
getZoomWindow in class Lookuppublic int getZoomWindow(Query query)
getZoomWindow in class Lookupquery - query
public Query 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 Lookuporg.compiere.model.Lookup#removeAllElements()
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||