org.exoplatform.answer.webui.popup
Class UIQuestionForm

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.answer.webui.BaseUIFAQForm
                      extended by org.exoplatform.answer.webui.popup.UIQuestionForm
All Implemented Interfaces:
org.exoplatform.webui.core.UIPopupComponent

public class UIQuestionForm
extends BaseUIFAQForm
implements org.exoplatform.webui.core.UIPopupComponent

Created by The eXo Platform SARL Author : Hung Nguyen hung.nguyen@exoplatform.com Aus 01, 2007 2:48:18 PM


Nested Class Summary
static class UIQuestionForm.AttachmentActionListener
           
static class UIQuestionForm.CancelActionListener
           
static class UIQuestionForm.DeleteLanguageActionListener
           
static class UIQuestionForm.RemoveAttachmentActionListener
           
static class UIQuestionForm.SaveActionListener
           
static class UIQuestionForm.SelectLanguageActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static String ALL_LANGUAGES
           
static String ATTACHMENTS
           
static String AUTHOR
           
static String DELETE_LANGUAGE_ACTION
           
static String EMAIL_ADDRESS
           
static String FILE_ATTACHMENTS
           
static String IS_ACTIVATED
           
static String IS_APPROVED
           
protected  boolean isRenderSelectLang
           
static String QUESTION_CONTENT
           
static String QUESTION_DETAIL
           
static String REMOVE_FILE_ATTACH
           
 
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
UIQuestionForm()
           
 
Method Summary
 void activate()
           
 void deActivate()
           
 List<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> getActionField(String fieldName)
           
 List<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> getActionList()
           
protected  String getAuthor()
           
 String getDefaultLanguage()
           
 String getEditLanguage()
           
protected  String getEmail()
           
protected  List<org.exoplatform.faq.service.FileAttachment> getListFile()
           
protected  org.exoplatform.webui.form.UIForm getParentForm()
           
 org.exoplatform.faq.service.Question getQuestion()
           
 String getQuestionId()
           
 void initPage(boolean isEdit)
           
 boolean isMode()
           
 void refresh()
           
 void refreshUploadFileList()
           
 void setActionField(String fieldName, List<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> actions)
           
 void setAuthor(String author)
           
 void setCategoryId(String categoryId)
           
 void setDefaultLanguage(String defaultLanguage)
           
 void setEditLanguage(String editLanguage)
           
 void setEmail(String email)
           
 void setFAQSetting(org.exoplatform.faq.service.FAQSetting faqSetting)
           
 void setIsChildOfManager(boolean isChild)
           
 void setIsMode(boolean isMode)
           
 void setLanguages()
           
 void setListFileAttach(org.exoplatform.faq.service.FileAttachment fileAttachment)
           
 void setListFileAttach(List<org.exoplatform.faq.service.FileAttachment> listFileAttachment)
           
 void setQuestion(org.exoplatform.faq.service.Question question)
           
 
Methods inherited from class org.exoplatform.answer.webui.BaseUIFAQForm
getFAQService, openPopup, openPopup, openPopup, openPopup, setFAQService
 
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
 

Field Detail

AUTHOR

public static final String AUTHOR
See Also:
Constant Field Values

EMAIL_ADDRESS

public static final String EMAIL_ADDRESS
See Also:
Constant Field Values

QUESTION_CONTENT

public static final String QUESTION_CONTENT
See Also:
Constant Field Values

ALL_LANGUAGES

public static final String ALL_LANGUAGES
See Also:
Constant Field Values

QUESTION_DETAIL

public static final String QUESTION_DETAIL
See Also:
Constant Field Values

ATTACHMENTS

public static final String ATTACHMENTS
See Also:
Constant Field Values

FILE_ATTACHMENTS

public static final String FILE_ATTACHMENTS
See Also:
Constant Field Values

REMOVE_FILE_ATTACH

public static final String REMOVE_FILE_ATTACH
See Also:
Constant Field Values

IS_APPROVED

public static final String IS_APPROVED
See Also:
Constant Field Values

IS_ACTIVATED

public static final String IS_ACTIVATED
See Also:
Constant Field Values

DELETE_LANGUAGE_ACTION

public static final String DELETE_LANGUAGE_ACTION
See Also:
Constant Field Values

isRenderSelectLang

protected boolean isRenderSelectLang
Constructor Detail

UIQuestionForm

public UIQuestionForm()
               throws Exception
Throws:
Exception
Method Detail

activate

public void activate()
Specified by:
activate in interface org.exoplatform.webui.core.UIPopupComponent

deActivate

public void deActivate()
Specified by:
deActivate in interface org.exoplatform.webui.core.UIPopupComponent

setFAQSetting

public void setFAQSetting(org.exoplatform.faq.service.FAQSetting faqSetting)

getEditLanguage

public String getEditLanguage()

setEditLanguage

public void setEditLanguage(String editLanguage)

refresh

public void refresh()
             throws Exception
Throws:
Exception

setLanguages

public void setLanguages()
                  throws Exception
Throws:
Exception

initPage

public void initPage(boolean isEdit)
              throws Exception
Throws:
Exception

setIsChildOfManager

public void setIsChildOfManager(boolean isChild)

setQuestion

public void setQuestion(org.exoplatform.faq.service.Question question)
                 throws Exception
Throws:
Exception

isMode

public boolean isMode()

setIsMode

public void setIsMode(boolean isMode)

getQuestionId

public String getQuestionId()

setDefaultLanguage

public void setDefaultLanguage(String defaultLanguage)

getDefaultLanguage

public String getDefaultLanguage()

getAuthor

protected String getAuthor()

setAuthor

public void setAuthor(String author)

getEmail

protected String getEmail()

setEmail

public void setEmail(String email)

setCategoryId

public void setCategoryId(String categoryId)
                   throws Exception
Throws:
Exception

getParentForm

protected org.exoplatform.webui.form.UIForm getParentForm()

getActionList

public List<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> getActionList()

setListFileAttach

public void setListFileAttach(List<org.exoplatform.faq.service.FileAttachment> listFileAttachment)

setListFileAttach

public void setListFileAttach(org.exoplatform.faq.service.FileAttachment fileAttachment)

getListFile

protected List<org.exoplatform.faq.service.FileAttachment> getListFile()

refreshUploadFileList

public void refreshUploadFileList()
                           throws Exception
Throws:
Exception

setActionField

public void setActionField(String fieldName,
                           List<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> actions)
                    throws Exception
Throws:
Exception

getActionField

public List<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> getActionField(String fieldName)

getQuestion

public org.exoplatform.faq.service.Question getQuestion()


Copyright © 2013 eXo Platform SAS. All Rights Reserved.