public class

DesignTimeUtilsStub

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

Class Overview

Empty implementation of DesignTimeUtils.

Summary

Fields
public static final DesignTimeUtils EMPTY
Public Constructors
DesignTimeUtilsStub()
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.
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

Fields

public static final DesignTimeUtils EMPTY

Public Constructors

public DesignTimeUtilsStub ()

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