Package org.compiere.model
Class MLocationLookup
- All Implemented Interfaces:
Serializable
,ComboBoxModel<Object>
,ListModel<Object>
,MutableComboBoxModel<Object>
Address Location Lookup Model.
- Version:
- $Id: MLocationLookup.java,v 1.3 2006/07/30 00:58:18 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(Object key) The Lookup contains the keyboolean
Same ascontainsKey(Object)
in this classGet NamePair of Key ValueGet underlying fully qualified Table.Column Name.getData
(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean shortlist) Return data as sorted Array - not implementedgetDisplay
(Object key) Get Display for Value (not cached)getLocation
(int C_Location_ID, String trxName) Get LocationgetLocation
(Object key, String trxName) Get Locationint
getZoom()
Get Zoom - Location WindowMethods inherited from class org.compiere.model.Lookup
addElement, dispose, fillComboBox, fillComboBox, getDirect, getDirect, getDirect, getDisplayType, getElementAt, getIndexOf, getSelectedItem, getSize, getValidation, getWindowNo, getZoom, getZoom, getZoomQuery, hasInactive, insertElementAt, isLoaded, isMandatory, isShortList, isValidated, loadComplete, put, put, refresh, removeAllElements, removeElement, removeElementAt, setMandatory, setSelectedItem, setShortList
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, toString, wait, wait, wait
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Constructor Details
-
MLocationLookup
Constructor- Parameters:
ctx
- contextWindowNo
- window no (to derive AD_Client/Org for new records)
-
-
Method Details
-
getDisplay
Get Display for Value (not cached)- Specified by:
getDisplay
in classLookup
- Parameters:
key
- Location_ID- Returns:
- display text
-
get
Get NamePair of Key Value -
containsKey
The Lookup contains the key- Specified by:
containsKey
in classLookup
- Parameters:
key
- Location_ID- Returns:
- true if key exists
-
containsKeyNoDirect
Same ascontainsKey(Object)
in this class- Specified by:
containsKeyNoDirect
in classLookup
- Parameters:
key
- key- Returns:
- true if contains key
-
getLocation
Get Location- Parameters:
key
- ID as string or integertrxName
- transaction- Returns:
- Location or null
-
getLocation
Get Location- Parameters:
C_Location_ID
- idtrxName
- transaction- Returns:
- Location
-
getColumnName
Get underlying fully qualified Table.Column Name.- Specified by:
getColumnName
in classLookup
- Returns:
- "C_Location.C_Location_ID"
-
getZoom
public int getZoom()Get Zoom - Location Window -
getData
public ArrayList<Object> getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean shortlist) Return data as sorted Array - not implemented
-