Package org.apache.wicket

Examples of org.apache.wicket.AttributeModifier


       */
      public ButtonLink(String id)
      {
        super(id);
        count3 = new ClickCount();
        add(new AttributeModifier("value", new Model<String>()
        {
          @Override
          public String getObject()
          {
            // we just replace the whole string. You could use
View Full Code Here


       */
      public ButtonLink(String id)
      {
        super(id);
        count3 = new ClickCount();
        add(new AttributeModifier("value", new Model<String>()
        {
          @Override
          public String getObject()
          {
            // we just replace the whole string. You could use
View Full Code Here

    // get the url to that page
    CharSequence leftFrameSrc = RequestCycle.get().urlFor(leftFrame);
    // and create a simple component that modifies it's src attribute to
    // hold the url to that frame
    WebComponent leftFrameTag = new WebComponent("leftFrame");
    leftFrameTag.add(new AttributeModifier("src", new Model((Serializable)leftFrameSrc)));
    add(leftFrameTag);

    // make a simple component for the right frame tag
    WebComponent rightFrameTag = new WebComponent("rightFrame");
    // and this time, set a model which retrieves the url to the currently
    // set frame class in the frame target
    rightFrameTag.add(new AttributeModifier("src", new FrameModel()));
    add(rightFrameTag);
  }
View Full Code Here

          return getCSSClass(message);
        }
      };

      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

  public final BookmarkablePageLink 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

        item.add(new Label("firstname", contact.getFirstName()));
        item.add(new Label("lastname", contact.getLastName()));
        item.add(new Label("homephone", contact.getHomePhone()));
        item.add(new Label("cellphone", contact.getCellPhone()));

        item.add(new AttributeModifier("class", true, new AbstractReadOnlyModel<String>()
        {
          private static final long serialVersionUID = 1L;

          @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>(
      String.valueOf(table.getColumns().length))));

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

          return getCSSClass(message);
        }
      };

      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

    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

      writingStyles = getLocalizer().getString("noWritingStyles", this);
    }

    Label writingStylesLabel = new Label("writingStyles", writingStyles);

    final AttributeModifier italic = new AttributeModifier("class", new Model<String>("italic"));
    italic.setEnabled(!hasStyles);

    add(writingStylesLabel.add(italic));
    add(EditBook.link("edit", book.getId()));
  }
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.