Class for constructing the HTML for a rounded corner border based on the RoundedCornerServlet server class.
| Instance Method Summary | |
colorStyleFor_(string side) ⇒ stringGet the CSS style for a given side with the current diplay parameters. Will return either a background or border color | |
createUri_(string corner) ⇒ ?goog.UriReturns the image Uri for a specific corner image. | |
getBackgroundColor() ⇒ stringReturns the background color | |
getBackgroundHtml() ⇒ stringReturns the HTML for a relatively positioned DIV that includes four absolutely positioned DIVs for the corner images and a DIV for the content. | |
getBorderHtml() ⇒ stringReturns the HTML of a 9-cell table (when all corners are needed) that uses transparent images in the corners, a solid color on the sides, and the content in the middle cell. | |
getBorderThickness() ⇒ ?goog.math.SizeReturns the border thickness. The height and width specifies the width and height of the corner images that form the arcs. The height dictates the thickness of the top and bottom borders and width dicates the thickness of the left and right borders. | |
getColor() ⇒ stringReturns the foreground color | |
getContent() ⇒ stringReturns the content of the borders | |
getCornerStyle_(string corner) ⇒ stringReturns the background image style string that uses AlphaImageLoader for IE6 and background-images for other browsers | |
getCornersToShow() ⇒ numberReturns which corners to show | |
getCtx_() ⇒ ?ObjectReturns the context object used by the template mechanism | |
getExplicitHeight() ⇒ ?stringReturns the explicit height of the element creating the border or background. For the #getBorderHtml case, this usually isn't necessary to set as it will size to content. For the #getBackgroundHtml case, this may be necessary to set in certain cases in IE because of an off-by-1 bug in IE's bottom positioning code. | |
getImageFormat() ⇒ stringReturns the image format. Currently, only png and gif are supported. | |
getInnerColor() ⇒ stringReturns the inner color | |
getLineWidth() ⇒ numberReturns the width of the border line. If 0, border is width/height of corners | |
getPadding() ⇒ stringReturns the padding of the rounded corner border. | |
performTemplateSubstitutions_(string htmlTemplate) ⇒ stringPerforms the substitutions in the templates to values determined at runtime. | |
removeHash_(string s) ⇒ stringHelper function to remove hash from the color string | |
setBackgroundColor(string bgColor)Sets the background color. | |
setBorderThickness(?goog.math.Size size)Sets the border thickness. The height and width specifies the width and height of the corner images that form the arcs. The height dictates the thickness of the top and bottom borders and width dicates the thickness of the left and right borders. | |
setColor(string color)Sets the foreground color. | |
setContent(string html)Sets the content of the borders | |
setCornersToShow(number cornersToShow)Sets which corners to show | |
setExplicitHeight(string height)Sets the explicit height of the element creating the border or background. For the #getBorderHtml case, this usually isn't necessary to set as it will size to content. For the #getBackgroundHtml case, this may be necessary to set in certain cases in IE because of an off-by-1 bug in IE's bottom positioning code. | |
setImageFormat(string imageFormat)Sets the image format. Currently, only png and gif are supported. | |
setInnerColor(string inColor)Sets the inner color. | |
setLineWidth(number lineWidth)Sets the width of the border line. If 0, border is width/height of corners | |
setPadding(string padding)Sets the padding of the rounded corner border. | |
| Static Method Summary | |
roundElement(?Element element, string servletUri, ?goog.math.Size= opt_borderThickness, number= opt_corners)A convenience method to round the corners of a given element. To achieve the rounding, the rounded corners div replaces the element in its parent. The element is added as the content of the rounded corners div. | |