|
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.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.framework.Lookup |
|---|
log, m_WindowNo, p_data |
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
MLocatorLookup(Ctx 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<KeyNamePair> |
getData()
Return info as ArrayList containing Locator, waits for the loader to finish |
ArrayList<NamePair> |
getData(boolean mandatory,
boolean onlyValidated,
boolean onlyActive,
boolean temporary)
Return data as sorted ArrayList |
String |
getDefault()
|
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 |
isOnly_Outgoing()
Get Outgoing Trx |
boolean |
isValid(Object key)
Is Locator with key valid (Warehouse) |
void |
loadComplete()
Wait until async Load Complete |
int |
refresh()
Refresh Values |
void |
setOnly_Outgoing(Boolean isOutgoing)
Set Only Outgoing Trx |
void |
setOnly_Product_ID(int only_Product_ID)
Set Product restriction |
void |
setOnly_Warehouse_ID(int only_Warehouse_ID)
Set Warehouse restriction |
String |
toString()
String Representation |
| Methods inherited from class org.compiere.framework.Lookup |
|---|
addElement, addElement, disableValidation, fillComboBox, fillComboBox, getCtx, getDirect, getDisplayType, getElementAt, getIndexOf, getSelectedItem, getSize, getValidation, getWindowNo, getZoomQuery, getZoomWindow, getZoomWindow, hasInactive, insertElementAt, insertElementAt, isValidated, isValidationDisabled, put, put, removeAllElements, 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, 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(Ctx ctx,
int WindowNo)
ctx - contextWindowNo - window no| Method Detail |
|---|
public String getDefault()
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 setOnly_Outgoing(Boolean isOutgoing)
isOutgoing - SO Trxpublic Boolean isOnly_Outgoing()
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()
Lookup
toString in class Lookuppublic boolean isValid(Object key)
key - key
public Collection<KeyNamePair> getData()
public ArrayList<NamePair> 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
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||