Package com.gitblit.wicket.panels

Examples of com.gitblit.wicket.panels.ShockWaveComponent


  protected Fragment createCopyFragment(String wicketId, String text) {
    if (app().settings().getBoolean(Keys.web.allowFlashCopyToClipboard, true)) {
      // clippy: flash-based copy & paste
      Fragment copyFragment = new Fragment(wicketId, "clippyPanel", this);
      String baseUrl = WicketUtils.getGitblitURL(getRequest());
      ShockWaveComponent clippy = new ShockWaveComponent("clippy", baseUrl + "/clippy.swf");
      clippy.setValue("flashVars", "text=" + StringUtils.encodeURL(text));
      copyFragment.add(clippy);
      return copyFragment;
    } else {
      // javascript: manual copy & paste with modal browser prompt dialog
      Fragment copyFragment = new Fragment(wicketId, "jsPanel", this);
View Full Code Here


  protected Fragment createCopyFragment(String wicketId, String text) {
    if (app().settings().getBoolean(Keys.web.allowFlashCopyToClipboard, true)) {
      // clippy: flash-based copy & paste
      Fragment copyFragment = new Fragment(wicketId, "clippyPanel", this);
      String baseUrl = WicketUtils.getGitblitURL(getRequest());
      ShockWaveComponent clippy = new ShockWaveComponent("clippy", baseUrl + "/clippy.swf");
      clippy.setValue("flashVars", "text=" + StringUtils.encodeURL(text));
      copyFragment.add(clippy);
      return copyFragment;
    } else {
      // javascript: manual copy & paste with modal browser prompt dialog
      Fragment copyFragment = new Fragment(wicketId, "jsPanel", this);
View Full Code Here

TOP

Related Classes of com.gitblit.wicket.panels.ShockWaveComponent

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.