|
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.MLocatorLookup
public final class MLocatorLookup
Warehouse Locator Lookup Model. (Lookup Model is model.Lookup.java)
| Field Summary | |
|---|---|
protected int |
C_Locator_ID
|
| Fields inherited from class org.compiere.model.Lookup |
|---|
log, p_data |
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
MLocatorLookup(Properties ctx,
int WindowNo)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
containsKey(Object key)
The Lookup contains the key |
void |
dispose()
Dispose |
NamePair |
get(Object key)
Get value |
String |
getColumnName()
Get underlying fully qualified Table.Column Name |
Collection<MLocator> |
getData()
Return info as ArrayList containing Locator, waits for the loader to finish |
ArrayList<Object> |
getData(boolean mandatory,
boolean onlyValidated,
boolean onlyActive,
boolean temporary)
Return data as sorted ArrayList |
NamePair |
getDirect(Object keyValue,
boolean saveInCache,
String trxName)
Get Data Direct from Table |
String |
getDisplay(Object value)
Get Display value |
MLocator |
getMLocator(Object keyValue,
String trxName)
Get Data Direct from Table |
int |
getOnly_Product_ID()
Get Only Product |
int |
getOnly_Warehouse_ID()
Get Only Wahrehouse |
boolean |
isValid(MLocator locator)
Is Locator with key valid (Warehouse) |
boolean |
isValid(Object key)
Is Locator with key valid (Warehouse) |
void |
loadComplete()
Wait until async Load Complete |
int |
refresh()
Refresh Values |
void |
setOnly_Product_ID(int only_Product_ID)
Set Product restriction |
void |
setOnly_Warehouse_ID(int only_Warehouse_ID)
Set Warehouse restriction |
String |
toString()
|
| Methods inherited from class org.compiere.model.Lookup |
|---|
addElement, fillComboBox, fillComboBox, getDirect, getDisplayType, getElementAt, getIndexOf, getInfoFactoryClass, getSelectedItem, getSize, getValidation, getWindowNo, getZoom, getZoom, getZoomQuery, hasInactive, insertElementAt, isLoaded, isMandatory, isValidated, put, put, removeAllElements, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.ListModel |
|---|
addListDataListener, removeListDataListener |
| Field Detail |
|---|
protected int C_Locator_ID
| Constructor Detail |
|---|
public MLocatorLookup(Properties ctx,
int WindowNo)
ctx - contextWindowNo - window no| Method Detail |
|---|
public void dispose()
dispose in class Lookuppublic void setOnly_Warehouse_ID(int only_Warehouse_ID)
only_Warehouse_ID - warehousepublic int getOnly_Warehouse_ID()
public void setOnly_Product_ID(int only_Product_ID)
only_Product_ID - Productpublic int getOnly_Product_ID()
public void loadComplete()
loadComplete in class Lookuppublic NamePair get(Object key)
get in class Lookupkey - key
public String getDisplay(Object value)
getDisplay in class Lookupvalue - value
public boolean containsKey(Object key)
containsKey in class Lookupkey - key
public NamePair getDirect(Object keyValue,
boolean saveInCache,
String trxName)
keyValue - integer key valuesaveInCache - save in cachetrxName - transaction
public MLocator getMLocator(Object keyValue,
String trxName)
keyValue - integer key valuetrxName - transaction
public String toString()
toString in class Objectpublic boolean isValid(Object key)
key - key
public boolean isValid(MLocator locator)
locator - locator
public Collection<MLocator> getData()
public ArrayList<Object> getData(boolean mandatory,
boolean onlyValidated,
boolean onlyActive,
boolean temporary)
getData in class Lookupmandatory - mandatoryonlyValidated - only validatedonlyActive - only activetemporary - force load for temporary display
public int refresh()
refresh in class Lookuppublic String getColumnName()
getColumnName in class Lookup
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||