org.exoplatform.wcm.webui.dialog
Class UIContentDialogForm

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.ecm.webui.form.UIDialogForm
                  extended by org.exoplatform.wcm.webui.dialog.UIContentDialogForm
All Implemented Interfaces:
org.exoplatform.ecm.webui.selector.UISelectable, org.exoplatform.webui.core.UIPopupComponent

public class UIContentDialogForm
extends org.exoplatform.ecm.webui.form.UIDialogForm
implements org.exoplatform.webui.core.UIPopupComponent, org.exoplatform.ecm.webui.selector.UISelectable

Created by The eXo Platform SAS Author : Phan Le Thanh Chuong chuong.phan@exoplatform.com, phan.le.thanh.chuong@gmail.com Oct 29, 2009


Nested Class Summary
static class UIContentDialogForm.AddActionListener
          The listener interface for receiving addAction events.
static class UIContentDialogForm.CloseActionListener
          The listener interface for receiving closeAction events.
static class UIContentDialogForm.FastPublishActionListener
          The listener interface for receiving fastPublishAction events.
static class UIContentDialogForm.PreferencesActionListener
          The listener interface for receiving preferencesAction events.
static class UIContentDialogForm.RemoveDataActionListener
          The listener interface for receiving removeDataAction events.
static class UIContentDialogForm.RemoveReferenceActionListener
          The listener interface for receiving removeReferenceAction events.
static class UIContentDialogForm.SaveDraftActionListener
          The listener interface for receiving saveAction events.
static class UIContentDialogForm.ShowComponentActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.ecm.webui.form.UIDialogForm
org.exoplatform.ecm.webui.form.UIDialogForm.OnchangeActionListener
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static java.lang.String CONTENT_DIALOG_FORM_POPUP_WINDOW
          The Constant CONTENT_DIALOG_FORM_POPUP_WINDOW.
static java.lang.String FIELD_TAXONOMY
          The Constant FIELD_TAXONOMY.
static java.lang.String TAXONOMY_CONTENT_POPUP_WINDOW
          The Constant TAXONOMY_CONTENT_POPUP_WINDOW.
 
Fields inherited from class org.exoplatform.ecm.webui.form.UIDialogForm
ACTIONS, CANCEL_ACTION, componentSelectors, contentType, fieldNames, i18nNodePath, isAddNew, isReference, isRemovePreference, isShowingComponent, isUpdateSelect, nodePath, properties, propertiesName, repositoryName, resourceResolver, SAVE_ACTION, uiMultiValueParam, workspaceName
 
Fields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIContentDialogForm()
          Instantiates a new uI content dialog form.
 
Method Summary
 void activate()
           
 void deActivate()
           
 void doSelect(java.lang.String selectField, java.lang.Object value)
           
 javax.jcr.Node getCurrentNode()
          Gets the current node.
 java.util.List<java.lang.String> getListTaxonomy()
          Gets the list taxonomy.
 java.util.List<java.lang.String> getlistTaxonomyName()
          Gets the list taxonomy name.
 java.lang.Class<? extends UIContentDialogPreference> getPreferenceComponent()
          Gets the preference component.
 java.lang.String getTemplate()
           
 org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, java.lang.String template)
           
 NodeLocation getWebcontentNodeLocation()
          Gets the webcontent node location.
 void init(javax.jcr.Node webcontent, boolean isAddNew)
          Inits the.
 void setListTaxonomy(java.util.List<java.lang.String> listTaxonomyNew)
          Sets the list taxonomy.
 void setListTaxonomyName(java.util.List<java.lang.String> listTaxonomyNameNew)
          Sets the list taxonomy name.
 void setPreferenceComponent(java.lang.Class<? extends UIContentDialogPreference> preferenceComponent)
          Sets the preference component.
 void setWebcontentNodeLocation(NodeLocation webcontentNodeLocation)
          Sets the webcontent node location.
 
