Examples of MFXStyle


Examples of wicket.contrib.mootools.effects.MFXStyle

   */
  public String writeStyles() {
    StringBuffer buf = new StringBuffer();
    for(int j = 0 ; j < mfxStyles.size(); j++ ) {
      final String effectId = getTarget()+String.valueOf(j);
      final MFXStyle style = (MFXStyle)mfxStyles.get(j);
      style.setTarget(getTarget());
      buf.append(effectId);
      buf.append(" = "+style.getMooFunction());
     
      String delimeter = "";
      if(style.getStartValue().substring(0, 1).equals("#"))
        delimeter = "'";
     
      buf.append(effectId+".start("+delimeter+style.getStartValue()+delimeter+","
            +delimeter+style.getEndValue()+delimeter+");")
    }
    return buf.toString();
  }
View Full Code Here

Examples of wicket.contrib.mootools.effects.MFXStyle

  {
    // window onload event
    MFXWindowLoad load = new MFXWindowLoad();

    // append the style to the window onload event
    load.addStyle(new MFXStyle("margin-left", -400, 0));

    // append event to the element that will have the animation
    Label lbl = new Label("label", "hello world");
    lbl.add(load);
    add(lbl);
View Full Code Here

Examples of wicket.contrib.mootools.effects.MFXStyle

    return null;
  }

  private String invalidFunction() {
    final String compid = getComponent().getMarkupId();
    MFXStyle validToInvalid = new MFXStyle("background-color",validColor,invalidColor);
    if(jsEvent.equalsIgnoreCase("onchange"))
      validToInvalid.setOnComplete("$('"+compid+"').blur();");
    validToInvalid.setTarget(compid).setDuration(1000);
    return compid + "=" + validToInvalid.getMooFunction();
  }
View Full Code Here

Examples of wicket.contrib.mootools.effects.MFXStyle

    return compid + "=" + validToInvalid.getMooFunction();
  }
 
  private String validFunction() {
    final String compid = getComponent().getMarkupId();
    MFXStyle invalidToValid = new MFXStyle("background-color",invalidColor,validColor);
    if(jsEvent.equalsIgnoreCase("onchange"))
      invalidToValid.setOnComplete("$('"+compid+"').blur();");
    invalidToValid.setTarget(compid).setDuration(500);
    return compid + "=" + invalidToValid.getMooFunction();
  }
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.