public interface

DesignTimeUtils

com.google.gwt.uibinder.rebind.DesignTimeUtils
Known Indirect Subclasses

Class Overview

Utilities used for implementing design time support of UiBinder.

Summary

Public Methods
abstract void addDeclarations(IndentedWriter w)
Adds declarations for design time artifacts.
abstract String getImplName(String implName)
Returns the name of "Impl", unique each time if it is design time.
abstract String getPath(Element element)
Returns the path of given Element.
abstract String getProvidedFactory(String typeName, String methodName, String args)
Returns the source to access "@UiFactory" method.
abstract String getProvidedField(String typeName, String fieldName)
Returns the source to access "@UiField(provided)" instance of some object.
abstract 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.
abstract void handleUIObject(Statements writer, XMLElement elem, String fieldName)
Notifies tool about UIObject creation.
abstract boolean isDesignTime()
Returns true if this template is under design now, so some of UiBinder features should be disables.
abstract void putAttribute(XMLElement elem, String name, String value)
Remembers value of attribute, for given XMLElement.
abstract void putAttribute(XMLElement elem, String name, String[] values)
Remembers value of attribute, for given XMLElement.
abstract void rememberPathForElements(Document doc)
Fills {@value #elementPaths} with paths for given and child Element s.
abstract void writeAttributes(Statements writer)
Writes remembered values of attributes.

Public Methods

public abstract void addDeclarations (IndentedWriter w)

Adds declarations for design time artifacts.

public abstract String getImplName (String implName)

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

public abstract String getPath (Element element)

Returns the path of given Element.

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

Returns the source to access "@UiFactory" method.

public abstract String getProvidedField (String typeName, String fieldName)

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

public abstract 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 abstract void handleUIObject (Statements writer, XMLElement elem, String fieldName)

Notifies tool about UIObject creation.

public abstract 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 abstract void putAttribute (XMLElement elem, String name, String value)

Remembers value of attribute, for given XMLElement.

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

Remembers value of attribute, for given XMLElement.

public abstract void rememberPathForElements (Document doc)

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

public abstract void writeAttributes (Statements writer)

Writes remembered values of attributes.