|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.form.UIForm
org.exoplatform.forum.common.webui.BaseUIForm
public class BaseUIForm
Base UIForm class that brings several convenience methods for UI operations ( i18n, messages, popups,...)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer |
|---|
org.exoplatform.webui.core.UIContainer.SelectTabActionListener |
| Field Summary | |
|---|---|
protected org.exoplatform.services.log.Log |
log
|
| Fields inherited from class org.exoplatform.webui.form.UIForm |
|---|
ACTION, SUBCOMPONENT_ID |
| Fields inherited from class org.exoplatform.webui.core.UIComponent |
|---|
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent |
| Constructor Summary | |
|---|---|
BaseUIForm()
|
|
| Method Summary | ||
|---|---|---|
protected void |
cancelChildPopupAction()
|
|
String |
getLabel(String labelID)
Get a label for this form. |
|
String |
i18n(String key)
Get a value from the app resource bundle. |
|
protected void |
info(String messageKey)
Sends a info message to ui and ignore ajax update on Portlets |
|
protected void |
info(String messageKey,
boolean ignoreAJAXUpdateOnPortlets)
Sends an info message to ui |
|
protected void |
info(String messageKey,
String arg)
|
|
protected void |
info(String messageKey,
String[] args)
|
|
protected void |
info(String messageKey,
String[] args,
boolean ignoreAJAXUpdateOnPortlets)
Sends a ninfo message to ui |
|
protected
|
openPopup(org.exoplatform.webui.core.UIContainer parent,
Class<T> componentType,
int width,
int height)
|
|
protected
|
openPopup(org.exoplatform.webui.core.UIContainer parent,
Class<T> componentType,
String popupId,
int width,
int height)
Opens a popup and creates a component into it. |
|
protected void |
throwWarning(String message)
|
|
protected void |
throwWarning(String message,
String... args)
Throws a MessageException in warning level |
|
protected void |
warning(String messageKey)
Sends a warning message to ui and ignore ajax update on Portlets |
|
protected void |
warning(String messageKey,
boolean ignoreAJAXUpdateOnPortlets)
Sends a warning message to ui |
|
protected void |
warning(String messageKey,
String arg)
|
|
protected void |
warning(String messageKey,
String[] args)
|
|
protected void |
warning(String messageKey,
String[] args,
boolean ignoreAJAXUpdateOnPortlets)
Sends a parameterized warning to ui |
|
| Methods inherited from class org.exoplatform.webui.form.UIForm |
|---|
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url |
| Methods inherited from class org.exoplatform.webui.core.UIContainer |
|---|
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes |
| Methods inherited from class org.exoplatform.webui.core.UIComponent |
|---|
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.exoplatform.services.log.Log log
| Constructor Detail |
|---|
public BaseUIForm()
| Method Detail |
|---|
public String i18n(String key)
public String getLabel(String labelID)
getLabel in class org.exoplatform.webui.form.UIFormlabelID -
protected void info(String messageKey)
messageKey - resource bundle key for the message
protected void info(String messageKey,
String arg)
protected void info(String messageKey,
String[] args)
protected void info(String messageKey,
boolean ignoreAJAXUpdateOnPortlets)
messageKey - resource bundle key for the messageignoreAJAXUpdateOnPortlets - as there is need to update only UI components
of portal (ie: the components outside portlet windows) are updated by AJAX.
protected void info(String messageKey,
String[] args,
boolean ignoreAJAXUpdateOnPortlets)
messageKey - resource bundle key for the messageargs - arguments of the messageignoreAJAXUpdateOnPortlets - as there is need to update only UI components
of portal (ie: the components outside portlet windows) are updated by AJAX.protected void warning(String messageKey)
messageKey - resource bundle key for the message
protected void warning(String messageKey,
String arg)
protected void warning(String messageKey,
String[] args)
protected void warning(String messageKey,
boolean ignoreAJAXUpdateOnPortlets)
messageKey - resource bundle key for the messageignoreAJAXUpdateOnPortlets - as there is need to update only UI components
of portal (ie: the components outside portlet windows) are updated by AJAX.
protected void warning(String messageKey,
String[] args,
boolean ignoreAJAXUpdateOnPortlets)
messageKey - args - arguments of the messageignoreAJAXUpdateOnPortlets - as there is need to update only UI components
of portal (ie: the components outside portlet windows) are updated by AJAX.
protected void throwWarning(String message,
String... args)
throws org.exoplatform.webui.exception.MessageException
message - args -
org.exoplatform.webui.exception.MessageException
protected void throwWarning(String message)
throws org.exoplatform.webui.exception.MessageException
org.exoplatform.webui.exception.MessageExceptionthrowWarning(String, String...)
protected <T extends org.exoplatform.webui.core.UIComponent> T openPopup(org.exoplatform.webui.core.UIContainer parent,
Class<T> componentType,
String popupId,
int width,
int height)
throws Exception
T - type of the component to display in the popupparent - parent above whch the popup should be opencomponentType - type of the component to open in the popuppopupId - id for the popupwidth - popup widthheight - popup height
Exception
protected <T extends org.exoplatform.webui.core.UIComponent> T openPopup(org.exoplatform.webui.core.UIContainer parent,
Class<T> componentType,
int width,
int height)
throws Exception
ExceptionopenPopup(UIContainer, Class, String, int, int)
protected void cancelChildPopupAction()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||