Package org.apache.wicket

Examples of org.apache.wicket.AttributeModifier


        if(typicalLength != null && maxLength != null && typicalLength > maxLength) {
            typicalLength = maxLength;
        }
       
        if (typicalLength != null) {
            textField.add(new AttributeModifier("size", Model.of("" + typicalLength)));
        }
       
        if(maxLength != null) {
            textField.add(new AttributeModifier("maxlength", Model.of("" + maxLength)));
        }
    }
View Full Code Here


        textField.setEnabled(true);
        setTitleAttribute("");
    }

    private void setTitleAttribute(final String titleAttribute) {
        textField.add(new AttributeModifier("title", Model.of(titleAttribute)));
    }
View Full Code Here

          protected void populateItem(final ListItem<OAuthServer> item) {
            Button btn = new Button("oauthBtn");
            Image icon = new Image("icon", new Model<String>());
            icon.setVisible(item.getModelObject().getIconUrl() != null &&
                !"".equals(item.getModelObject().getIconUrl()));
            icon.add(new AttributeModifier("src", new AbstractReadOnlyModel<String>() {

              private static final long serialVersionUID = 7257002837120721882L;

              @Override
              public String getObject() {
View Full Code Here

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

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

    if (!(RequestCycle.get().getRequest() instanceof UploadWebRequest))
    {
      log.warn("UploadProgressBar will not work without an UploadWebRequest. See the javadoc for details.");
    }
   
    form.add(new AttributeModifier("onsubmit", true, new Model()
    {

      private static final long serialVersionUID = 1L;

View Full Code Here

   * Construct.
   */
  public SimplePage_14()
  {
    WebMarkupContainer container = new WebMarkupContainer("html");
    container.add(new AttributeModifier("lang", new Model("de")));
    //THIS doesn't work.. but in the markup it is child!
    //container.add(new Label("label","label"));
    add(new Label("label","label"));
    add(container);
  }
View Full Code Here

  private class StaticLink extends WebMarkupContainer
  {
    public StaticLink(String id, IModel model)
    {
      super(id, model);
      add(new AttributeModifier("href", true, model));
    }
View Full Code Here

              // Return to guess page with new state to display
            }
          }
        };
        link
            .add(new AttributeModifier("id", true, new Model("letter_"
                + letter.asString())));
        link.add(new Image("image", letter.getSharedImageResource()));
        listItem.add(link);
      }
    });
View Full Code Here

    WebComponent meta = new WebComponent("meta");
    PageParameters parameters = new PageParameters();
    parameters.put("cto", continueTo);
    CharSequence url = urlFor(new BookmarkablePageRequestTarget(BrowserInfoPage.class,
        parameters));
    meta.add(new AttributeModifier("content", true, new Model("0; url=" + url)));
    add(meta);
    WebMarkupContainer link = new WebMarkupContainer("link");
    link.add(new AttributeModifier("href", true, new Model((Serializable)url)));
    add(link);
    add(new BrowserInfoForm("postback")
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

    super(table);
    this.table = 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

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.