Examples of RatingPanel


Examples of org.apache.wicket.extensions.rating.RatingPanel

  /**
   * Constructor.
   */
  public RatingsPage()
  {
    add(new RatingPanel("rating1", new PropertyModel(rating1, "rating"), 5, new PropertyModel(
        rating1, "nrOfVotes"), true)
    {
      protected boolean onIsStarActive(int star)
      {
        return RatingsPage.rating1.isActive(star);
      }

      protected void onRated(int rating, AjaxRequestTarget target)
      {
        RatingsPage.rating1.addRating(rating);
      }
    });
    add(new RatingPanel("rating2", new PropertyModel(rating2, "rating"),
              new Model(5), new PropertyModel(rating2, "nrOfVotes"),
              new PropertyModel(this, "hasVoted"), true)
    {
      protected String getActiveStarUrl(int iteration)
      {
View Full Code Here

Examples of org.apache.wicket.extensions.rating.RatingPanel

  /**
   * Constructor.
   */
  public RatingsPage()
  {
    add(new RatingPanel("rating1", new PropertyModel<Integer>(rating1, "rating"), 5, new PropertyModel<Integer>(
        rating1, "nrOfVotes"), true)
    {
      @Override
      protected boolean onIsStarActive(int star)
      {
        return RatingsPage.rating1.isActive(star);
      }

      @Override
      protected void onRated(int rating, AjaxRequestTarget target)
      {
        RatingsPage.rating1.addRating(rating);
      }
    });
    add(new RatingPanel("rating2", new PropertyModel<Integer>(rating2, "rating"),
              new Model<Integer>(5), new PropertyModel<Integer>(rating2, "nrOfVotes"),
              new PropertyModel<Boolean>(this, "hasVoted"), true)
    {
      @Override
      protected String getActiveStarUrl(int iteration)
View Full Code Here

Examples of org.apache.wicket.extensions.rating.RatingPanel

  /**
   * Constructor.
   */
  public RatingsPage()
  {
    add(new RatingPanel("rating1", new PropertyModel(rating1, "rating"), 5, new PropertyModel(
        rating1, "nrOfVotes"), true)
    {
      protected boolean onIsStarActive(int star)
      {
        return RatingsPage.rating1.isActive(star);
      }

      protected void onRated(int rating, AjaxRequestTarget target)
      {
        RatingsPage.rating1.addRating(rating);
      }
    });
    add(new RatingPanel("rating2", new PropertyModel(rating2, "rating"), new Model(new Integer(
        5)), new PropertyModel(rating2, "nrOfVotes"), new PropertyModel(this, "hasVoted"),
        true)
    {
      protected String getActiveStarUrl(int iteration)
      {
View Full Code Here

Examples of org.apache.wicket.extensions.rating.RatingPanel

  /**
   * Constructor.
   */
  public RatingsPage()
  {
    add(new RatingPanel("rating1", new PropertyModel(rating1, "rating"), 5, new PropertyModel(
        rating1, "nrOfVotes"), true)
    {
      protected boolean onIsStarActive(int star)
      {
        return RatingsPage.rating1.isActive(star);
      }

      protected void onRated(int rating, AjaxRequestTarget target)
      {
        RatingsPage.rating1.addRating(rating);
      }
    });
    add(new RatingPanel("rating2", new PropertyModel(rating2, "rating"),
              new Model(5), new PropertyModel(rating2, "nrOfVotes"),
              new PropertyModel(this, "hasVoted"), true)
    {
      protected String getActiveStarUrl(int iteration)
      {
View Full Code Here

Examples of org.apache.wicket.extensions.rating.RatingPanel

  /**
   * Constructor.
   */
  public RatingsPage()
  {
    add(new RatingPanel("rating1", new PropertyModel<Integer>(rating1, "rating"), 5,
      new PropertyModel<Integer>(rating1, "nrOfVotes"), true)
    {
      @Override
      public boolean onIsStarActive(int star)
      {
        return RatingsPage.rating1.isActive(star);
      }

      @Override
      public void onRated(int rating, AjaxRequestTarget target)
      {
        RatingsPage.rating1.addRating(rating);
      }
    });

    add(new RatingPanel("rating2", new PropertyModel<Integer>(rating2, "rating"),
      new Model<Integer>(5), new PropertyModel<Integer>(rating2, "nrOfVotes"),
      new PropertyModel<Boolean>(this, "hasVoted"), true)
    {
      @Override
      protected String getActiveStarUrl(int iteration)
View Full Code Here

Examples of org.apache.wicket.extensions.rating.RatingPanel

  /**
   * Constructor.
   */
  public RatingsPage()
  {
    add(new RatingPanel("rating1", new PropertyModel<Integer>(rating1, "rating"), 5,
      new PropertyModel<Integer>(rating1, "nrOfVotes"), true)
    {
      @Override
      public boolean onIsStarActive(int star)
      {
        return RatingsPage.rating1.isActive(star);
      }

      @Override
      public void onRated(int rating, AjaxRequestTarget target)
      {
        RatingsPage.rating1.addRating(rating);
      }
    });

    add(new RatingPanel("rating2", new PropertyModel<Integer>(rating2, "rating"),
      new Model<Integer>(5), new PropertyModel<Integer>(rating2, "nrOfVotes"),
      new PropertyModel<Boolean>(this, "hasVoted"), true)
    {
      @Override
      protected String getActiveStarUrl(int iteration)
View Full Code Here

Examples of org.apache.wicket.extensions.rating.RatingPanel

  /**
   * Constructor.
   */
  public RatingsPage()
  {
    add(new RatingPanel("rating1", new PropertyModel<Integer>(rating1, "rating"), 5,
      new PropertyModel<Integer>(rating1, "nrOfVotes"), true)
    {
      @Override
      public boolean onIsStarActive(int star)
      {
        return RatingsPage.rating1.isActive(star);
      }

      @Override
      public void onRated(int rating, AjaxRequestTarget target)
      {
        RatingsPage.rating1.addRating(rating);
      }
    });

    add(new RatingPanel("rating2", new PropertyModel<Integer>(rating2, "rating"),
      new Model<Integer>(5), new PropertyModel<Integer>(rating2, "nrOfVotes"),
      new PropertyModel<Boolean>(this, "hasVoted"), true)
    {
      @Override
      protected String getActiveStarUrl(int iteration)
View Full Code Here

Examples of org.apache.wicket.extensions.rating.RatingPanel

  /**
   * Constructor.
   */
  public RatingsPage()
  {
    add(new RatingPanel("rating1", new PropertyModel<Integer>(rating1, "rating"), 5,
      new PropertyModel<Integer>(rating1, "nrOfVotes"), true)
    {
      @Override
      public boolean onIsStarActive(int star)
      {
        return RatingsPage.rating1.isActive(star);
      }

      @Override
      public void onRated(int rating, AjaxRequestTarget target)
      {
        RatingsPage.rating1.addRating(rating);
      }
    });

    add(new RatingPanel("rating2", new PropertyModel<Integer>(rating2, "rating"),
      new Model<Integer>(5), new PropertyModel<Integer>(rating2, "nrOfVotes"),
      new PropertyModel<Boolean>(this, "hasVoted"), true)
    {
      @Override
      protected String getActiveStarUrl(int iteration)
View Full Code Here

Examples of org.apache.wicket.extensions.rating.RatingPanel

  /**
   * Constructor.
   */
  public RatingsPage()
  {
    add(new RatingPanel("rating1", new PropertyModel(rating1, "rating"), 5, new PropertyModel(
        rating1, "nrOfVotes"), true)
    {
      protected boolean onIsStarActive(int star)
      {
        return RatingsPage.rating1.isActive(star);
      }

      protected void onRated(int rating, AjaxRequestTarget target)
      {
        RatingsPage.rating1.addRating(rating);
      }
    });
    add(new RatingPanel("rating2", new PropertyModel(rating2, "rating"), new Model(new Integer(
        5)), new PropertyModel(rating2, "nrOfVotes"), new PropertyModel(this, "hasVoted"),
        true)
    {
      protected String getActiveStarUrl(int iteration)
      {
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.