public abstract class BaseEventListener<T extends BaseUIForm>
extends org.exoplatform.webui.event.EventListener<T>
onEvent(Event, BaseUIForm, String)| Modifier and Type | Field and Description |
|---|---|
protected T |
component
underlying BaseUIForm
|
| Constructor and Description |
|---|
BaseEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.exoplatform.webui.event.Event<T> event) |
<C extends org.exoplatform.webui.core.UIComponent> |
getChildById(String id) |
String |
getLabel(String labelID) |
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
|
abstract void |
onEvent(org.exoplatform.webui.event.Event<T> event,
T component,
String objectId) |
protected <C extends org.exoplatform.webui.core.UIComponent> |
openPopup(org.exoplatform.webui.core.UIContainer parent,
Class<C> componentType,
int width,
int height) |
protected <C extends org.exoplatform.webui.core.UIComponent> |
openPopup(org.exoplatform.webui.core.UIContainer parent,
Class<C> componentType,
String popupId,
int width,
int height)
Opens a popup and creates a component into it.
|
void |
refresh() |
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
|
protected void |
warning(String messageKey,
String arg,
boolean ignoreAJAXUpdateOnPortlets)
Sends a parameterized warning to ui
|
protected T extends BaseUIForm component
public void execute(org.exoplatform.webui.event.Event<T> event) throws Exception
execute in class org.exoplatform.webui.event.EventListener<T extends BaseUIForm>Exceptionpublic abstract void onEvent(org.exoplatform.webui.event.Event<T> event, T component, String objectId) throws Exception
Exceptionpublic void refresh()
protected void info(String messageKey)
messageKey - resource bundle key for the messageprotected 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 messageprotected 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 warning(String messageKey, String arg, boolean ignoreAJAXUpdateOnPortlets)
messageKey - arg - argument 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.MessageExceptionprotected void throwWarning(String message) throws org.exoplatform.webui.exception.MessageException
org.exoplatform.webui.exception.MessageExceptionthrowWarning(String, String...)protected <C extends org.exoplatform.webui.core.UIComponent> C openPopup(org.exoplatform.webui.core.UIContainer parent,
Class<C> componentType,
String popupId,
int width,
int height)
throws Exception
parent - parent above whch the popup should be opencomponentType - type of the component to open in the popuppopupId - id for the popupwidth - popup widthheight - popup heightExceptionprotected <C extends org.exoplatform.webui.core.UIComponent> C openPopup(org.exoplatform.webui.core.UIContainer parent,
Class<C> componentType,
int width,
int height)
throws Exception
ExceptionopenPopup(UIContainer, Class, String, int, int)public String getLabel(String labelID)
BaseUIForm.getLabel(String)public <C extends org.exoplatform.webui.core.UIComponent> C getChildById(String id)
UIContainer.getChildById(String)Copyright © 2003–2020 eXo Platform SAS. All rights reserved.