Package org.apache.wicket.model

Examples of org.apache.wicket.model.PropertyModel


  private static class AddPhonePanel extends AbstractPhonePanel
  {
    public AddPhonePanel(String id, IModel<PhoneNumber> phone)
    {
      super(id, phone);
      add(new Label("areacode", new PropertyModel(phone, "areacode")));
      add(new Label("prefix", new PropertyModel(phone, "prefix")));
      add(new Label("suffix", new PropertyModel(phone, "suffix")));
    }
View Full Code Here


  private static class QueuePhonePanel extends AbstractPhonePanel
  {
    public QueuePhonePanel(String id, IModel<PhoneNumber> phone)
    {
      super(id, phone);
      queue(new Label("areacode", new PropertyModel(phone, "areacode")));
      queue(new Label("prefix", new PropertyModel(phone, "prefix")));
      queue(new Label("suffix", new PropertyModel(phone, "suffix")));
    }
View Full Code Here

  private static class AddAddressPanel extends AbstractAddressPanel
  {
    public AddAddressPanel(String id, IModel<Address> addr)
    {
      super(id, addr);
      add(new Label("street", new PropertyModel(addr, "street")));
      add(new Label("city", new PropertyModel(addr, "city")));
      add(new Label("state", new PropertyModel(addr, "state")));
      add(new Label("zipcode", new PropertyModel(addr, "zipcode")));
    }
View Full Code Here

  private class QueueAddressPanel extends AbstractAddressPanel
  {
    public QueueAddressPanel(String id, IModel<Address> addr)
    {
      super(id, addr);
      queue(new Label("street", new PropertyModel(addr, "street")));
      queue(new Label("city", new PropertyModel(addr, "city")));
      queue(new Label("sate", new PropertyModel(addr, "state")));
      queue(new Label("zipcode", new PropertyModel(addr, "zipcode")));
    }
View Full Code Here

        @Override
        protected void populateItem(Item<Contact> item)
        {
          IModel<Contact> model = item.getModel();
          item.add(new Label("first", new PropertyModel(model, "first")));
          item.add(new Label("last", new PropertyModel(model, "first")));
          item.add(new AddAddressPanel("addr", new PropertyModel<Address>(model, "address")));
          item.add(new AddPhonePanel("work", new PropertyModel<PhoneNumber>(model, "work")));
          item.add(new AddPhonePanel("cell", new PropertyModel<PhoneNumber>(model, "cell")));
        }
      });
View Full Code Here

        @Override
        protected void populateItem(Item<Contact> item)
        {
          IModel<Contact> model = item.getModel();
          item.queue(new Label("first", new PropertyModel(model, "first")));
          item.queue(new Label("last", new PropertyModel(model, "first")));
          item.queue(new AddAddressPanel("addr", new PropertyModel<Address>(model, "address")));
          item.queue(new AddPhonePanel("work", new PropertyModel<PhoneNumber>(model, "work")));
          item.queue(new AddPhonePanel("cell", new PropertyModel<PhoneNumber>(model, "cell")));
        }
      });
View Full Code Here

  private class Choice extends FormComponent<Collection<String>>
  {

    public Choice(Object object)
    {
      super("choice", new PropertyModel(object, "strings"));
    }
View Full Code Here

  private class Choice extends FormComponent<Collection<String>>
  {

    public Choice(Object object)
    {
      super("choice", new PropertyModel(object, "strings"));
    }
View Full Code Here

  public MockFormSubmitsPage()
  {
    form = new Form<Void>("form");
    add(form);

    form.add(new TextField("text", new PropertyModel(this, "text")));

    form.add(new Button("button"));

    form.add(new AjaxButton("ajaxButton")
    {
View Full Code Here

                recipientAttrName.setChoices(getSchemaNames(recipientAttrType.getModelObject()));
                target.add(recipientAttrName);
            }
        });

        final AjaxPalettePanel events = new AjaxPalettePanel("events", new PropertyModel(notificationTO, "events"),
                new ListModel<String>(restClient.getEvents()));
        form.add(events);

        final WebMarkupContainer recipientsContainer = new WebMarkupContainer("recipientsContainer");
        recipientsContainer.setOutputMarkupId(true);

        form.add(recipientsContainer);

        final AjaxCheckBoxPanel selfAsRecipient = new AjaxCheckBoxPanel("selfAsRecipient",
                getString("selfAsRecipient"), new PropertyModel(notificationTO, "selfAsRecipient"));
        form.add(selfAsRecipient);

        if (createFlag) {
            selfAsRecipient.getField().setDefaultModelObject(Boolean.TRUE);
        }
View Full Code Here

TOP

Related Classes of org.apache.wicket.model.PropertyModel

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.