Package org.wicketstuff.yui.behavior.animation

Examples of org.wicketstuff.yui.behavior.animation.YuiAnimation


    newAnimatedComponent("drop", OnEvent.click, YuiEffect.Type.Drop, true);

    // TV
    WebMarkupContainer tv;
    add(tv = new WebMarkupContainer("tv"));
    tv.add(new YuiAnimation(OnEvent.click).addEffect(new YuiEffect(YuiEffect.Type.TV, delay))
        .addEffect(new YuiEffect(YuiEffect.Type.Appear)));

    // mouse over
    newAnimatedComponent("fade_mouseover", OnEvent.mouseover, YuiEffect.Type.Fade, true);

    // Blind Up / Down + attributes...
    Attributes ghost_attr = delay.add(new Attributes("ghost", "true"));
    Attributes easing = new Attributes("ease", YuiEasing.elasticBoth.constant());

    WebMarkupContainer ghost;
    add(ghost = new WebMarkupContainer("ghost"));
    ghost.add(new YuiAnimation(OnEvent.click).addEffect(
        new YuiEffect(YuiEffect.Type.BlindUp, ghost_attr)).addEffect(
        new YuiEffect(YuiEffect.Type.BlindDown, easing)));


    // Batch Blind Up / Down / Right / Drop / Appear
    WebMarkupContainer batch;
    add(batch = new WebMarkupContainer("batch"));
    batch.add(new YuiAnimation(OnEvent.click).addEffect(
        new YuiEffect(YuiEffect.Type.BlindUp, delay)).addEffect(
        new YuiEffect(YuiEffect.Type.BlindDown)).addEffect(
        new YuiEffect(YuiEffect.Type.BlindRight, delay)).addEffect(
        new YuiEffect(YuiEffect.Type.Drop)).addEffect(
        new YuiEffect(YuiEffect.Type.Appear, delay)));

    // Blind
    newAnimatedComponent("blindup", OnEvent.click, YuiEffect.Type.BlindUp, true);
    newAnimatedComponent("blinddown", OnEvent.click, YuiEffect.Type.BlindDown, true);
    newAnimatedComponent("blindleft", OnEvent.click, YuiEffect.Type.BlindLeft, true);
    newAnimatedComponent("blindright", OnEvent.click, YuiEffect.Type.BlindRight, true);

    // Blind Right + with attributes
    WebMarkupContainer blindright;
    add(blindright = new WebMarkupContainer("blindright_binded"));

    // set up attributes
    Attributes blindrightAttributes = new Attributes("bind", "right");
    blindrightAttributes.add(delay);
    blindright.add(new YuiAnimation(OnEvent.click).addEffect(
        new YuiEffect(YuiEffect.Type.BlindRight, blindrightAttributes)).addEffect(
        new YuiEffect(YuiEffect.Type.Appear, delay)));

    // Click for Info ...
    WebMarkupContainer info;
    add(info = new WebMarkupContainer("info"));

    info.add(new YuiAnimation(OnEvent.click, "clickformore").addEffect(new YuiEffect(
        YuiEffect.Type.BlindDown, delay)));
    info.add(new YuiAnimation(OnEvent.click, "clickformore").addEffect(new YuiEffect(
        YuiEffect.Type.BlindUp, delay)));
  }
View Full Code Here


    {
      attributes.add("delay", "true");
    }

    add(comp);
    comp.add(new YuiAnimation(onEvent).addEffect(new YuiEffect(effectType, attributes))
        .addEffect(new YuiEffect(YuiEffect.Type.Appear)));
    return comp;
  }
View Full Code Here

    add(onloadItem = newOnloadItem("onload_item"));
    add(mouseoverItem = newMouseoverItem("mouseover_item"));
    add(onclickItem = newOnclickItem("onclick_item"));

    // animation
    mouseoverItem.add(new YuiAnimation(OnEvent.mouseover, onloadItem)
        .addEffect(mouseoverEffect()));
    mouseoverItem.add(new YuiAnimation(OnEvent.mouseout, mouseoverItem)
        .addEffect(mouseoutEffect()));

    // this is the "select"
    onclickItem.add(new YuiAnimation(OnEvent.click, mouseoverItem, getElement(),
        getSelectValue()).addEffect(onselectEffect()));

    // this is the "unselect"
    onclickItem.add(onunselectAnimation = new YuiAnimation(OnEvent.click, onclickItem,
        getElement(), getUnselectValue()).addEffect(onunselectEffect()));
  }
View Full Code Here

TOP

Related Classes of org.wicketstuff.yui.behavior.animation.YuiAnimation

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.