|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.uibinder.rebind.messages.MessagesWriter
public class MessagesWriter
TemplateWriter for messages.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE
|
| Constructor Summary | |
|---|---|
MessagesWriter(java.lang.String nameSpaceUri,
MortalLogger mortalLogger,
java.lang.String generatedFrom,
java.lang.String packageName,
java.lang.String uiBinderImplClassName)
|
|
| Method Summary | |
|---|---|
void |
consumeAndStoreMessageAttributesFor(XMLElement elem)
Call consumeAttributeMessages(com.google.gwt.uibinder.rebind.XMLElement), but instead of returning the
results store them for retrieval by a later call to
retrieveMessageAttributesFor(com.google.gwt.uibinder.rebind.XMLElement). |
java.util.Collection<AttributeMessage> |
consumeAttributeMessages(XMLElement elem)
Examine the children of the given element. |
java.lang.String |
consumeMessageAttribute(java.lang.String attName,
XMLElement elem)
Consume an m:blah attribute on a non-message element, e.g. |
java.lang.String |
declareMessage(MessageWriter newMessage)
Declares a message created by a previous call to newMessage(com.google.gwt.uibinder.rebind.XMLElement), and
returns its invocation expression to be stitched into an innerHTML block. |
void |
findMessagesConfig(XMLElement elem)
Expected to be called with the root element, to allow configuration from various messages related attributes. |
java.lang.String |
getDeclaration()
|
java.lang.String |
getMessagesClassName()
|
java.lang.String |
getMessagesPrefix()
|
boolean |
hasMessageAttribute(java.lang.String attName,
XMLElement elem)
Confirm existence of an m:blah attribute on a non-message element, e.g. |
boolean |
hasMessages()
|
boolean |
isMessage(XMLElement elem)
|
MessageWriter |
newMessage(XMLElement elem)
Creates a new MessageWriter instance with description, key and meaning values consumed from the given XMLElement. |
java.util.Collection<AttributeMessage> |
retrieveMessageAttributesFor(XMLElement elem)
|
void |
write(java.io.PrintWriter printWriter)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTRIBUTE
| Constructor Detail |
|---|
public MessagesWriter(java.lang.String nameSpaceUri,
MortalLogger mortalLogger,
java.lang.String generatedFrom,
java.lang.String packageName,
java.lang.String uiBinderImplClassName)
| Method Detail |
|---|
public void consumeAndStoreMessageAttributesFor(XMLElement elem)
throws UnableToCompleteException
consumeAttributeMessages(com.google.gwt.uibinder.rebind.XMLElement), but instead of returning the
results store them for retrieval by a later call to
retrieveMessageAttributesFor(com.google.gwt.uibinder.rebind.XMLElement).
UnableToCompleteException - on error
public java.util.Collection<AttributeMessage> consumeAttributeMessages(XMLElement elem)
throws UnableToCompleteException
AttributeMessage instances. E.g.:
<img src="blueSky.jpg" alt="A blue sky"> <ui:attribute name="alt" description="blue sky image alt text"/> </img>
UnableToCompleteException
public java.lang.String consumeMessageAttribute(java.lang.String attName,
XMLElement elem)
<span m:ph="fnord"/>
public java.lang.String declareMessage(MessageWriter newMessage)
newMessage(com.google.gwt.uibinder.rebind.XMLElement), and
returns its invocation expression to be stitched into an innerHTML block.
public void findMessagesConfig(XMLElement elem)
public java.lang.String getDeclaration()
public java.lang.String getMessagesClassName()
public java.lang.String getMessagesPrefix()
public boolean hasMessageAttribute(java.lang.String attName,
XMLElement elem)
<span ui:ph="fnord"/>
public boolean hasMessages()
public boolean isMessage(XMLElement elem)
public MessageWriter newMessage(XMLElement elem)
declareMessage(MessageWriter)
public java.util.Collection<AttributeMessage> retrieveMessageAttributesFor(XMLElement elem)
consumeAndStoreMessageAttributesFor(com.google.gwt.uibinder.rebind.XMLElement)public void write(java.io.PrintWriter printWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||