public class

LengthAttributeParser

extends Object
implements AttributeParser
java.lang.Object
   ↳ com.google.gwt.uibinder.attributeparsers.LengthAttributeParser

Class Overview

Parses a CSS length value (e.g., "2em", "50%"), returning a comma-separated (double, Unit) pair.

Summary

Public Methods
String parse(String lengthStr)
Parse the given attribute value.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.uibinder.attributeparsers.AttributeParser

Public Methods

public String parse (String lengthStr)

Parse the given attribute value.

Parameters
lengthStr the attribute value to be parsed
Returns
  • a valid Java expression
Throws
UnableToCompleteException