Methods inherited from class org.exoplatform.ecm.webui.form.UIDialogForm
addActionField, addActionField, addCalendarField, addCalendarField, addCheckBoxField, addCheckBoxField, addHiddenField, addInterceptor, addMixinField, addMixinField, addNew, addRadioBoxField, addRadioBoxField, addSelectBoxField, addSelectBoxField, addTextAreaField, addTextAreaField, addTextField, addTextField, addUploadField, addUploadField, addWYSIWYGField, addWYSIWYGField, dataRemoved, getChildNode, getContentType, geti18nNodePath, getImage, getInputProperties, getInputProperty, getJCRResourceResolver, getNode, getNodePath, getPathTaxonomy, getPropertyName, getSelectBoxFieldValue, getSession, getSesssion, getStoredPath, isAddNew, isEditing, isOnchange, isResetForm, onchange, processAction, removeComponent, renderField, resetInterceptors, resetProperties, setChildPath, setContentType, setDataRemoved, seti18nNodePath, setInputProperty, setIsNotEditNode, setIsNTFile, setIsOnchange, setIsResetForm, setIsResetMultiField, setIsUpdateSelect, setJCRResourceResolver, setNodePath, setRepositoryName, setStoredLocation, setStoredPath, setWorkspace
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getLabel, getSubmitAction, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, 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, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes, visit
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, isRendered, loadConfirmMesssage, processDecode, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibbling, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_DIALOG_FORM_POPUP_WINDOW

public static final java.lang.String CONTENT_DIALOG_FORM_POPUP_WINDOW
The Constant CONTENT_DIALOG_FORM_POPUP_WINDOW.

See Also:
Constant Field Values

FIELD_TAXONOMY

public static final java.lang.String FIELD_TAXONOMY
The Constant FIELD_TAXONOMY.

See Also:
Constant Field Values

TAXONOMY_CONTENT_POPUP_WINDOW

public static final java.lang.String TAXONOMY_CONTENT_POPUP_WINDOW
The Constant TAXONOMY_CONTENT_POPUP_WINDOW.

See Also:
Constant Field Values
Constructor Detail

UIContentDialogForm

public UIContentDialogForm()
                    throws java.lang.Exception
Instantiates a new uI content dialog form.

Throws:
java.lang.Exception - the exception
Method Detail

getListTaxonomy

public java.util.List<java.lang.String> getListTaxonomy()
Gets the list taxonomy.

Returns:
the list taxonomy

getlistTaxonomyName

public java.util.List<java.lang.String> getlistTaxonomyName()
Gets the list taxonomy name.

Returns:
the list taxonomy name

setListTaxonomy

public void setListTaxonomy(java.util.List<java.lang.String> listTaxonomyNew)
Sets the list taxonomy.

Parameters:
listTaxonomyNew - the new list taxonomy

setListTaxonomyName

public void setListTaxonomyName(java.util.List<java.lang.String> listTaxonomyNameNew)
Sets the list taxonomy name.

Parameters:
listTaxonomyNameNew - the new list taxonomy name

getWebcontentNodeLocation

public NodeLocation getWebcontentNodeLocation()
Gets the webcontent node location.

Returns:
the webcontent node location

setWebcontentNodeLocation

public void setWebcontentNodeLocation(NodeLocation webcontentNodeLocation)
Sets the webcontent node location.

Parameters:
webcontentNodeLocation - the new webcontent node location

getPreferenceComponent

public java.lang.Class<? extends UIContentDialogPreference> getPreferenceComponent()
Gets the preference component.

Returns:
the preference component

setPreferenceComponent

public void setPreferenceComponent(java.lang.Class<? extends UIContentDialogPreference> preferenceComponent)
Sets the preference component.

Parameters:
preferenceComponent - the new preference component

init

public void init(javax.jcr.Node webcontent,
                 boolean isAddNew)
          throws java.lang.Exception
Inits the.

Parameters:
webcontent - the webcontent
isAddNew - the is add new
Throws:
java.lang.Exception - the exception

getCurrentNode

public javax.jcr.Node getCurrentNode()
Gets the current node.

Returns:
the current node

getTemplate

public java.lang.String getTemplate()
Overrides:
getTemplate in class org.exoplatform.ecm.webui.form.UIDialogForm

getTemplateResourceResolver

public org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context,
                                                                             java.lang.String template)
Overrides:
getTemplateResourceResolver in class org.exoplatform.webui.core.UIComponent

activate

public void activate()
              throws java.lang.Exception
Specified by:
activate in interface org.exoplatform.webui.core.UIPopupComponent
Throws:
java.lang.Exception

deActivate

public void deActivate()
                throws java.lang.Exception
Specified by:
deActivate in interface org.exoplatform.webui.core.UIPopupComponent
Throws:
java.lang.Exception

doSelect

public void doSelect(java.lang.String selectField,
                     java.lang.Object value)
              throws java.lang.Exception
Specified by:
doSelect in interface org.exoplatform.ecm.webui.selector.UISelectable
Throws:
java.lang.Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.