Package org.apache.wicket.markup.html.form

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


      RequiredTextField integerTextField = new RequiredTextField("integerProperty");
      add(integerTextField.add(NumberValidator.POSITIVE));
      add(new RequiredTextField("doubleProperty"));

      add(new RequiredTextField("integerInRangeProperty").add(NumberValidator.range(0, 100)));
      add(new CheckBox("booleanProperty"));
      add(new Multiply("multiply"));
      // display the multiply result
      Label multiplyLabel = new Label("multiplyLabel", new PropertyModel(getModel(),
          "multiply"));
      // just for fun, add a border so that our result will be displayed
View Full Code Here


public class UniformPage extends DemoPage {

  public UniformPage() {
    add(new GenericUniformBehavior("input, textarea, select, button"));
    add(new CheckBox("uniform.checkbox"));
    add(new DatePickerTextField<String>("dateOfBirth"));
  }
View Full Code Here

    final Form f = new Form("form");
    add(f);
    f.add(new Label("a"));
    f.add(new TextField<String>("txt1"));
    f.add(new TextField("txt2"));
    f.add(new CheckBox("booleanProperty"));
    f.add(new DropDownChoice("sel"));
    f.add(new Button("submit"));
    f.add(newLabel(LE_STRING));

    f.add(newPanel("panel"));
View Full Code Here

        "authorFeedback");
      add(authorFeedback);
      authorFeedback.add(author);

      // Add fiction checkbox
      add(new CheckBox("fiction"));

      // Books is everything but otherBook
      List<Book> books = new ArrayList<Book>();

      books.addAll(Book.getBooks());
View Full Code Here

      add(integerTextField.add(NumberValidator.POSITIVE));
      add(new RequiredTextField<Double>("doubleProperty"));

      add(new RequiredTextField<Integer>("integerInRangeProperty").add(NumberValidator.range(
        0, 100)));
      add(new CheckBox("booleanProperty"));
      add(new Multiply("multiply"));
      // display the multiply result
      Label multiplyLabel = new Label("multiplyLabel", new PropertyModel<Integer>(
        getDefaultModel(), "multiply"));
      // just for fun, add a border so that our result will be displayed
View Full Code Here

    form.add(new TextField<String>("subject"));
    DefaultWysiwygToolbar toolbar = new DefaultWysiwygToolbar("toolbarContainer");
    form.add(toolbar);
    form.add(new WysiwygEditor("message", toolbar));
    form.add(roomParamsBlock.setOutputMarkupId(true));
    final CheckBox bookedRoom = new CheckBox("bookedRoom");
    form.add(bookedRoom.setOutputMarkupId(true).add(new AjaxEventBehavior("click") {
      private static final long serialVersionUID = 1L;
     
      @Override
      protected void onEvent(AjaxRequestTarget target) {
        PrivateMessage p = MessageDialog.this.getModelObject();
View Full Code Here

      int selectedLdap = getBean(ConfigurationDao.class).getConfValue(CONFIG_DEFAULT_LDAP_ID, Integer.class, "0");
      domain = ldaps.get(selectedLdap < ldaps.size() && selectedLdap > 0 ? selectedLdap : 0);
      add(new WebMarkupContainer("ldap")
        .add(new DropDownChoice<LdapConfig>("domain", new PropertyModel<LdapConfig>(SignInDialog.this, "domain")
            , ldaps, new ChoiceRenderer<LdapConfig>("name", "ldapConfigId"))).setVisible(ldaps.size() > 1));
      add(new CheckBox("rememberMe", new PropertyModel<Boolean>(SignInDialog.this, "rememberMe")).setOutputMarkupId(true));
      add(new AjaxButton("submit") { //FAKE button so "submit-on-enter" works as expected
        private static final long serialVersionUID = -3612671587183668912L;

        @Override
        protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
View Full Code Here

      // MarkupContainer row for remember me checkbox
      WebMarkupContainer rememberMeRow = new WebMarkupContainer("rememberMeRow");
      add(rememberMeRow);

      // Add rememberMe checkbox
      rememberMeRow.add(new CheckBox("rememberMe", new PropertyModel(SignInPanel.this,
          "rememberMe")));

      // Make form values persistent
      setPersistent(rememberMe);
View Full Code Here

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

        super(id, name, model);

        field = new CheckBox("checkboxField", model);
        add(field.setLabel(new Model(name)).setOutputMarkupId(true));

        if (!isReadOnly()) {
            field.add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
View Full Code Here

            item.add(new Label("operationType", ""));
        } else {
            item.add(new Label("operationType", searchCondition.getOperationType().toString()));
        }

        final CheckBox notOperator = new CheckBox("notOperator", new PropertyModel(searchCondition, "notOperator"));
        notOperator.add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {

            private static final long serialVersionUID = -1107858522700306810L;

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

TOP

Related Classes of org.apache.wicket.markup.html.form.CheckBox

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.