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:
    Serialized Form
    • Field Detail

      • C_ValidCombination_ID

        public int C_ValidCombination_ID
        Account_ID
    • Constructor Detail

      • MAccountLookup

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

      • getDisplay

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

        public NamePair get​(Object value)
        Get Object of Key Value
        Specified by:
        get in class Lookup
        Parameters:
        value - value
        Returns:
        Object 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)
        Description copied from class: Lookup
        The Lookup contains the key, do not push direct
        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. Used in Web Interface
        Specified by:
        getData in class Lookup
        Parameters:
        mandatory - mandatory
        onlyValidated - only valid
        onlyActive - only active
        temporary - force load for temporary display
        Returns:
        ArrayList with KeyNamePair