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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) The Lookup contains the keybooleanSame 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 LocationintgetZoom()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, setShortListMethods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getDisplayin classLookup- Parameters:
key- Location_ID- Returns:
- display text
-
get
Get NamePair of Key Value -
containsKey
The Lookup contains the key- Specified by:
containsKeyin classLookup- Parameters:
key- Location_ID- Returns:
- true if key exists
-
containsKeyNoDirect
Same ascontainsKey(Object)in this class- Specified by:
containsKeyNoDirectin 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:
getColumnNamein 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
-