Class MLocationLookup

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

public final class MLocationLookup extends Lookup implements Serializable
Address Location Lookup Model.
Version:
$Id: MLocationLookup.java,v 1.3 2006/07/30 00:58:18 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MLocationLookup

      public MLocationLookup(Properties ctx, int WindowNo)
      Constructor
      Parameters:
      ctx - context
      WindowNo - window no (to derive AD_Client/Org for new records)
  • Method Details

    • getDisplay

      public String getDisplay(Object key)
      Get Display for Value (not cached)
      Specified by:
      getDisplay in class Lookup
      Parameters:
      key - Location_ID
      Returns:
      display text
    • get

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

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

      public boolean containsKeyNoDirect(Object key)
      Same as containsKey(Object) in this class
      Specified by:
      containsKeyNoDirect in class Lookup
      Parameters:
      key - key
      Returns:
      true if contains key
    • getLocation

      public MLocation getLocation(Object key, String trxName)
      Get Location
      Parameters:
      key - ID as string or integer
      trxName - transaction
      Returns:
      Location or null
    • getLocation

      public MLocation getLocation(int C_Location_ID, String trxName)
      Get Location
      Parameters:
      C_Location_ID - id
      trxName - transaction
      Returns:
      Location
    • getColumnName

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

      public int getZoom()
      Get Zoom - Location Window
      Overrides:
      getZoom in class Lookup
      Returns:
      Zoom AD_Window_ID
    • getData

      public ArrayList<Object> getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean shortlist)
      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