Examples of DropDownChoice


Examples of org.apache.wicket.markup.html.form.DropDownChoice

                "Notification", "create"));
        add(createNotificationLink);

        Form notificationPaginatorForm = new Form("notificationPaginatorForm");

        final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this,
                "notificationPaginatorRows"), prefMan.getPaginatorChoices());

        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {

            private static final long serialVersionUID = -1107858522700306810L;

            @Override
            protected void onUpdate(final AjaxRequestTarget target) {
View Full Code Here

Examples of org.apache.wicket.markup.html.form.DropDownChoice

        window.setInitialWidth(WIN_WIDTH);
        window.setCookieName("view-task-win");

        Form paginatorForm = new Form("PaginatorForm");

        final DropDownChoice rowsChooser = new DropDownChoice(
                "rowsChooser", new PropertyModel(this, "paginatorRows"), prefMan.getPaginatorChoices());

        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {

            private static final long serialVersionUID = -1107858522700306810L;

            @Override
            protected void onUpdate(final AjaxRequestTarget target) {
View Full Code Here

Examples of org.apache.wicket.markup.html.form.DropDownChoice

        Form paginatorForm = new Form("paginatorForm");

        MetaDataRoleAuthorizationStrategy.authorize(paginatorForm, RENDER, xmlRolesReader.getAllAllowedRoles("Reports",
                "list"));

        final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this, "paginatorRows"),
                prefMan.getPaginatorChoices());

        rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {

            private static final long serialVersionUID = -1107858522700306810L;

            @Override
            protected void onUpdate(final AjaxRequestTarget target) {
View Full Code Here

Examples of org.apache.wicket.markup.html.form.DropDownChoice

            }
        };
        add(form);

        List<ReaderTO> readers = readerService.findAllReaders();
        DropDownChoice choiceReaders = new DropDownChoice("reader", new PropertyModel(borrow, "readerTO"), readers);
        form.add(choiceReaders);

        List<BookTO> books = bookService.findAllAvailableBooks();

        DropDownChoice choiceBooks = new DropDownChoice("title", new PropertyModel(this, "selectedBook"), books);
        form.add(choiceBooks);
        DropDownChoice choiceBooks2 = new DropDownChoice("title2", new PropertyModel(this, "selectedBook2"), books);
        form.add(choiceBooks2);
        DropDownChoice choiceBooks3 = new DropDownChoice("title3", new PropertyModel(this, "selectedBook3"), books);
        form.add(choiceBooks3);
        DropDownChoice choiceBooks4 = new DropDownChoice("title4", new PropertyModel(this, "selectedBook4"), books);
        form.add(choiceBooks4);
        DropDownChoice choiceBooks5 = new DropDownChoice("title5", new PropertyModel(this, "selectedBook5"), books);
        form.add(choiceBooks5);
        DropDownChoice choiceBooks6 = new DropDownChoice("title6", new PropertyModel(this, "selectedBook6"), books);
        form.add(choiceBooks6);

        BookmarkablePageLink homeLink = new BookmarkablePageLink<>(
                "listborrow", ShowAllBorrow.class);
        add(homeLink);
View Full Code Here

Examples of org.apache.wicket.markup.html.form.DropDownChoice

                setResponsePage(ShowAllBook.class);
            }
        };
        add(form);

        DropDownChoice choiceState=new DropDownChoice("status", new PropertyModel(book, "status"), STATES);
        form.add(choiceState.setRequired(true));
        DropDownChoice choiceGenre=new DropDownChoice("genre", new PropertyModel(book, "genre"), GENRES);
        form.add(choiceGenre.setRequired(true));
       
        form.add(new TextField("title", new PropertyModel<String>(book, "title")).setRequired(true));
        form.add( new TextField("author", new PropertyModel<String>(book, "author")).setRequired(true));
        form.add(new TextField("publicationYear", new PropertyModel<String>(book, "publicationYear")).setRequired(true));
        form.add(new TextField( "publicationPlace", new PropertyModel<String>(book, "publicationPlace")).setRequired(true));
View Full Code Here

Examples of org.apache.wicket.markup.html.form.DropDownChoice

                setResponsePage(ShowAllReservation.class);
            }
        };
        add(form);
        List<BookTO> books = bookService.findAllAvailableBooks();
        DropDownChoice choiceState = new DropDownChoice("bookTO", new PropertyModel(reservation, "bookTO"), books);
        form.add(choiceState);

        BookmarkablePageLink homeLink = new BookmarkablePageLink<>(
                "list", ShowAllReader.class);
        add(homeLink);
View Full Code Here

