Package org.apache.wicket.behavior

Examples of org.apache.wicket.behavior.SimpleAttributeModifier


        final WebMarkupContainer titleLink = newLink("link", index);

        titleLink.add(newTitle("title", tab.getTitle(), index));
        item.add(titleLink);

        item.add(new SimpleAttributeModifier("class", "selected")
        {
          private static final long serialVersionUID = 1L;

          public boolean isEnabled(Component component)
          {
View Full Code Here


      int iteration = item.getIteration();

      // add the star image, which is either active (highlighted) or
      // inactive (no star)
      link.add(new WebMarkupContainer("star").add(new SimpleAttributeModifier("src",
        (onIsStarActive(iteration) ? getActiveStarUrl(iteration)
          : getInactiveStarUrl(iteration)))));
      item.add(link);
    }
View Full Code Here

      int iteration = item.getIndex();

      // add the star image, which is either active (highlighted) or
      // inactive (no star)
      link.add(new WebMarkupContainer("star").add(new SimpleAttributeModifier("src",
        (onIsStarActive(iteration) ? getActiveStarUrl(iteration)
          : getInactiveStarUrl(iteration)))));
      item.add(link);
    }
View Full Code Here

      int iteration = item.getIteration();

      // add the star image, which is either active (highlighted) or
      // inactive (no star)
      link.add(new WebMarkupContainer("star").add(new SimpleAttributeModifier("src",
        (onIsStarActive(iteration) ? getActiveStarUrl(iteration)
          : getInactiveStarUrl(iteration)))));
      item.add(link);
    }
View Full Code Here

        link.add(new Image("image", letter.getSharedImageResource()));
        listItem.add(link);

        // append id attribute to link for unit tests
        link.add(new SimpleAttributeModifier("id", "letter_" + letter.asString()));


      }
    });
  }
View Full Code Here

   *
   * @param cssStyle
   */
  public final void setTableBodyCss(final String cssStyle)
  {
    body.add(new SimpleAttributeModifier("class", cssStyle));
  }
View Full Code Here

      int iteration = item.getIteration();

      // add the star image, which is either active (highlighted) or
      // inactive (no star)
      link.add(new WebMarkupContainer("star").add(new SimpleAttributeModifier("src",
        (onIsStarActive(iteration) ? getActiveStarUrl(iteration)
          : getInactiveStarUrl(iteration)))));
      item.add(link);
    }
View Full Code Here

   *
   * @param cssStyle
   */
  public final void setTableBodyCss(final String cssStyle)
  {
    body.add(new SimpleAttributeModifier("class", cssStyle));
  }
View Full Code Here

   
    final WebMarkupContainer parent = new WebMarkupContainer(Constants.PAYLOAD_ID);
    add(parent);
    Label exception = new Label(Constants.NODE_ID, ex.asString());
    exception.setEscapeModelStrings(false);
    exception.add(new SimpleAttributeModifier("class", "exception"));
    parent.add(exception);
    if (ex.getLines() > 50) {
      System.out.println("ex.getLines() > 50");
      SimpleAttributeModifier sam = new SimpleAttributeModifier("style",
          "height: 40em; overflow: scroll;");
      exception.add(sam);
    }
  }
View Full Code Here

  void handleBlankPlaceHolderImage() {
    final WebMarkupContainer parent = new WebMarkupContainer(
        Constants.TREE_CONTROL_ID);
    // we don't want the "hand" cursor to appear over the blank place holder
    // image
    parent.add(new SimpleAttributeModifier("style", "cursor: default;"));

    Image image = new Image(Constants.TREE_CONTROL_SYMBOL_ID,
        new ResourceReference(TestReportPanel.class, Constants.BLANK_GIF));
    parent.add(image);
    add(parent);
View Full Code Here

TOP

Related Classes of org.apache.wicket.behavior.SimpleAttributeModifier

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.