Class MPaymentLookup

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

public class MPaymentLookup extends Lookup implements Serializable
Payment rules lookup
Author:
Elaine
See Also:
  • Constructor Details

    • MPaymentLookup

      public MPaymentLookup(Properties ctx, int windowNo, String validationCode)
      Parameters:
      ctx -
      windowNo -
      validationCode -
  • Method Details

    • getDisplay

      public String getDisplay(Object key)
      Description copied from class: Lookup
      Get Display Text of Key Value
      Specified by:
      getDisplay in class Lookup
      Parameters:
      key - key value
      Returns:
      Display Text
    • get

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

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

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

      public String getColumnName()
      Description copied from class: Lookup
      Get underlying fully qualified Table.Column Name.
      Specified by:
      getColumnName in class Lookup
      Returns:
      column name
    • getValidation

      public String getValidation()
      Description copied from class: Lookup
      Get dynamic Validation SQL (none)
      Overrides:
      getValidation in class Lookup
      Returns:
      validation SQL
    • getData

      public ArrayList<Object> getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean shortlist)
      Description copied from class: Lookup
      Load Data (Value/KeyNamePair) from DB.
      Specified by:
      getData in class Lookup
      Parameters:
      mandatory - has mandatory data only (i.e. no "null" selection)
      onlyValidated - only validated
      onlyActive - only active
      temporary - force load for temporary display
      Returns:
      ArrayList
    • refresh

      public int refresh()
      Description copied from class: Lookup
      Refresh Values - default implementation
      Overrides:
      refresh in class Lookup
      Returns:
      size