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

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


     */
    protected final void doSelect(final int index)
    {
      if (formComponent instanceof RadioGroup)
      {
        Radio foundRadio = (Radio)formComponent.visitChildren(Radio.class,
          new SearchOptionByIndexVisitor(index));
        if (foundRadio == null)
        {
          fail("RadioGroup " + formComponent.getPath() + " does not have index:" + index);
        }
        assignValueToFormComponent(formComponent, foundRadio.getValue());
      }
      else if (formComponent instanceof CheckGroup)
      {
        Check foundCheck = (Check)formComponent.visitChildren(Check.class,
          new SearchOptionByIndexVisitor(index));
View Full Code Here


        form.add( new CheckBox("featureBounding") );
       
        //service level
        RadioGroup sl = new RadioGroup( "serviceLevel" );
        form.add( sl );
        sl.add( new Radio( "basic", new Model( WFSInfo.ServiceLevel.BASIC ) ) );
        sl.add( new Radio( "transactional", new Model( WFSInfo.ServiceLevel.TRANSACTIONAL  ) ) );
        sl.add( new Radio( "complete", new Model( WFSInfo.ServiceLevel.COMPLETE ) ) );
       
        IModel gml2Model = new LoadableDetachableModel(){
            public Object load(){
                return ((WFSInfo)info.getObject()).getGML().get(WFSInfo.Version.V_10);
            }
View Full Code Here

     */
    protected final void doSelect(final int index)
    {
      if (formComponent instanceof RadioGroup)
      {
        Radio foundRadio = (Radio)formComponent.visitChildren(Radio.class,
            new SearchOptionByIndexVisitor(index));
        if (foundRadio == null)
        {
          fail("RadioGroup " + formComponent.getPath() + " does not has index:"
              + index);
        }
        assignValueToFormComponent(formComponent, foundRadio.getValue());
      }
      else if (formComponent instanceof CheckGroup)
      {
        Check foundCheck = (Check)formComponent.visitChildren(Check.class,
            new SearchOptionByIndexVisitor(index));
View Full Code Here

      add(group);
      ListView persons = new ListView("numbers", NUMBERS)
      {
        protected void populateItem(ListItem item)
        {
          item.add(new Radio("radio", item.getModel()));
          item.add(new Label("number", item.getModelObjectAsString()));
        };
      }.setReuseItems(true);
      group.add(persons);
View Full Code Here

     */
    protected final void doSelect(final int index)
    {
      if (formComponent instanceof RadioGroup)
      {
        Radio foundRadio = (Radio)formComponent.visitChildren(Radio.class,
            new SearchOptionByIndexVisitor(index));
        if (foundRadio == null)
        {
          fail("RadioGroup " + formComponent.getPath() + " does not has index:"
              + index);
        }
        assignValueToFormComponent(formComponent, foundRadio.getValue());
      }
      else if (formComponent instanceof CheckGroup)
      {
        Check foundCheck = (Check)formComponent.visitChildren(Check.class,
            new SearchOptionByIndexVisitor(index));
View Full Code Here

      add(group);
      ListView persons = new ListView("numbers", NUMBERS)
      {
        protected void populateItem(ListItem item)
        {
          item.add(new Radio("radio", item.getModel()));
          item.add(new Label("number", item.getModelObjectAsString()));
        };
      };
      group.add(persons);
View Full Code Here

    ListView persons = new ListView("persons", ComponentReferenceApplication.getPersons())
    {

      protected void populateItem(ListItem item)
      {
        item.add(new Radio("radio", item.getModel()));
        item.add(new Label("name", new PropertyModel(item.getModel(), "name")));
        item.add(new Label("lastName", new PropertyModel(item.getModel(), "lastName")));
      }

    };
View Full Code Here

      add(group);
      ListView persons = new ListView("numbers", NUMBERS)
      {
        protected void populateItem(ListItem item)
        {
          item.add(new Radio("radio", item.getModel()));
          item.add(new Label("number", item.getModelObjectAsString()));
        };
      };
      group.add(persons);
View Full Code Here

     */
    protected final void doSelect(final int index)
    {
      if (formComponent instanceof RadioGroup)
      {
        Radio foundRadio = (Radio)formComponent.visitChildren(Radio.class,
          new SearchOptionByIndexVisitor(index));
        if (foundRadio == null)
        {
          fail("RadioGroup " + formComponent.getPath() + " does not have index:" + index);
        }
        assignValueToFormComponent(formComponent, foundRadio.getValue());
      }
      else if (formComponent instanceof CheckGroup)
      {
        Check foundCheck = (Check)formComponent.visitChildren(Check.class,
          new SearchOptionByIndexVisitor(index));
View Full Code Here

    {
      private static final long serialVersionUID = 1L;

      protected void populateItem(ListItem item)
      {
        item.add(new Radio("radio", new Model((Book)item.getModelObject())));
      }

    };
    radioGroupComponent.add(listView);
    return radioGroupComponent;
View Full Code Here

TOP

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

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.