Package org.exoplatform.webui.core
Class UIComponent
java.lang.Object
org.exoplatform.webui.core.UIComponent
- Direct Known Subclasses:
UIAbstractManagerComponent,UIBreadcumbs,UIComponentDecorator,UIContainer,UIDropDownControl,UIGrid,UIItemSelector,UIPageIterator,UIRepeater,UIRightClickPopupMenu,UIToolbar,UITree
Created by The eXo Platform SAS May 7, 2006
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected Componentstatic final Stringstatic final Stringprotected UIComponentstatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidbroadcast(Event<T> event, Event.Phase phase) org.exoplatform.portal.config.model.ModelObjectcreateEvent(String name, Event.Phase phase, WebuiRequestContext context) <T extends UIComponent>
TcreateUIComponent(Class<T> type, String configId, String componentId) <T extends UIComponent>
TcreateUIComponent(Class<T> type, String configId, String componentId, UIComponent parent) <T extends UIComponent>
TcreateUIComponent(WebuiRequestContext context, Class<T> type, String configId, String componentId) Render an event ajax URL for a given bean.<T extends UIComponent>
TfindComponentById(String lookupId) <T> voidfindComponentOfType(List<T> list, Class<T> type) <T extends UIComponent>
TfindFirstComponentOfType(Class<T> type) <T extends UIComponent>
TgetAncestorOfType(Class<T> classType) <T> TgetApplicationComponent(Class<T> type) getId()getName()<T extends UIComponent>
Torg.exoplatform.resolver.ResourceResolvergetTemplateResourceResolver(WebuiRequestContext context, String template) booleanprotected StringloadConfirmMesssage(Event event, WebuiRequestContext context, String beanId) voidprocessAction(WebuiRequestContext context) voidprocessDecode(WebuiRequestContext context) voidprocessRender(WebuiRequestContext context) renderEventURL(boolean ajax, String name, String beanId, org.exoplatform.web.application.Parameter[] params) Render an event URL of a given bean.voidsetComponentConfig(Class<?> clazz, String id) voidsetComponentConfig(String componentId, Component config) voidsetParent(UIComponent uicomponent) <T extends UIComponent>
TsetRendered(boolean b) <T extends UIComponent>
voidsetRenderSibling(Class<T> type) Render an event URL for a given bean.
-
Field Details
-
USE_WEBUI_RESOURCES
public static final boolean USE_WEBUI_RESOURCES -
OBJECTID
- See Also:
-
UICOMPONENT
- See Also:
-
AJAX_ASYNC
- See Also:
-
uiparent
-
config
-
-
Constructor Details
-
UIComponent
public UIComponent()
-
-
Method Details
-
getId
-
setId
-
getName
-
getParent
-
setParent
-
isRendered
public boolean isRendered() -
setRendered
-
processDecode
- Throws:
Exception
-
processAction
- Throws:
Exception
-
processRender
- Throws:
Exception
-
getComponentConfig
-
setComponentConfig
-
setComponentConfig
-
getTemplate
-
getTemplateResourceResolver
public org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(WebuiRequestContext context, String template) -
getAncestorOfType
-
loadConfirmMesssage
-
event
- Throws:
Exception
-
event
- Throws:
Exception
-
event
public String event(String name, String beanId, org.exoplatform.web.application.Parameter[] params) throws Exception Render an event ajax URL for a given bean.- Parameters:
name- the event namebeanId- the optional bean idparams- the optional event parameters- Returns:
- the rendered URL
- Throws:
Exception- any exception
-
url
- Throws:
Exception
-
url
- Throws:
Exception
-
url
public String url(String name, String beanId, org.exoplatform.web.application.Parameter[] params) throws Exception Render an event URL for a given bean.- Parameters:
name- the event namebeanId- the optional bean idparams- the optional event parameters- Returns:
- the rendered URL
- Throws:
Exception- any exception
-
renderEventURL
public String renderEventURL(boolean ajax, String name, String beanId, org.exoplatform.web.application.Parameter[] params) throws Exception Render an event URL of a given bean.- Parameters:
ajax- the url type, true for ajax, false otherwisename- the event namebeanId- the optional bean idparams- the optional event parameters- Returns:
- the rendered URL
- Throws:
Exception- any exception
-
doAsync
public String doAsync(String name, String beanId, org.exoplatform.web.application.Parameter[] params) throws Exception - Throws:
Exception
-
broadcast
- Throws:
Exception
-
createUIComponent
public <T extends UIComponent> T createUIComponent(Class<T> type, String configId, String componentId, UIComponent parent) throws Exception - Throws:
Exception
-
createUIComponent
public <T extends UIComponent> T createUIComponent(Class<T> type, String configId, String componentId) throws Exception - Throws:
Exception
-
createUIComponent
public <T extends UIComponent> T createUIComponent(WebuiRequestContext context, Class<T> type, String configId, String componentId) throws Exception - Throws:
Exception
-
findComponentById
-
findFirstComponentOfType
-
findComponentOfType
-
setRenderSibling
-
getUIComponentName
-
getApplicationComponent
-
buildModelObject
public org.exoplatform.portal.config.model.ModelObject buildModelObject() -
createEvent
public Event<UIComponent> createEvent(String name, Event.Phase phase, WebuiRequestContext context) throws Exception - Throws:
Exception
-