Package org.apache.wicket.markup.html.list

Examples of org.apache.wicket.markup.html.list.LoopItem


   * @param tabIndex
   * @return new loop item
   */
  protected LoopItem newTabContainer(final int tabIndex)
  {
    return new LoopItem(tabIndex)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onConfigure()
View Full Code Here


        private static final long serialVersionUID = 1L;

        @Override
        public void onClick(final AjaxRequestTarget target)
        {
          LoopItem item = (LoopItem)getParent();

          // adjust the rating, and provide the target to the subclass
          // of our rating component, so other components can also get
          // updated in case of an AJAX event.

          onRated(item.getIndex() + 1, target);

          // if we process an AJAX event, update this panel
          if (target != null)
          {
            target.add(RatingPanel.this.get("rater"));
          }
        }

        @Override
        public boolean isEnabled()
        {
          return !hasVoted.getObject();
        }
      };

      int iteration = item.getIndex();

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

        private static final long serialVersionUID = 1L;

        @Override
        public void onClick(AjaxRequestTarget target)
        {
          LoopItem item = (LoopItem)getParent();

          // adjust the rating, and provide the target to the subclass
          // of our rating component, so other components can also get
          // updated in case of an AJAX event.

          onRated(item.getIndex() + 1, target);

          // if we process an AJAX event, update this panel
          if (target != null)
          {
            target.addComponent(RatingPanel.this.get("rater"));
          }
        }

        @Override
        public boolean isEnabled()
        {
          return !hasVoted.getObject();
        }
      };

      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

        private static final long serialVersionUID = 1L;

        @Override
        public void onClick(AjaxRequestTarget target)
        {
          LoopItem item = (LoopItem)getParent();

          // adjust the rating, and provide the target to the subclass
          // of our rating component, so other components can also get
          // updated in case of an AJAX event.

          onRated(item.getIndex() + 1, target);

          // if we process an AJAX event, update this panel
          if (target != null)
          {
            target.add(RatingPanel.this.get("rater"));
          }
        }

        @Override
        public boolean isEnabled()
        {
          return !hasVoted.getObject();
        }
      };

      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

   * @param tabIndex
   * @return new loop item
   */
  protected LoopItem newTabContainer(final int tabIndex)
  {
    return new LoopItem(tabIndex)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onComponentTag(ComponentTag tag)
View Full Code Here

   * @param tabIndex
   * @return new loop item
   */
  protected LoopItem newTabContainer(final int tabIndex)
  {
    return new LoopItem(tabIndex)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onComponentTag(final ComponentTag tag)
View Full Code Here

        private static final long serialVersionUID = 1L;

        @Override
        public void onClick(AjaxRequestTarget target)
        {
          LoopItem item = (LoopItem)getParent();

          // adjust the rating, and provide the target to the subclass
          // of our rating component, so other components can also get
          // updated in case of an AJAX event.

          onRated(item.getIndex() + 1, target);

          // if we process an AJAX event, update this panel
          if (target != null)
          {
            target.addComponent(RatingPanel.this.get("rater"));
          }
        }

        @Override
        public boolean isEnabled()
        {
          return !hasVoted.getObject();
        }
      };

      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

   * @param tabIndex
   * @return new loop item
   */
  protected LoopItem newTabContainer(final int tabIndex)
  {
    return new LoopItem(tabIndex)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onComponentTag(ComponentTag tag)
View Full Code Here

   * @param tabIndex
   * @return new loop item
   */
  protected LoopItem newTabContainer(final int tabIndex)
  {
    return new LoopItem(tabIndex)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onComponentTag(final ComponentTag tag)
View Full Code Here

   * @param tabIndex
   * @return new loop item
   */
  protected LoopItem newTabContainer(final int tabIndex)
  {
    return new LoopItem(tabIndex)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onConfigure()
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.list.LoopItem

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.