org.exoplatform.poll.webui
Class BasePollForm

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by org.exoplatform.forum.common.webui.BaseUIForm
                  extended by org.exoplatform.poll.webui.BasePollForm
Direct Known Subclasses:
UIPoll, UIPollForm, UIPollManagement

public class BasePollForm
extends org.exoplatform.forum.common.webui.BaseUIForm

Base class for UIForm used in poll application. Provides convenience methods to access the service

Version:
$Revision$
Author:
Patrice Lamarque

Nested Class Summary
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
 
Fields inherited from class org.exoplatform.forum.common.webui.BaseUIForm
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
BasePollForm()
           
 
Method Summary
protected  org.exoplatform.poll.service.PollService getPollService()
          Get a reference to the forum service
protected
<T extends org.exoplatform.webui.core.UIComponent>
T
openPopup(Class<T> componentType, int width)
           
protected
<T extends org.exoplatform.webui.core.UIComponent>
T
openPopup(Class<T> componentType, int width, int height)
           
protected
<T extends org.exoplatform.webui.core.UIComponent>
T
openPopup(Class<T> componentType, String popupId, int width)
           
protected
<T extends org.exoplatform.webui.core.UIComponent>
T
openPopup(Class<T> componentType, String popupId, int width, int height)
           
protected  void setPollService(org.exoplatform.poll.service.PollService pollService)
          Set poll service (used by unit tests)
 
Methods inherited from class org.exoplatform.forum.common.webui.BaseUIForm
cancelChildPopupAction, getLabel, getUIFormScrollSelectBox, getUIForumFilter, i18n, info, info, info, info, info, openPopup, openPopup, throwWarning, throwWarning, warning, warning, warning, warning, warning
 
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
 

Constructor Detail

BasePollForm

public BasePollForm()
Method Detail

getPollService

protected org.exoplatform.poll.service.PollService getPollService()
Get a reference to the forum service

Returns:

setPollService

protected void setPollService(org.exoplatform.poll.service.PollService pollService)
Set poll service (used by unit tests)

Parameters:
pollService -

openPopup

protected <T extends org.exoplatform.webui.core.UIComponent> T openPopup(Class<T> componentType,
                                                                         String popupId,
                                                                         int width,
                                                                         int height)
                                                              throws Exception
Throws:
Exception

openPopup

protected <T extends org.exoplatform.webui.core.UIComponent> T openPopup(Class<T> componentType,
                                                                         int width,
                                                                         int height)
                                                              throws Exception
Throws:
Exception

openPopup

protected <T extends org.exoplatform.webui.core.UIComponent> T openPopup(Class<T> componentType,
                                                                         int width)
                                                              throws Exception
Throws:
Exception

openPopup

protected <T extends org.exoplatform.webui.core.UIComponent> T openPopup(Class<T> componentType,
                                                                         String popupId,
                                                                         int width)
                                                              throws Exception
Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.