Package org.zkoss.zul

Class ListModels

java.lang.Object
org.zkoss.zul.ListModels

public class ListModels extends Object
A utility for handling ListModel.
Since:
5.0.4
Author:
jumperchen
  • Field Details

    • STRING_COMPARATOR

      public static final Comparator STRING_COMPARATOR
      A comparator for ListSubModel.getSubModel(java.lang.Object, int) to check if a value retrieved from the model matches the user typed. To compare, it will convert them to String instances, and return 0 (i.e., matched), when the value starts with the user typed, and both of them are not empty.
    • STRING_CONTAINS_COMPARATOR

      public static final Comparator STRING_CONTAINS_COMPARATOR
      A comparator for ListSubModel.getSubModel(java.lang.Object, int) to check if a value retrieved from the model contains the user typed. To compare, it will convert them to String instances, and return 0 (i.e., matched), when the value contains the user typed (case-insensitive), and both of them are not empty.
      Since:
      10.3.0
    • MAP_COMPARATOR

      public static final Comparator MAP_COMPARATOR
      A comparator for ListSubModel.getSubModel(java.lang.Object, int) to check if a value retrieved from the model matches the user typed. It assumes the model is Map, and the value is Map.Entry. To compare, it will convert them to String instances, and return 0 when the value (Map.Entry's getValue()) starts with the user typed, and both of them are not empty.
    • MAP_CONTAINS_COMPARATOR

      public static final Comparator MAP_CONTAINS_COMPARATOR
      A comparator for ListSubModel.getSubModel(java.lang.Object, int) to check if a value retrieved from the model matches the user typed. It assumes the model is Map, and the value is Map.Entry. To compare, it will convert them to String instances, and return 0 when the value (Map.Entry's getValue()) contains the user typed, and both of them are not empty.
      Since:
      10.3.0
  • Method Details