|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.webui.event.EventListener<T>
org.exoplatform.forum.common.webui.BaseEventListener<T>
public abstract class BaseEventListener<T extends BaseUIForm>
Base EventListener with convenience methods delegated to the underlying BaseUIForm.
implementers should implement onEvent(Event, BaseUIForm, String)
| Field Summary | |
|---|---|
protected T |
component
underlying BaseUIForm |
| Fields inherited from class org.exoplatform.webui.event.EventListener |
|---|
RESULT_OK |
| Constructor Summary | |
|---|---|
BaseEventListener()
|
|
| Method Summary | ||
|---|---|---|
void |
execute(org.exoplatform.webui.event.Event<T> event)
|
|
|
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
|
openPopup(org.exoplatform.webui.core.UIContainer parent,
Class<C> componentType,
int width,
int height)
|
|
protected
|
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 |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected T extends BaseUIForm component
| Constructor Detail |
|---|
public BaseEventListener()
| Method Detail |
|---|
public final void execute(org.exoplatform.webui.event.Event<T> event)
throws Exception
execute in class org.exoplatform.webui.event.EventListener<T extends BaseUIForm>Exception
public 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 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 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.MessageException
protected 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
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 <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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||