Package org.apache.wicket.examples.base.markup

Examples of org.apache.wicket.examples.base.markup.ClassValue


  @Override
  protected void onComponentTag(ComponentTag tag)
  {
    super.onComponentTag(tag);

    ClassValue css = ClassValue.of(tag.getAttribute("class"));
    css.with("navbar").with("navbar-fixed-top");
    tag.put("class", css.toString());
  }
View Full Code Here


  @Override
  public void onComponentTag(Component component, ComponentTag tag) {
    super.onComponentTag(component, tag);

    BookmarkablePageLink<?> link = (BookmarkablePageLink<?>) component;
    ClassValue classValue = ClassValue.of(tag.getAttributes().getString(
        "class"));
    if (link.linksTo(link.getPage()))
      classValue.with("active");
    else
      classValue.without("active");

    tag.put("class", classValue.toString());
  }
View Full Code Here

  @Override
  protected void onComponentTag(ComponentTag tag) {
    super.onComponentTag(tag);
   
    ClassValue css = ClassValue.of(tag.getAttribute("class"));
    css.with("navbar").with("navbar-fixed-top");
    tag.put("class", css.toString());
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.examples.base.markup.ClassValue

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.