src/main/java/org/efaps/ui/wicket/models/field/AbstractUIField.java
@Override
    public AutoCompleteSettings getAutoCompleteSetting()
    {
        if (this.autoCompleteSetting == null && isAutoComplete()) {
            this.autoCompleteSetting = new AutoCompleteSettings(getFieldConfiguration());

            final List<EventDefinition> events = getFieldConfiguration().getField().getEvents(
                            EventType.UI_FIELD_AUTOCOMPLETE);
            for (final EventDefinition event : events) {
                this.autoCompleteSetting.setMinInputLength(event.getProperty("MinInputLength") == null
                                ? 1 : Integer.valueOf(event.getProperty("MinInputLength")));
                this.autoCompleteSetting.setMaxChoiceLength(event.getProperty("MaxChoiceLength") == null
                                ? -1 : Integer.valueOf(event.getProperty("MaxChoiceLength")));
                this.autoCompleteSetting.setMaxValueLength(event.getProperty("MaxValueLength") == null
                                ? -1 : Integer.valueOf(event.getProperty("MaxValueLength")));
                if (event.getProperty("MaxResult") != null) {
                    this.autoCompleteSetting.setMaxResult(Integer.valueOf(event.getProperty("MaxResult")));
                }
                if (event.getProperty("HasDownArrow") != null) {
                    this.autoCompleteSetting
                                    .setHasDownArrow("true".equalsIgnoreCase(event.getProperty("HasDownArrow")));
                }
                if (event.getProperty("Required") != null) {
                    this.autoCompleteSetting
                                    .setRequired(!"false".equalsIgnoreCase(event.getProperty("Required")));
                }

                if (event.getProperty("AutoType") != null) {
                    this.autoCompleteSetting.setAutoType(EnumUtils.getEnum(AutoCompleteBehavior.Type.class,
                                    event.getProperty("AutoType")));
                }

                // add the ExtraParameter definitions
                final String ep = event.getProperty("ExtraParameter");
                if (ep != null) {
                    this.autoCompleteSetting.getExtraParameters().add(ep);
                }
                int i = 1;
                String keyTmp = "ExtraParameter" + String.format("%02d", i);
                while (event.getProperty(keyTmp) != null) {
                    this.autoCompleteSetting.getExtraParameters().add(event.getProperty(keyTmp));
                    i++;
                    keyTmp = "ExtraParameter" + String.format("%02d", i);
                }

                final String value4EditStr = event.getProperty("Value4Edit");
                if (value4EditStr != null) {
                    this.autoCompleteSetting.setValue4Edit(EditValue.valueOf(value4EditStr));
                }
            }
        }
        return this.autoCompleteSetting;
    }
@Override
    public AutoCompleteSettings getAutoCompleteSetting()
    {
        if (this.autoCompleteSetting == null && isAutoComplete()) {
            this.autoCompleteSetting = new AutoCompleteSettings(getFieldConfiguration());

            final List<EventDefinition> events = getFieldConfiguration().getField().getEvents(
                            EventType.UI_FIELD_AUTOCOMPLETE);
            for (final EventDefinition event : events) {
                this.autoCompleteSetting.setMinInputLength(event.getProperty("MinInputLength") == null
                                ? 1 : Integer.valueOf(event.getProperty("MinInputLength")));
                this.autoCompleteSetting.setMaxChoiceLength(event.getProperty("MaxChoiceLength") == null
                                ? -1 : Integer.valueOf(event.getProperty("MaxChoiceLength")));
                this.autoCompleteSetting.setMaxValueLength(event.getProperty("MaxValueLength") == null
                                ? -1 : Integer.valueOf(event.getProperty("MaxValueLength")));
                if (event.getProperty("MaxResult") != null) {
                    this.autoCompleteSetting.setMaxResult(Integer.valueOf(event.getProperty("MaxResult")));
                }
                if (event.getProperty("HasDownArrow") != null) {
                    this.autoCompleteSetting
                                    .setHasDownArrow("true".equalsIgnoreCase(event.getProperty("HasDownArrow")));
                }
                if (event.getProperty("Required") != null) {
                    this.autoCompleteSetting
                                    .setRequired(!"false".equalsIgnoreCase(event.getProperty("Required")));
                }

                if (event.getProperty("AutoType") != null) {
                    this.autoCompleteSetting.setAutoType(EnumUtils.getEnum(AutoCompleteBehavior.Type.class,
                                    event.getProperty("AutoType")));
                }

                // add the ExtraParameter definitions
                final String ep = event.getProperty("ExtraParameter");
                if (ep != null) {
                    this.autoCompleteSetting.getExtraParameters().add(ep);
                }
                int i = 1;
                String keyTmp = "ExtraParameter" + String.format("%02d", i);
                while (event.getProperty(keyTmp) != null) {
                    this.autoCompleteSetting.getExtraParameters().add(event.getProperty(keyTmp));
                    i++;
                    keyTmp = "ExtraParameter" + String.format("%02d", i);
                }

                final String value4EditStr = event.getProperty("Value4Edit");
                if (value4EditStr != null) {
                    this.autoCompleteSetting.setValue4Edit(EditValue.valueOf(value4EditStr));
                }
            }
        }
        return this.autoCompleteSetting;
    }
Getter method for the instance variable {@link #autoCompleteSetting}.

@return value of instance variable {@link #autoCompleteSetting}