Class GetListLookup

java.lang.Object
javax.swing.AbstractListModel<Object>
org.compiere.model.Lookup
org.idempiere.webservices.client.GetListLookup
All Implemented Interfaces:
Serializable, ComboBoxModel<Object>, ListModel<Object>, MutableComboBoxModel<Object>

public class GetListLookup extends Lookup
Author:
hengsin
See Also:
  • Constructor Details

    • GetListLookup

      public GetListLookup(int windowNo, org.idempiere.adInterface.x10.ADLoginRequest login, String keyColumn, String displayColumn, String filter, String endPoint, String serviceType)
      Parameters:
      windowNo -
      login -
      keyColumn -
      displayColumn -
      filter -
      endPoint -
      serviceType -
  • 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
    • 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
    • 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
    • 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)
      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
    • refresh

      public int refresh()
      Refresh and return number of items read. Get get data of parent lookups
      Overrides:
      refresh in class Lookup
      Returns:
      no of items read