Examples of CSSInlineStyle


Examples of org.wicketstuff.yui.helper.CSSInlineStyle

            @Override
            public Object getObject() {
              if (name.equals("dd")) {
                List<CSSInlineStyle> aInlineStyleList = settings
                    .getImgStyleList();
                CSSInlineStyle aInlineStyle = aInlineStyleList
                    .get(count);
                return aInlineStyle.getStyle();
              } else {
                return new String("");
              }
            }
          }));
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

            @Override
            public Object getObject() {
              List<CSSInlineStyle> aCSSInlineStyleList = settings
                  .getCSSInlineStyleList();
              CSSInlineStyle aCSSInlineStyle = aCSSInlineStyleList
                  .get(imageId);
              return aCSSInlineStyle.getStyle();
            }
          }));
    }
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

    int thumbHeight = thumbInfo.getHeight();
    int bgLength = settings.getLength();

    String height = Integer.toString(bgLength - thumbHeight);

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

    return background.getStyle();
  }
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("height", thumbInfo.getHeight() + "px");
    thumb.add("top", 0 - thumbInfo.getHeight() + "px");
    return thumb.getStyle();
  }
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

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

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

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

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

        ImageResourceInfo backgroundInfo = new ImageResourceInfo(
            aResourceReference);
        int width = backgroundInfo.getWidth();
        int height = backgroundInfo.getHeight();

        CSSInlineStyle aCSSInlineStyle = new CSSInlineStyle();

        aCSSInlineStyle.add("background", "url("
            + RequestCycle.get().urlFor(aResourceReference) + ")");
        aCSSInlineStyle.add("width", width + "px");
        aCSSInlineStyle.add("height", height + "px");

        Map propertyMap = yuiAttribute.getPropertyMap();
        Set keySet = propertyMap.keySet();
        Iterator iter = keySet.iterator();
        while (iter.hasNext()) {
          String aKey = (String) iter.next();
          YuiProperty aYuiProperty = (YuiProperty) propertyMap
              .get(aKey);
          aCSSInlineStyle.add("border", "solid "
              + removeQuote(aYuiProperty.getFrom()));
        }
        CSSInlineStyleList.add(aCSSInlineStyle);
      } else {
        YuiTextBox aTextBox = (YuiTextBox) list.get(i);

        CSSInlineStyle aCSSInlineStyle = new CSSInlineStyle();

        aCSSInlineStyle.add("background", aTextBox.getBackground());
        aCSSInlineStyle.add("width", aTextBox.getWidth() + "px");
        aCSSInlineStyle.add("height", aTextBox.getHeight() + "px");

        Map propertyMap = yuiAttribute.getPropertyMap();
        Set keySet = propertyMap.keySet();
        Iterator iter = keySet.iterator();
        while (iter.hasNext()) {
          String aKey = (String) iter.next();
          YuiProperty aYuiProperty = (YuiProperty) propertyMap
              .get(aKey);
          aCSSInlineStyle.add("border", "solid "
              + removeQuote(aYuiProperty.getFrom()));
        }
        CSSInlineStyleList.add(aCSSInlineStyle);
      }
    }
View Full Code Here

Examples of org.wicketstuff.yui.helper.CSSInlineStyle

            public Object getObject() {
              if (name.equals("DefaultImg")) {
                List aCSSInlineStyleList = settings
                    .getDefaultImgStyleList();
                CSSInlineStyle aCSSInlineStyle = (CSSInlineStyle) aCSSInlineStyleList
                    .get(0);
                return aCSSInlineStyle.getStyle();
              } else if (name.equals("DefaultImgOver")) {
                List aCSSInlineStyleList = settings
                    .getDefaultImgOverStyleList();
                CSSInlineStyle aCSSInlineStyle = (CSSInlineStyle) aCSSInlineStyleList
                    .get(0);
                return aCSSInlineStyle.getStyle();
              } else if (name.equals("SelectedImg")) {
                List aCSSInlineStyleList = settings
                    .getSelectedImgStyleList();
                CSSInlineStyle aCSSInlineStyle = (CSSInlineStyle) aCSSInlineStyleList
                    .get(0);
                return aCSSInlineStyle.getStyle();
              } else if (name.equals("SelectedImgOver")) {
                List aCSSInlineStyleList = settings
                    .getSelectedImgOverStyleList();
                CSSInlineStyle aCSSInlineStyle = (CSSInlineStyle) aCSSInlineStyleList
                    .get(0);
                return aCSSInlineStyle.getStyle();
              } else
                return new String("");
            }
          }));
    }
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");

      dragableImgStyleList.add(imgStyle);

      this.dragableImgWidth = imgWidth;
      this.dragableImgHeight = imgHeight;
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");

      dragableSlotStyleList.add(imgStyle);

      this.dragableSlotWidth = imgWidth;
      this.dragableSlotHeight = 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.