Class MAccountLookup

All Implemented Interfaces:
Serializable, ComboBoxModel<Object>, ListModel<Object>, MutableComboBoxModel<Object>

public final class MAccountLookup extends Lookup implements Serializable
Account Model Lookup - Maintains ValidCombination Info for Display and Edit - not cached
Version:
$Id: MAccountLookup.java,v 1.3 2006/07/30 00:54:54 jjanke Exp $
Author:
Jorg Janke, victor.perez@e-evolution.com, www.e-evolution.com
  • RF [ 2214883 ] Remove SQL code and Replace for Query https://sourceforge.net/p/adempiere/feature-requests/557/
  • See Also:
    • Field Details

      • C_ValidCombination_ID

        public int C_ValidCombination_ID
        Account_ID
    • Constructor Details

      • MAccountLookup

        public MAccountLookup(Properties ctx, int WindowNo)
        Constructor
        Parameters:
        ctx - context
        WindowNo - window no
    • Method Details

      • getDisplay

        public String getDisplay(Object value)
        Get Display Text for Value
        Specified by:
        getDisplay in class Lookup
        Parameters:
        value - value
        Returns:
        Display text
      • get

        public NamePair get(Object value)
        Get KeyNamePair of Key Value
        Specified by:
        get in class Lookup
        Parameters:
        value - key value
        Returns:
        KeyNamePair or null
      • containsKey

        public boolean containsKey(Object key)
        The Lookup contains the key
        Specified by:
        containsKey in class Lookup
        Parameters:
        key - key
        Returns:
        true if exists
      • containsKeyNoDirect

        public boolean containsKeyNoDirect(Object key)
        Specified by:
        containsKeyNoDirect in class Lookup
        Parameters:
        key - key
        Returns:
        true if contains key
      • getDescription

        public String getDescription()
        Get Description
        Returns:
        Description
      • toString

        public String toString()
        Return String representation
        Overrides:
        toString in class Object
        Returns:
        Combination
      • load

        public boolean load(int ID)
        Load C_ValidCombination with ID
        Parameters:
        ID - C_ValidCombination_ID
        Returns:
        true if found
      • getColumnName

        public String getColumnName()
        Get underlying fully qualified Table.Column Name
        Specified by:
        getColumnName in class Lookup
        Returns:
        ""
      • getData

        public ArrayList<Object> getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean isshortlist)
        Return data as sorted Array.
        Specified by:
        getData in class Lookup
        Parameters:
        mandatory - mandatory
        onlyValidated - only valid
        onlyActive - only active
        temporary - force load for temporary display
        isshortlist - ignore
        Returns:
        ArrayList with KeyNamePair