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>
public class MPAttributeLookup extends Lookup implements Serializable
Product Attribute Lookup Model (not Cached)- 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description MPAttributeLookup(Properties ctx, int WindowNo)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(Object key)
The Lookup contains the key (not cached)boolean
containsKeyNoDirect(Object key)
The Lookup contains the key, do not push directvoid
dispose()
DisposeNamePair
get(Object value)
Get Object of Key ValueString
getColumnName()
Get underlying fully qualified Table.Column Name.ArrayList<Object>
getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean shortlist)
Return data as sorted Array - not implementedString
getDisplay(Object value)
Get Display for Value (not cached)-
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 Detail
-
MPAttributeLookup
public MPAttributeLookup(Properties ctx, int WindowNo)
Constructor- Parameters:
ctx
- contextWindowNo
- window no
-
-
Method Detail
-
getDisplay
public String getDisplay(Object value)
Get Display for Value (not cached)- Specified by:
getDisplay
in classLookup
- Parameters:
value
- Location_ID- Returns:
- String Value
-
containsKey
public boolean containsKey(Object key)
The Lookup contains the key (not cached)- Specified by:
containsKey
in classLookup
- Parameters:
key
- Location_ID- Returns:
- true if key known
-
containsKeyNoDirect
public boolean containsKeyNoDirect(Object key)
Description copied from class:Lookup
The Lookup contains the key, do not push direct- Specified by:
containsKeyNoDirect
in classLookup
- Parameters:
key
- key- Returns:
- true if contains key
-
dispose
public void dispose()
Dispose- Overrides:
dispose
in classLookup
- See Also:
Lookup.dispose()
-
getData
public ArrayList<Object> getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean shortlist)
Return data as sorted Array - not implemented
-
getColumnName
public String getColumnName()
Get underlying fully qualified Table.Column Name. Used for VLookup.actionButton (Zoom)- Specified by:
getColumnName
in classLookup
- Returns:
- column name
-
-