Compiere 3.1

org.compiere.model
Class MPAttributeLookup

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.compiere.framework.Lookup
          extended by org.compiere.model.MPAttributeLookup
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel, MutableComboBoxModel

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
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compiere.framework.Lookup
log, m_WindowNo, p_data
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
MPAttributeLookup(Ctx ctx, int WindowNo)
          Constructor
 
Method Summary
 boolean containsKey(Object key)
          The Lookup contains the key (not cached)
 void dispose()
          Dispose
 NamePair get(Object value)
          Get Object of Key Value
 String getColumnName()
          Get underlying fully qualified Table.Column Name.
 ArrayList<NamePair> getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary)
          Return data as sorted Array - not implemented
 String getDisplay(Object value)
          Get Display for Value (not cached)
 
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, loadComplete, put, put, refresh, removeAllElements, removeElement, removeElementAt, setContext, setDisplayType, setSelectedItem, setSelectedItemAlways, toString
 
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
 

Constructor Detail

MPAttributeLookup

public MPAttributeLookup(Ctx ctx,
                         int WindowNo)
Constructor

Parameters:
ctx - context
WindowNo - window no
Method Detail

getDisplay

public String getDisplay(Object value)
Get Display for Value (not cached)

Specified by:
getDisplay in class Lookup
Parameters:
value - Location_ID
Returns:
String Value

containsKey

public boolean containsKey(Object key)
The Lookup contains the key (not cached)

Specified by:
containsKey in class Lookup
Parameters:
key - Location_ID
Returns:
true if key known

get

public NamePair get(Object value)
Get Object of Key Value

Specified by:
get in class Lookup
Parameters:
value - value
Returns:
Object or null

dispose

public void dispose()
Dispose

Overrides:
dispose in class Lookup
See Also:
org.compiere.model.Lookup#dispose()

getData

public ArrayList<NamePair> getData(boolean mandatory,
                                   boolean onlyValidated,
                                   boolean onlyActive,
                                   boolean temporary)
Return data as sorted Array - not implemented

Specified by:
getData in class Lookup
Parameters:
mandatory - mandatory
onlyValidated - only validated
onlyActive - only active
temporary - force load for temporary display
Returns:
null

getColumnName

public String getColumnName()
Get underlying fully qualified Table.Column Name. Used for VLookup.actionButton (Zoom)

Specified by:
getColumnName in class Lookup
Returns:
column name

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.