org.exoplatform.poll.webui
Class UIPoll

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
                      extended by org.exoplatform.poll.webui.UIPoll

public class UIPoll
extends BasePollForm


Nested Class Summary
static class UIPoll.ClosedPollActionListener
           
static class UIPoll.EditPollActionListener
           
static class UIPoll.RemovePollActionListener
           
static class UIPoll.VoteActionListener
           
static class UIPoll.VoteAgainPollActionListener
           
 
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
isAddColonInLabel, 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
UIPoll()
           
 
Method Summary
protected  boolean getCanViewEditMenu()
           
protected  String[] getInfoVote()
           
protected  boolean getIsEditPoll()
           
 boolean hasUserInGroup(String groupId, String userId)
           
protected  boolean isGuestPermission()
           
 void setEditPoll(boolean isEditPoll)
           
 void setPollId()
           
 void updateFormPoll(org.exoplatform.poll.service.Poll poll)
           
 void updatePollById(String pollId)
           
 
Methods inherited from class org.exoplatform.poll.webui.BasePollForm
getPollService, processRender, setPollService
 
Methods inherited from class org.exoplatform.forum.common.webui.BaseUIForm
cancelChildPopupAction, getLabel, getLabel, getUIFormScrollSelectBox, getUIForumFilter, i18n, info, info, info, info, info, isAddColonInLabel, openPopup, openPopup, openPopup, openPopup, openPopup, openPopup, setAddColonInLabel, 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, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, 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

UIPoll

public UIPoll()
Method Detail

setPollId

public void setPollId()
               throws Exception
Throws:
Exception

hasUserInGroup

public boolean hasUserInGroup(String groupId,
                              String userId)
                       throws Exception
Throws:
Exception

updateFormPoll

public void updateFormPoll(org.exoplatform.poll.service.Poll poll)
                    throws Exception
Throws:
Exception

updatePollById

public void updatePollById(String pollId)
                    throws Exception
Throws:
Exception

getIsEditPoll

protected boolean getIsEditPoll()

setEditPoll

public void setEditPoll(boolean isEditPoll)

getCanViewEditMenu

protected boolean getCanViewEditMenu()

isGuestPermission

protected boolean isGuestPermission()
                             throws Exception
Throws:
Exception

getInfoVote

protected String[] getInfoVote()
                        throws Exception
Throws:
Exception


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.