Exemple #1
0
 @Override
 public int getAutoCompleteOrChoicesMinLength(ScalarModel scalarModel) {
   if (scalarModel.hasAutoComplete()) {
     final ActionParameterMemento parameterMemento = scalarModel.getParameterMemento();
     final ObjectActionParameter actionParameter = parameterMemento.getActionParameter();
     return actionParameter.getAutoCompleteMinLength();
   } else {
     return 0;
   }
 }
Exemple #2
0
      @Override
      public int getAutoCompleteOrChoicesMinLength(ScalarModel scalarModel) {

        if (scalarModel.hasAutoComplete()) {
          final PropertyMemento propertyMemento = scalarModel.getPropertyMemento();
          final OneToOneAssociation property = propertyMemento.getProperty();
          return property.getAutoCompleteMinLength();
        } else {
          return 0;
        }
      }