Examples of org.apache.wicket.markup.html.form.DropDownChoice

  {
    super(id);
    Form form = new Form("signInForm", new CompoundPropertyModel(new ValueMap()));
    form.add(new TextField("username"));
    form.add(new PasswordTextField("password"));
    form.add(new DropDownChoice("domain", Arrays.asList(new Object[] { "Wicket", "Tapestry",
        "JSF", ".Net" })));
    form.add(new CheckBox("rememberMe"));
    form.add(new WebMarkupContainer("loginZonderTokenContainer").add(new CheckBox(
      "loginZonderToken")));
    form.add(new SubmitLink("aanmelden"));
View Full Code Here

Examples of org.apache.wicket.markup.html.form.DropDownChoice

      {
        return choices.getObject();
      }

    };
    DropDownChoice editor = new DropDownChoice(componentId, model, choiceModel, renderer)
    {
      private static final long serialVersionUID = 1L;

      protected void onModelChanged()
      {
        AjaxEditableChoiceLabel.this.onModelChanged();
      }

      protected void onModelChanging()
      {
        AjaxEditableChoiceLabel.this.onModelChanging();
      }

    };
    editor.setOutputMarkupId(true);
    editor.setVisible(false);
    editor.add(new EditorAjaxBehavior()
    {
      private static final long serialVersionUID = 1L;

      protected void onComponentTag(ComponentTag tag)
      {
View Full Code Here

Examples of org.apache.wicket.markup.html.form.DropDownChoice

        return MINUTES_CONVERTER;
      }
    });
    minutesField.add(NumberValidator.range(0, 59));
    minutesField.setLabel(new Model("minutes"));
    add(amOrPmChoice = new DropDownChoice("amOrPmChoice", new PropertyModel(this, "amOrPm"),
        Arrays.asList(AM_PM.values())));
  }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.DropDownChoice

        srsList.add(new SRSListValidator());
        srsList.setType(List.class);
        form.add(srsList);

        // general
      form.add(new DropDownChoice("interpolation", Arrays.asList(WMSInfo.WMSInterpolation.values()), new InterpolationRenderer()));
      // resource limits
      TextField maxMemory = new TextField("maxRequestMemory");
      maxMemory.add(NumberValidator.minimum(0.0));
      form.add(maxMemory);
      TextField maxTime = new TextField("maxRenderingTime");
      maxTime.add(NumberValidator.minimum(0.0));
        form.add(maxTime);
        TextField maxErrors = new TextField("maxRenderingErrors");
        maxErrors.add(NumberValidator.minimum(0.0));
        form.add(maxErrors);
      // watermark
      form.add(new CheckBox("watermark.enabled"));
      form.add(new TextField("watermark.uRL"));
      TextField transparency = new TextField("watermark.transparency");
      transparency.add(NumberValidator.range(0, 100));
        form.add(transparency);
      form.add(new DropDownChoice("watermark.position", Arrays.asList(Position.values()), new WatermarkPositionRenderer()));
      // svg
      PropertyModel metadataModel = new PropertyModel(info, "metadata");
        form.add(new CheckBox("svg.antialias", new MapModel(metadataModel, "svgAntiAlias")));
      form.add(new DropDownChoice("svg.producer", new MapModel(metadataModel, "svgRenderer"), SVG_RENDERERS, new SVGMethodRenderer()));
      // png compression levels
      MapModel pngCompression = defaultedModel(metadataModel, WMS.PNG_COMPRESSION, WMS.PNG_COMPRESSION_DEFAULT);
        TextField pngCompressionField = new TextField("png.compression", pngCompression, Integer.class);
        pngCompressionField.add(new NumberValidator.RangeValidator(0, 100));
        form.add(pngCompressionField);
        // jpeg compression levels
      MapModel jpegCompression = defaultedModel(metadataModel, WMS.JPEG_COMPRESSION, WMS.JPEG_COMPRESSION_DEFAULT);
        TextField jpegCompressionField = new TextField("jpeg.compression", jpegCompression, Integer.class);
        form.add(jpegCompressionField);
       
        // kml handling
        MapModel kmlReflectorMode = defaultedModel(metadataModel, WMS.KML_REFLECTOR_MODE, WMS.KML_REFLECTOR_MODE_DEFAULT);
        form.add(new DropDownChoice("kml.defaultReflectorMode", kmlReflectorMode, KML_REFLECTOR_MODES));
       
        MapModel kmlSuperoverlayMode = defaultedModel(metadataModel, WMS.KML_SUPEROVERLAY_MODE, WMS.KML_SUPEROVERLAY_MODE_DEFAULT);
        form.add(new DropDownChoice("kml.superoverlayMode", kmlSuperoverlayMode, KML_SUPEROVERLAY_MODES));
       
        form.add(new CheckBox("kml.kmattr", defaultedModel(metadataModel, WMS.KML_KMLATTR, WMS.KML_KMLATTR_DEFAULT)));
        form.add(new CheckBox("kml.kmlplacemark", defaultedModel(metadataModel, WMS.KML_KMLPLACEMARK, WMS.KML_KMLPLACEMARK_DEFAULT)));
       
        MapModel kmScore = defaultedModel(metadataModel, WMS.KML_KMSCORE, WMS.KML_KMSCORE_DEFAULT);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.