Package org.compiere.model
Class MPAttributeLookup
java.lang.Object
javax.swing.AbstractListModel<Object>
org.compiere.model.Lookup
org.compiere.model.MPAttributeLookup
- All Implemented Interfaces:
Serializable
,ComboBoxModel<Object>
,ListModel<Object>
,MutableComboBoxModel<Object>
Product Attribute Lookup Model (no local lookup cache)
- Version:
- $Id: MPAttributeLookup.java,v 1.2 2006/07/30 00:58:38 jjanke Exp $
- Author:
- Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
- BF [ 1885260 ] MPAttributeLookup: throws SQLException sometimes
- 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 key (direct check against DB)boolean
Same ascontainsKey(Object)
in this lookup implementationvoid
dispose()
DisposeGet KeyNamePair(M_AttributeSetInstance_ID, Description) of Key ValueGet underlying fully qualified Table.Column Name.getData
(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean shortlist) Get list of lookup data - not implementedgetDisplay
(Object key) Get display text for key value (direct from DB)Methods inherited from class org.compiere.model.Lookup
addElement, fillComboBox, fillComboBox, getDirect, getDirect, getDirect, getDisplayType, getElementAt, getIndexOf, getSelectedItem, getSize, getValidation, getWindowNo, getZoom, 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
-
MPAttributeLookup
Constructor- Parameters:
ctx
- contextWindowNo
- window no
-
-
Method Details
-
getDisplay
Get display text for key value (direct from DB)- Specified by:
getDisplay
in classLookup
- Parameters:
key
- Location_ID- Returns:
- Display text
-
containsKey
The Lookup contains the key (direct check against DB)- Specified by:
containsKey
in classLookup
- Parameters:
key
- Location_ID- Returns:
- true if key exists
-
containsKeyNoDirect
Same ascontainsKey(Object)
in this lookup implementation- Specified by:
containsKeyNoDirect
in classLookup
- Parameters:
key
- key- Returns:
- true if contains key
-
get
Get KeyNamePair(M_AttributeSetInstance_ID, Description) of Key Value -
dispose
public void dispose()Dispose -
getData
public ArrayList<Object> getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean shortlist) Get list of lookup data - not implemented -
getColumnName
Description copied from class:Lookup
Get underlying fully qualified Table.Column Name.- Specified by:
getColumnName
in classLookup
- Returns:
- "M_AttributeSetInstance_ID"
-