Package org.apache.wicket.extensions.ajax.markup.html.autocomplete

Examples of org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteSettings


    public AjaxTextFieldPanel(final String id, final String name, final IModel<String> model) {

        super(id, name, model);

        final AutoCompleteSettings settings = new AutoCompleteSettings();
        settings.setShowCompleteListOnFocusGain(true);
        settings.setShowListOnEmptyInput(true);

        field = new AutoCompleteTextField<String>("textField", model, settings) {

            private static final long serialVersionUID = -6648767303091874219L;
View Full Code Here


    public AjaxTextFieldPanel(final String id, final String name, final IModel<String> model) {

        super(id, name, model);

        final AutoCompleteSettings settings = new AutoCompleteSettings();
        settings.setShowCompleteListOnFocusGain(true);
        settings.setShowListOnEmptyInput(true);

        field = new AutoCompleteTextField<String>("textField", model, settings) {

            private static final long serialVersionUID = -6648767303091874219L;
View Full Code Here

    public AjaxTextFieldPanel(final String id, final String name, final IModel<String> model) {

        super(id, name, model);

        final AutoCompleteSettings settings = new AutoCompleteSettings();
        settings.setShowCompleteListOnFocusGain(true);
        settings.setShowListOnEmptyInput(true);

        field = new AutoCompleteTextField<String>("textField", model, settings) {

            private static final long serialVersionUID = -6648767303091874219L;
View Full Code Here

            }
        };
        form.setMarkupId("queryform");
        add(form);

        AutoCompleteSettings config = new AutoCompleteSettings().setUseHideShowCoveredIEFix(false);
        config.setThrottleDelay(200);

        // connect the form's textfield with the java property       
        queryTF = new org.apache.wicket.markup.html.form.TextField<Object>("textField",
                new PropertyModel(this, "query"));
        //queryTF.add(new DefaultFocusBehaviour());       
View Full Code Here

                    GrabTweetsDialog.this.updateAfterAjax(target);
                }
            }
        });
        add(form);
        AutoCompleteSettings config = new AutoCompleteSettings().setUseHideShowCoveredIEFix(false);
        config.setThrottleDelay(200);
        form.add(field = new MyAutoCompleteTextField("userName", new PropertyModel(this, "userName"), config) {

            @Override
            protected Iterator getChoices(String input) {
                return GrabTweetsDialog.this.getUserChoices(input).iterator();
View Full Code Here

        form.add(buttonRight);
        form.add(bttnLeft);
        form.setMarkupId("queryform");
        add(form);

        AutoCompleteSettings config = new AutoCompleteSettings().setUseHideShowCoveredIEFix(false);
        config.setThrottleDelay(200);

        // connect the form's textfield with the java property       
        queryTF = new MyAutoCompleteTextField("textField",
                new PropertyModel(this, "query"), config) {
View Full Code Here

    // weether search should be triggered on paste event
    private boolean searchOnPaste;

    <I extends Serializable> ObjectAutoCompleteBehavior(Component pObjectElement,ObjectAutoCompleteBuilder<O,I> pBuilder) {
        renderer = pBuilder.autoCompleteRenderer;
        settings = new AutoCompleteSettings()
                        .setMaxHeightInPx(pBuilder.maxHeightInPx)
                        .setPreselect(pBuilder.preselect)
                        .setShowListOnEmptyInput(pBuilder.showListOnEmptyInput);
        choiceTagName = pBuilder.choiceTagName;
        width = pBuilder.width;
View Full Code Here

    private List<String> choices = Collections.emptyList();

    public AjaxTextFieldPanel(final String id, final String name, final IModel<String> model) {
        super(id, model);

        final AutoCompleteSettings settings = new AutoCompleteSettings();
        settings.setShowCompleteListOnFocusGain(true);
        settings.setShowListOnEmptyInput(true);

        field = new AutoCompleteTextField<String>("textField", model, settings) {

            private static final long serialVersionUID = -6648767303091874219L;
View Full Code Here

  <I extends Serializable> ObjectAutoCompleteBehavior(Component pObjectElement,
    ObjectAutoCompleteBuilder<O, I> pBuilder)
  {
    renderer = pBuilder.autoCompleteRenderer;
    settings = new AutoCompleteSettings().setMaxHeightInPx(pBuilder.maxHeightInPx)
      .setPreselect(pBuilder.preselect)
      .setShowListOnEmptyInput(pBuilder.showListOnEmptyInput);
    choiceTagName = pBuilder.choiceTagName;
    width = pBuilder.width;
    alignment = pBuilder.alignement;
View Full Code Here

    public JDBCConnectionPoolPanel(String id, IModel<ConnectionPoolConfiguration> model) {
        super(id, model);
       
        TextField<String> driver = new TextField<String>("jdbcDriver", new PropertyModel<String>(model, "driver"));
        driver.setRequired(true);
        AutoCompleteSettings as = new AutoCompleteSettings();
        as.setPreselect(true).setShowListOnEmptyInput(true).setShowCompleteListOnFocusGain(true);
        driver.add(new ContainsAutoCompleteBehavior("org.postgresql.Driver", "oracle.jdbc.driver.OracleDriver", "org.h2.Driver"));
        add(driver);
       
        TextField<String> url = new TextField<String>("jdbcUrl", new PropertyModel<String>(model, "url"));
        url.setRequired(true);
View Full Code Here

TOP

Related Classes of org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteSettings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.