Package org.apache.wicket

Examples of org.apache.wicket.AttributeModifier


  public final BookmarkablePageLink<T> setPageMap(final IPageMap pageMap)
  {
    if (pageMap != null)
    {
      pageMapName = pageMap.getName();
      add(new AttributeModifier("target", true, new Model<String>(pageMapName)));
    }
    return this;
  }
View Full Code Here


  {
    super(table);

    WebMarkupContainer span = new WebMarkupContainer("span");
    add(span);
    span.add(new AttributeModifier("colspan", true, new Model<String>(
      String.valueOf(table.getColumns().length))));

    span.add(newPagingNavigator("navigator", table));
    span.add(newNavigatorLabel("navigatorLabel", table));
  }
View Full Code Here

    // root element)
    setTransformBodyOnly(false);

    // Make the XSLT processor happy and allow him to handle the wicket
    // tags and attributes which are in the wicket namespace
    add(new AttributeModifier("xmlns:wicket", true, new Model<String>(
      "http://wicket.apache.org")));
  }
View Full Code Here

    });

    // add the new tabbed panel, attribute modifier only used to switch
    // between different css variations
    add(new TabbedPanel("tabs", tabs).add(new AttributeModifier("class", true,
      TabbedPanelPage.this.getDefaultModel())));

  }
View Full Code Here

      };

      final FeedbackMessage message = listItem.getModelObject();
      message.markRendered();
      final Component label = newMessageDisplayComponent("message", message);
      final AttributeModifier levelModifier = AttributeModifier.append("class", replacementModel);
      label.add(levelModifier);
      listItem.add(levelModifier);
      listItem.add(label);
    }
View Full Code Here

                            BeanWrapper bwi = new BeanWrapperImpl(model.getObject());
                            Object obj = bwi.getPropertyValue(field);

                            item.add(new Label(componentId, ""));
                            item.add(new AttributeModifier("class", new Model<String>(obj.toString())));
                        }

                        @Override
                        public String getCssClass() {
                            return "small_fixedsize";
View Full Code Here

            add(editSchemaWin);

            WebMarkupContainer schemaWrapContainer = new WebMarkupContainer("schemaWrapContainer");
            schemaWrapContainer.setOutputMarkupId(true);
            if (schemaType != SchemaType.VIRTUAL) {
                schemaWrapContainer.add(new AttributeModifier("style", "width:auto;"));
            }
            add(schemaWrapContainer);

            WebMarkupContainer schemaContainer = new WebMarkupContainer("schemaContainer");
            schemaContainer.setOutputMarkupId(true);
View Full Code Here

                            BeanWrapper bwi = new BeanWrapperImpl(model.getObject());
                            Object obj = bwi.getPropertyValue(field);

                            item.add(new Label(componentId, ""));
                            item.add(new AttributeModifier("class", new Model<String>(obj.toString())));
                        }

                        @Override
                        public String getCssClass() {
                            return "small_fixedsize";
View Full Code Here

            add(editSchemaWin);

            WebMarkupContainer schemaWrapContainer = new WebMarkupContainer("schemaWrapContainer");
            schemaWrapContainer.setOutputMarkupId(true);
            if (schemaType != SchemaType.VIRTUAL) {
                schemaWrapContainer.add(new AttributeModifier("style", "width:auto;"));
            }
            add(schemaWrapContainer);

            WebMarkupContainer schemaContainer = new WebMarkupContainer("schemaContainer");
            schemaContainer.setOutputMarkupId(true);
View Full Code Here

    choice = new DropDownChoice("filter", model, choices, renderer);
   
    if (autoSubmit)
    {
      choice.add(new AttributeModifier("onchange", true, new Model("this.form.submit();")));
    }
    enableFocusTracking(choice);
   
    add(choice);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.AttributeModifier

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.