public class

DesignTimeUtilsImpl

extends Object
implements DesignTimeUtils
java.lang.Object
   ↳ com.google.gwt.uibinder.rebind.DesignTimeUtilsImpl

Class Overview

Design time implementation of DesignTimeUtils.

Summary

Public Constructors
DesignTimeUtilsImpl()
Public Methods
void addDeclarations(IndentedWriter w)
Adds declarations for design time artifacts.
String getImplName(String implName)
Returns the name of "Impl", unique each time if it is design time.
String getPath(Element element)
Returns the path of given Element.
String getProvidedFactory(String typeName, String methodName, String args)
Returns the source to access "@UiFactory" method.
String getProvidedField(String typeName, String fieldName)
Returns the source to access "@UiField(provided)" instance of some object.
String getTemplateContent(String path)
Returns the design time content of *.ui.xml template to parse, or null if not design time, or this template is not under design.
void handleUIObject(Statements writer, XMLElement elem, String fieldName)
Notifies tool about UIObject creation.
boolean isDesignTime()
Returns true if this template is under design now, so some of UiBinder features should be disables.
static boolean isDesignTime(String fqInterfaceName)
Returns true if given "Binder" is under design now.
void putAttribute(XMLElement elem, String name, String value)
Remembers value of attribute, for given XMLElement.
void putAttribute(XMLElement elem, String name, String[] values)
Remembers value of attribute, for given XMLElement.
void rememberPathForElements(Document doc)
Fills {@value #elementPaths} with paths for given and child Element s.
void writeAttributes(Statements writer)
Writes remembered values of attributes.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.uibinder.rebind.DesignTimeUtils

Public Constructors

public DesignTimeUtilsImpl ()

Public Methods

public void addDeclarations (IndentedWriter w)

Adds declarations for design time artifacts.

public String getImplName (String implName)

Returns the name of "Impl", unique each time if it is design time.

public String getPath (Element element)

Returns the path of given Element.

public String getProvidedFactory (String typeName, String methodName, String args)

Returns the source to access "@UiFactory" method.

public String getProvidedField (String typeName, String fieldName)

Returns the source to access "@UiField(provided)" instance of some object.

public String getTemplateContent (String path)

Returns the design time content of *.ui.xml template to parse, or null if not design time, or this template is not under design.

public void handleUIObject (Statements writer, XMLElement elem, String fieldName)

Notifies tool about UIObject creation.

public boolean isDesignTime ()

Returns true if this template is under design now, so some of UiBinder features should be disables. This includes assigning values into "@UiField", processing "@UiHandler".

public static boolean isDesignTime (String fqInterfaceName)

Returns true if given "Binder" is under design now. We should not use "design time" globally, because while one widget in under design, it may use other widgets and we want to execute them as is, without design time tweaks.

public void putAttribute (XMLElement elem, String name, String value)

Remembers value of attribute, for given XMLElement.

public void putAttribute (XMLElement elem, String name, String[] values)

Remembers value of attribute, for given XMLElement.

public void rememberPathForElements (Document doc)

Fills {@value #elementPaths} with paths for given and child Element s.

public void writeAttributes (Statements writer)

Writes remembered values of attributes.