|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.ui.shared.TemplateUtil
public final class TemplateUtil
Errai UI Runtime Utility for handling Template
composition.
Method Summary | ||
---|---|---|
static void |
compositeComponentReplace(String componentType,
String templateFile,
com.google.gwt.user.client.ui.Widget field,
Map<String,com.google.gwt.dom.client.Element> dataFieldElements,
String fieldName)
Replace the Element with the data-field of the given
String with the root Element of the given UIObject |
|
static Map<String,com.google.gwt.dom.client.Element> |
getDataFieldElements(com.google.gwt.dom.client.Element templateRoot)
|
|
static String |
getI18nPrefix(String templateFile)
Generate an i18n key prefix from the given template filename. |
|
static com.google.gwt.dom.client.Element |
getRootTemplateElement(String templateContents,
String rootField)
|
|
static TranslationService |
getTranslationService()
|
|
static void |
initWidget(com.google.gwt.user.client.ui.Composite component,
com.google.gwt.dom.client.Element wrapped,
Collection<com.google.gwt.user.client.ui.Widget> dataFields)
|
|
static void |
setupNativeEventListener(com.google.gwt.user.client.ui.Composite component,
com.google.gwt.dom.client.Element element,
com.google.gwt.user.client.EventListener listener,
int eventsToSink)
|
|
static
|
setupPlainElementEventHandler(com.google.gwt.user.client.ui.Composite component,
com.google.gwt.dom.client.Element element,
T handler,
com.google.gwt.event.dom.client.DomEvent.Type<T> type)
|
|
static
|
setupWrappedElementEventHandler(com.google.gwt.user.client.ui.Composite component,
com.google.gwt.user.client.ui.Widget widget,
T handler,
com.google.gwt.event.dom.client.DomEvent.Type<T> type)
|
|
static void |
translateTemplate(String templateFile,
com.google.gwt.dom.client.Element templateRoot)
Called to perform i18n translation on the given template. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TranslationService getTranslationService()
public static void compositeComponentReplace(String componentType, String templateFile, com.google.gwt.user.client.ui.Widget field, Map<String,com.google.gwt.dom.client.Element> dataFieldElements, String fieldName)
Element
with the data-field of the given
String
with the root Element
of the given UIObject
public static void initWidget(com.google.gwt.user.client.ui.Composite component, com.google.gwt.dom.client.Element wrapped, Collection<com.google.gwt.user.client.ui.Widget> dataFields)
public static com.google.gwt.dom.client.Element getRootTemplateElement(String templateContents, String rootField)
public static void translateTemplate(String templateFile, com.google.gwt.dom.client.Element templateRoot)
templateRoot
- public static String getI18nPrefix(String templateFile)
templateFile
- public static Map<String,com.google.gwt.dom.client.Element> getDataFieldElements(com.google.gwt.dom.client.Element templateRoot)
public static void setupNativeEventListener(com.google.gwt.user.client.ui.Composite component, com.google.gwt.dom.client.Element element, com.google.gwt.user.client.EventListener listener, int eventsToSink)
public static <T extends com.google.gwt.event.shared.EventHandler> com.google.gwt.user.client.ui.Widget setupPlainElementEventHandler(com.google.gwt.user.client.ui.Composite component, com.google.gwt.dom.client.Element element, T handler, com.google.gwt.event.dom.client.DomEvent.Type<T> type)
public static <T extends com.google.gwt.event.shared.EventHandler> void setupWrappedElementEventHandler(com.google.gwt.user.client.ui.Composite component, com.google.gwt.user.client.ui.Widget widget, T handler, com.google.gwt.event.dom.client.DomEvent.Type<T> type)
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |