Class MCOFRSurveyLookup

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

public final class MCOFRSurveyLookup extends Lookup implements Serializable
MCOFRSurveyLookup Survey Lookup
Version:
$Id: MCOFRSurveyLookup.java, 02/09/2013 8:34:10 gabriels
Author:
Gabriel Schneider (BrERP, www.brerp.org)
See Also:
  • Constructor Details

    • MCOFRSurveyLookup

      public MCOFRSurveyLookup(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 value)
      Get Display for Value (not cached)
      Specified by:
      getDisplay in class Lookup
      Parameters:
      value - Location_ID
      Returns:
      String Value
    • 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 - Location_ID
      Returns:
      true if key known
    • getAnswer

      public MCOFRSurveyAnswer getAnswer(Object key, String trxName)
    • getAnswer

      public MCOFRSurveyAnswer getAnswer(int COF_Answer_ID, String trxName)
      Get Survey
      Parameters:
      COF_R_Survey_ID - id
      trxName - transaction
      Returns:
      X_COF_R_Survey
    • 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
    • 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
    • containsKeyNoDirect

      public boolean containsKeyNoDirect(Object key)
      Description copied from class: Lookup
      The Lookup contains the key (do not check the direct lookup list)
      Specified by:
      containsKeyNoDirect in class Lookup
      Parameters:
      key - key
      Returns:
      true if contains key