Class BaseEventListener<T extends BaseUIForm>
java.lang.Object
org.exoplatform.webui.event.EventListener<T>
org.exoplatform.forum.common.webui.BaseEventListener<T>
public abstract class BaseEventListener<T extends BaseUIForm>
extends org.exoplatform.webui.event.EventListener<T>
Base EventListener with convenience methods delegated to the underlying BaseUIForm.
implementers should implement
onEvent(Event, BaseUIForm, String)- Version:
- $Revision$
- Author:
- Patrice Lamarque
-
Field Summary
FieldsFields inherited from class org.exoplatform.webui.event.EventListener
RESULT_OK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid<C extends org.exoplatform.webui.core.UIComponent>
CgetChildById(String id) protected voidSends a info message to ui and ignore ajax update on Portletsprotected voidSends an info message to uiprotected voidprotected voidprotected voidSends a ninfo message to uiabstract voidprotected <C extends org.exoplatform.webui.core.UIComponent>
CopenPopup(org.exoplatform.webui.core.UIContainer parent, Class<C> componentType, int width, int height) protected <C extends org.exoplatform.webui.core.UIComponent>
CopenPopup(org.exoplatform.webui.core.UIContainer parent, Class<C> componentType, String popupId, int width, int height) Opens a popup and creates a component into it.voidrefresh()protected voidthrowWarning(String message) protected voidthrowWarning(String message, String... args) Throws a MessageException in warning levelprotected voidSends a warning message to ui and ignore ajax update on Portletsprotected voidSends a warning message to uiprotected voidprotected voidprotected voidSends a parameterized warning to uiprotected voidSends a parameterized warning to ui
-
Field Details
-
component
underlying BaseUIForm
-
-
Constructor Details
-
BaseEventListener
public BaseEventListener()
-
-
Method Details
-
execute
- Specified by:
executein classorg.exoplatform.webui.event.EventListener<T extends BaseUIForm>- Throws:
Exception
-
onEvent
public abstract void onEvent(org.exoplatform.webui.event.Event<T> event, T component, String objectId) throws Exception - Throws:
Exception
-
refresh
public void refresh() -
info
Sends a info message to ui and ignore ajax update on Portlets- Parameters:
messageKey- resource bundle key for the message
-
info
-
info
-
info
Sends an info message to ui- Parameters:
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.
-
info
Sends a ninfo message to ui- Parameters:
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.
-
warning
Sends a warning message to ui and ignore ajax update on Portlets- Parameters:
messageKey- resource bundle key for the message
-
warning
-
warning
-
warning
Sends a warning message to ui- Parameters:
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.
-
warning
Sends a parameterized warning to ui- Parameters:
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.
-
warning
Sends a parameterized warning to ui- Parameters:
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.
-
throwWarning
protected void throwWarning(String message, String... args) throws org.exoplatform.webui.exception.MessageException Throws a MessageException in warning level- Parameters:
message-args-- Throws:
org.exoplatform.webui.exception.MessageException
-
throwWarning
- Throws:
org.exoplatform.webui.exception.MessageException- See Also:
-
openPopup
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 Opens a popup and creates a component into it.- Parameters:
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 height- Returns:
- the component inside the popup
- Throws:
Exception
-
openPopup
protected <C extends org.exoplatform.webui.core.UIComponent> C openPopup(org.exoplatform.webui.core.UIContainer parent, Class<C> componentType, int width, int height) throws Exception - Throws:
Exception- See Also:
-
getLabel
- See Also:
-
getChildById
- See Also:
-
UIContainer.getChildById(String)
-