Package org.wicketstuff.yui.markup.html.ellipse

Examples of org.wicketstuff.yui.markup.html.ellipse.EllipsePanel


  public AnimationPage3()
  {
    final TextField tf;
    add(tf = new TextField("textfield", new PropertyModel(this, "textfield")));
   
    EllipsePanel ellipsePanel;
    add(ellipsePanel = new EllipsePanel("ep1", new ThumbnailProvider())
    {
      @Override
      public Component newEllipseItem(String id, IModel model, int left, int top)
      {
        AnimatedThumbnailSettings settings = (AnimatedThumbnailSettings) model.getObject();
        settings.setThumbnailDimension(getItemWidth(), getItemHeight());
        settings.setPictureDimension(PIC_WIDTH, PIC_HEIGHT);
        settings.setPicturePosition(PIC_LEFT - left, PIC_TOP - top);
       
        AnimatedItem item = new MyAnimatedThumbnail(id, tf, settings);
        items.add(item);
       
        return item;
      }
     
      @Override
      protected void onBeforeRender()
      {
        super.onBeforeRender();
        for (AnimatedItem anItem : items)
        {
          for (AnimatedItem anItem2 : items)
          {
            String value = anItem.getSelectValue();
            if (anItem != anItem2)
              anItem.getOnunselectAnimation().addTriggerOnValue(anItem2.getMouseoverItem(), tf , value);
          }
        }
      }
    });
    ellipsePanel.setDimension(PANEL_WIDTH, PANEL_HEIGHT, ITEM_WIDTH, ITEM_HEIGHT);
  }
View Full Code Here

TOP

Related Classes of org.wicketstuff.yui.markup.html.ellipse.EllipsePanel

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.