Examples of AttributeModifier


Examples of org.apache.wicket.AttributeModifier

        public String getObject()
        {
          return urlFor(resourceReference).toString();
        };
      };
      add(new AttributeModifier("src", true, srcReplacement));
    }
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

                }
            };
        }
           
        if (confirmMsg != null) {
            button.add( new AttributeModifier("onclick", true, null) {
                private static final long serialVersionUID = 1L;

                @Override
                protected String newValue(String currentValue, String replacementValue)
                {
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

                }
            }

            beanMetaData.applyCss(bean, element, component);

            item.add( new AttributeModifier(PARAM_COLSPAN, true, new Model<String>(String.valueOf(colspan))) );
            int pct100 = (colspan * 10000) / columns;
            String width = "width: " + (pct100 / 100) + "." + (pct100 % 100) + "%;";
            item.add( new AttributeModifier("style", true, new Model<String>(width)) );
            item.add(component);
        }
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

   */
  public RedirectPage(final CharSequence url, final int waitBeforeRedirectInSeconds)
  {
    final WebMarkupContainer redirect = new WebMarkupContainer("redirect");
    final String content = waitBeforeRedirectInSeconds + ";URL=" + url;
    redirect.add(new AttributeModifier("content", new Model<>(content)));
    add(redirect);
  }
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

      };

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

Examples of org.apache.wicket.AttributeModifier

      protected void onModelChanging()
      {
        AjaxEditableMultiLineLabel.this.onModelChanging();
      }
    };
    editor.add(new AttributeModifier("rows", new AbstractReadOnlyModel<Integer>()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public Integer getObject()
      {
        return rows;
      }
    }));
    editor.add(new AttributeModifier("cols", new AbstractReadOnlyModel<Integer>()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public Integer getObject()
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

    parameters.set("cto", continueTo);

    CharSequence url = urlFor(new BookmarkablePageRequestHandler(new PageProvider(
      BrowserInfoPage.class, parameters)));

    meta.add(new AttributeModifier("content", true, new Model<String>("0; url=" + url)));
    add(meta);
    WebMarkupContainer link = new WebMarkupContainer("link");
    link.add(new AttributeModifier("href", true, new Model<Serializable>((Serializable)url)));
    add(link);
    add(new BrowserInfoForm("postback")
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

   */
  public ClientSideImageMap(String id, Image image)
  {
    super(id);
    setOutputMarkupId(true);
    add(new AttributeModifier("name", true, new PropertyModel<String>(this, "markupId")));
    image.add(new AttributeModifier("usemap", true, new UsemapModel()));

    areas = new RepeatingView("area");
    add(areas);
  }
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

    choice = newDropDownChoice("filter", model, choices, renderer);

    if (autoSubmit)
    {
      choice.add(new AttributeModifier("onchange", true, new Model<String>(
        "this.form.submit();")));
    }
    enableFocusTracking(choice);

    add(choice);
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

    // 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/dtds.data/wicket-xhtml1.3-strict.dtd")));
  }
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.