Adempiere 3.5.2a

org.compiere.model
Class MPAttributeLookup

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.compiere.model.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, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1885260 ] MPAttributeLookup: throws SQLException sometimes
  • See Also:
    Serialized Form

    Field Summary
     
    Fields inherited from class org.compiere.model.Lookup
    log, p_data
     
    Fields inherited from class javax.swing.AbstractListModel
    listenerList
     
    Constructor Summary
    MPAttributeLookup(Properties 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<Object> 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.model.Lookup
    addElement, fillComboBox, fillComboBox, getDirect, getDisplayType, getElementAt, getIndexOf, getInfoFactoryClass, getSelectedItem, getSize, getValidation, getWindowNo, getZoom, getZoom, getZoomQuery, hasInactive, insertElementAt, isLoaded, isMandatory, isValidated, loadComplete, put, put, refresh, removeAllElements, removeElement, removeElementAt, setMandatory, setSelectedItem
     
    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 - 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:
    Lookup.dispose()

    getData

    public ArrayList<Object> 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

    Adempiere 3.5.2a

    Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.