Examples of CSSInlineStyle


Examples of org.wicketstuff.yui.helper.CSSInlineStyle

    int thumbWidth = thumbInfo.getWidth();
    int bgLength = settings.getLength();

    String width = Integer.toString(bgLength - thumbWidth);

    CSSInlineStyle background = new CSSInlineStyle();

    background.add("height", height + "px");
    background.add("width", width + "px");
    background.add("background", "url("
        + RequestCycle.get().urlFor(settings.getBackgroundResource()) + ") repeat-x");

    return background.getStyle();
  }
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

      super("style", true, new AbstractReadOnlyModel()
      {
        @Override
        public Object getObject()
        {
          CSSInlineStyle style = new CSSInlineStyle();
          style.add("width", getSettings().getThumbnailWidth() + "px");
          style.add("height", getSettings().getThumbnailHeight() + "px");
          return style.getStyle();
        }
      });
    }
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

      ImageResourceInfo imgInfo = new ImageResourceInfo(imgRR);
      int imgWidth = imgInfo.getWidth();
      int imgHeight = imgInfo.getHeight();

      CSSInlineStyle imgStyle = new CSSInlineStyle();
      imgStyle.add("background", "url("
          + RequestCycle.get().urlFor(imgRR) + ")");
      imgStyle.add("width", imgWidth + "px");
      imgStyle.add("height", imgHeight + "px");

      imgStyle.add("top", img.getTop() + "px");
      imgStyle.add("left", img.getLeft() + "px");

      targetSlotStyleList.add(imgStyle);

      this.targetSlotWidth = imgWidth;
      this.targetSlotHeight = imgHeight;
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

  @Override
  protected String getThumbStyle()
  {
    YuiSliderSettings settings = getSliderSettings();
    ImageResourceInfo thumbInfo = new ImageResourceInfo(settings.getThumbResource());
    CSSInlineStyle thumb = new CSSInlineStyle();
    thumb.add("width", thumbInfo.getWidth() + "px");
    thumb.add("left", 0 - thumbInfo.getWidth() + "px");
    return thumb.getStyle();
  }
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

  @Override
  protected String getLeftUpStyle()
  {
    YuiSliderSettings settings = getSliderSettings();
    ImageResourceInfo res = new ImageResourceInfo(settings.getLeftUpResource());
    CSSInlineStyle background = new CSSInlineStyle();
    background.add("background", "url("
        + RequestCycle.get().urlFor(settings.getLeftUpResource()) + ") no-repeat");
    background.add("width", res.getWidth() + "px");
    background.add("height", res.getHeight() + "px");
    return background.getStyle();
  }
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

  @Override
  protected String getRightDownStyle()
  {
    YuiSliderSettings settings = getSliderSettings();
    ImageResourceInfo res = new ImageResourceInfo(settings.getRightDownResource());
    CSSInlineStyle background = new CSSInlineStyle();
    background.add("background", "url("
        + RequestCycle.get().urlFor(settings.getRightDownResource()) + ") no-repeat");
    background.add("width", res.getWidth() + "px");
    background.add("height", res.getHeight() + "px");
    return background.getStyle();
  }
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

      ImageResourceInfo selectedImgOverInfo = new ImageResourceInfo(
          selectedImgOverRR);
      int selectedImgOverWidth = selectedImgOverInfo.getWidth();
      int selectedImgOverHeight = selectedImgOverInfo.getHeight();

      CSSInlineStyle defaultImgStyle = new CSSInlineStyle();
      defaultImgStyle.add("background", "url("
          + RequestCycle.get().urlFor(defaultImgRR) + ")");
      defaultImgStyle.add("width", defaultImgWidth + "px");
      defaultImgStyle.add("height", defaultImgHeight + "px");

      CSSInlineStyle defaultImgOverStyle = new CSSInlineStyle();
      defaultImgOverStyle.add("background", "url("
          + RequestCycle.get().urlFor(defaultImgOverRR) + ")");
      defaultImgOverStyle.add("width", defaultImgOverWidth + "px");
      defaultImgOverStyle.add("height", defaultImgOverHeight + "px");

      CSSInlineStyle selectedImgStyle = new CSSInlineStyle();
      selectedImgStyle.add("background", "url("
          + RequestCycle.get().urlFor(selectedImgRR) + ")");
      selectedImgStyle.add("width", selectedImgWidth + "px");
      selectedImgStyle.add("height", selectedImgHeight + "px");

      CSSInlineStyle selectedImgOverStyle = new CSSInlineStyle();
      selectedImgOverStyle.add("background", "url("
          + RequestCycle.get().urlFor(selectedImgOverRR) + ")");
      selectedImgOverStyle.add("width", selectedImgOverWidth + "px");
      selectedImgOverStyle.add("height", selectedImgOverHeight + "px");

      defaultImgStyleList.add(defaultImgStyle);
      defaultImgOverStyleList.add(defaultImgOverStyle);
      selectedImgStyleList.add(selectedImgStyle);
      selectedImgOverStyleList.add(selectedImgOverStyle);
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

        @Override
        public Object getObject()
        {
          if (name.equals("DefaultImg")) {
            List<CSSInlineStyle> aCSSInlineStyleList = settings.getDefaultImgStyleList();
            CSSInlineStyle aCSSInlineStyle = aCSSInlineStyleList.get(0);
            return aCSSInlineStyle.getStyle();
          } else if (name.equals("DefaultImgOver")) {
            List<CSSInlineStyle> aCSSInlineStyleList = settings.getDefaultImgOverStyleList();
            CSSInlineStyle aCSSInlineStyle = aCSSInlineStyleList.get(0);
            return aCSSInlineStyle.getStyle();
          } else if (name.equals("SelectedImg")) {
            List<CSSInlineStyle> aCSSInlineStyleList = settings.getSelectedImgStyleList();
            CSSInlineStyle aCSSInlineStyle = aCSSInlineStyleList.get(0);
            return aCSSInlineStyle.getStyle();
          } else if (name.equals("SelectedImgOver")) {
            List<CSSInlineStyle> aCSSInlineStyleList = settings.getSelectedImgOverStyleList();
            CSSInlineStyle aCSSInlineStyle = aCSSInlineStyleList.get(0);
            return aCSSInlineStyle.getStyle();
          } else {
            return new String("");
          }
        }
      }));
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

      int selectedImgHeight = selectedImgInfo.getHeight();
      ImageResourceInfo selectedImgOverInfo = new ImageResourceInfo(selectedImgOverRR);
      int selectedImgOverWidth = selectedImgOverInfo.getWidth();
      int selectedImgOverHeight = selectedImgOverInfo.getHeight();

      CSSInlineStyle defaultImgStyle = new CSSInlineStyle();
      defaultImgStyle.add("background", "url(" + RequestCycle.get().urlFor(defaultImgRR) + ")");
      defaultImgStyle.add("width", defaultImgWidth + "px");
      defaultImgStyle.add("height", defaultImgHeight + "px");

      CSSInlineStyle defaultImgOverStyle = new CSSInlineStyle();
      defaultImgOverStyle.add("background", "url(" + RequestCycle.get().urlFor(defaultImgOverRR) + ")");
      defaultImgOverStyle.add("width", defaultImgOverWidth + "px");
      defaultImgOverStyle.add("height", defaultImgOverHeight + "px");

      CSSInlineStyle selectedImgStyle = new CSSInlineStyle();
      selectedImgStyle.add("background", "url(" + RequestCycle.get().urlFor(selectedImgRR) + ")");
      selectedImgStyle.add("width", selectedImgWidth + "px");
      selectedImgStyle.add("height", selectedImgHeight + "px");

      CSSInlineStyle selectedImgOverStyle = new CSSInlineStyle();
      selectedImgOverStyle.add("background", "url(" + RequestCycle.get().urlFor(selectedImgOverRR) + ")");
      selectedImgOverStyle.add("width", selectedImgOverWidth + "px");
      selectedImgOverStyle.add("height", selectedImgOverHeight + "px");

      defaultImgStyleList.add(defaultImgStyle);
      defaultImgOverStyleList.add(defaultImgOverStyle);
      selectedImgStyleList.add(selectedImgStyle);
      selectedImgOverStyleList.add(selectedImgOverStyle);
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

      ImageResourceInfo imgInfo = new ImageResourceInfo(imgRR);
      int imgWidth = imgInfo.getWidth();
      int imgHeight = imgInfo.getHeight();

      CSSInlineStyle imgStyle = new CSSInlineStyle();
      imgStyle.add("background", "url("
          + RequestCycle.get().urlFor(imgRR) + ")");
      imgStyle.add("width", imgWidth + "px");
      imgStyle.add("height", imgHeight + "px");

      imgStyle.add("top", img.getTop() + "px");
      imgStyle.add("left", img.getLeft() + "px");

      imgStyleList.add(imgStyle);

      this.width = imgWidth;
      this.height = imgHeight;
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.