List of usage examples for com.google.gwt.user.client.ui UIObject getElement
public Element getElement()
From source file:com.qualogy.qafe.gwt.client.ui.renderer.RendererHelper.java
License:Apache License
public static void addId(ComponentGVO vo, UIObject ui, UIObject mainUI, String uuid, String parent, String context, boolean addToStore) { if (vo != null && ui != null) { if (vo.getId() != null) { String id = generateId(vo.getId(), parent, context); DOM.setElementAttribute(ui.getElement(), "id", id); if (addToStore) { UIObject uiToStore = mainUI != null ? mainUI : ui; storeComponent(vo, uuid, uiToStore, parent, context); }/*from ww w. j av a 2s .c o m*/ } addName(vo, ui, mainUI, uuid, parent, context); addGroup(vo, ui, mainUI, uuid, parent, context); DOM.setElementAttribute(ui.getElement(), "pc", parent); DOM.setElementAttribute(ui.getElement(), "app-context", context); } }
From source file:com.qualogy.qafe.gwt.client.ui.renderer.RendererHelper.java
License:Apache License
public static void addName(ComponentGVO vo, UIObject ui, UIObject mainUI, String uuid, String parent, String context) {/*from w w w .j a v a 2s .com*/ if (vo != null && ui != null) { if (vo.getFieldName() != null) { DOM.setElementAttribute(ui.getElement(), "fn", vo.getFieldName()); UIObject uiToStore = mainUI != null ? mainUI : ui; storeNamedComponent(vo, uiToStore, uuid, parent, context); } } }
From source file:com.qualogy.qafe.gwt.client.ui.renderer.RendererHelper.java
License:Apache License
public static void addGroup(ComponentGVO vo, UIObject ui, UIObject mainUI, String uuid, String parent, String context) {/* w w w . j a va2s . c o m*/ if (vo != null && ui != null) { if (vo.getGroup() != null && vo.getGroup().length() > 0) { DOM.setElementAttribute(ui.getElement(), "grp", vo.getGroup()); UIObject uiToStore = mainUI != null ? mainUI : ui; storeGroupedComponent(vo, uiToStore, uuid, parent, context); } } }
From source file:com.qualogy.qafe.gwt.client.ui.renderer.RendererHelper.java
License:Apache License
public static String getUUId(UIObject ui) { return DOM.getElementProperty(ui.getElement(), "uuid"); }
From source file:com.qualogy.qafe.gwt.client.ui.renderer.RendererHelper.java
License:Apache License
public static String getComponentContext(UIObject ui) { return DOM.getElementAttribute(ui.getElement(), "app-context"); }
From source file:com.qualogy.qafe.gwt.client.ui.renderer.RendererHelper.java
License:Apache License
public static void setComponentContext(UIObject ui, String componentContext) { DOM.setElementAttribute(ui.getElement(), "app-context", componentContext); }
From source file:com.qualogy.qafe.gwt.client.ui.renderer.RendererHelper.java
License:Apache License
public static String getParentComponent(UIObject ui) { return DOM.getElementAttribute(ui.getElement(), "pc"); }
From source file:com.qualogy.qafe.gwt.client.ui.renderer.RendererHelper.java
License:Apache License
public static void setParentComponent(UIObject ui, String parent) { DOM.setElementAttribute(ui.getElement(), "pc", parent); }
From source file:com.qualogy.qafe.gwt.client.ui.renderer.RendererHelper.java
License:Apache License
public static String getNamedComponentName(UIObject ui) { return DOM.getElementAttribute(ui.getElement(), "fn"); }
From source file:com.qualogy.qafe.gwt.client.ui.renderer.RendererHelper.java
License:Apache License
public static void setNamedComponentName(UIObject ui, String componentName) { DOM.setElementAttribute(ui.getElement(), "fn", componentName); }