Examples of toSafeStyles()


Examples of com.google.gwt.safecss.shared.SafeStylesBuilder.toSafeStyles()

      inside.appendHtmlConstant("</tr>");
    }
    inside.appendHtmlConstant("</table>");
    inside.appendHtmlConstant("</div>");

    frame.render(sb, new Frame.FrameOptions(0, CommonStyles.get().noFocusOutline(), stylesBuilder.toSafeStyles()),
        inside.toSafeHtml());

    sb.appendHtmlConstant("</div>");

  }
View Full Code Here

Examples of com.google.gwt.safecss.shared.SafeStylesBuilder.toSafeStyles()

      sb.append(SafeStylesUtils.fromTrustedString("height:" + adjustedHeight + "px;"));
    }
    if (width > 0) {
      sb.append(SafeStylesUtils.fromTrustedString("width:" + width + "px;"));
    }
    builder.append(templates.textWithStyles(style.text(), sb.toSafeStyles(), SafeHtmlUtils.fromTrustedString(text)));
  }

}
View Full Code Here

Examples of com.google.gwt.safecss.shared.SafeStylesBuilder.toSafeStyles()

    HorizontalAlignmentConstant align = cm.getColumnAlignment(colIndex);
    if (align != null) {
      builder.append(SafeStylesUtils.fromTrustedString("text-align:" + align.getTextAlignString() + ";"));
    }
    return builder.toSafeStyles();
  }

  /**
   * Returns the width of the given column
   *
 
View Full Code Here

Examples of com.google.gwt.safecss.shared.SafeStylesBuilder.toSafeStyles()

    for (int i = 0; i < columnWidths.length; i++) {
      int w = cm.isHidden(i) ? 0 : columnWidths[i];
      SafeStylesBuilder builder = new SafeStylesBuilder();
      builder.appendTrustedString("height: 0px;");
      builder.appendTrustedString("width:" + w + "px;");
      heads.append(tpls.th("", builder.toSafeStyles()));
    }
    return tpls.tr(appearance.styles().headerRow(), heads.toSafeHtml());
  }

  /**
 
View Full Code Here

Examples of com.google.gwt.safecss.shared.SafeStylesBuilder.toSafeStyles()

      }

      SafeStylesBuilder builder = new SafeStylesBuilder();
      builder.appendTrustedString("height: 0px;");
      builder.appendTrustedString("width:" + columnWidths[i] + "px;");
      heads.append(tpls.th("", builder.toSafeStyles()));
    }

    return tpls.tr("", heads.toSafeHtml());
  }
View Full Code Here

Examples of com.google.gwt.safecss.shared.SafeStylesBuilder.toSafeStyles()

    String fieldLabelWidth = align == LabelAlign.TOP ? "auto" : (labelWidth + "px");

    SafeStylesBuilder fieldLabelStylesBuilder = new SafeStylesBuilder().appendTrustedString("width:" + fieldLabelWidth + ";");
    fieldLabelStylesBuilder.appendTrustedString("white-space: " + (options.getWordWrap() ? "normal" : "nowrap") + ";");
   
    SafeStyles fieldLabelStyles = fieldLabelStylesBuilder.toSafeStyles();

    String fieldElementPadding = align == LabelAlign.TOP ? "0" : (labelWidth + pad + "px");
    SafeStyles fieldElementStyles = SafeStylesUtils.fromTrustedString("padding-left:" + fieldElementPadding + ";");

    sb.append(template.render(id, style, fieldLabelStyles, fieldElementStyles));
View Full Code Here

Examples of com.google.gwt.safecss.shared.SafeStylesBuilder.toSafeStyles()

        SafeStylesBuilder cellStyles = new SafeStylesBuilder();
        cellStyles.append(columnData.getStyles());

        SafeHtml tdContent = null;
        if (enableRowBody && i == 0) {
          tdContent = tpls.tdRowSpan(i, cellClasses, cellStyles.toSafeStyles(), rowBodyRowSpan, rv);
        } else {
          tdContent = tpls.td(i, cellClasses, cellStyles.toSafeStyles(), cellInnerClass,
              columnConfig.getColumnTextStyle(), rv);
        }
        trBuilder.append(tdContent);
View Full Code Here

Examples of com.google.gwt.safecss.shared.SafeStylesBuilder.toSafeStyles()

        SafeHtml tdContent = null;
        if (enableRowBody && i == 0) {
          tdContent = tpls.tdRowSpan(i, cellClasses, cellStyles.toSafeStyles(), rowBodyRowSpan, rv);
        } else {
          tdContent = tpls.td(i, cellClasses, cellStyles.toSafeStyles(), cellInnerClass,
              columnConfig.getColumnTextStyle(), rv);
        }
        trBuilder.append(tdContent);
      }
View Full Code Here

Examples of com.google.gwt.safecss.shared.SafeStylesBuilder.toSafeStyles()

    HorizontalAlignmentConstant align = cm.getColumnAlignment(colIndex);
    if (align != null) {
      builder.append(SafeStylesUtils.fromTrustedString("text-align:" + align.getTextAlignString() + ";"));
    }
    return builder.toSafeStyles();
  }

  /**
   * Returns the width of the given column
   *
 
View Full Code Here

Examples of com.google.gwt.safecss.shared.SafeStylesBuilder.toSafeStyles()

    for (int i = 0; i < columnWidths.length; i++) {
      int w = cm.isHidden(i) ? 0 : columnWidths[i];
      SafeStylesBuilder builder = new SafeStylesBuilder();
      builder.appendTrustedString("height: 0px;");
      builder.appendTrustedString("width:" + w + "px;");
      heads.append(tpls.th("", builder.toSafeStyles()));
    }
    return tpls.tr(appearance.styles().headerRow(), heads.toSafeHtml());
  }

  /**
 
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.