org.alfresco.web.bean.wcm
Class FormTemplatesDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.wcm.FormTemplatesDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean

public class FormTemplatesDialog
extends BaseDialogBean

Backing bean for the Website Project Form Templates dialog. Launched from the Select Templates button on the Define Web Content Forms page.

See Also:
Serialized Form

Field Summary
protected  CreateWebsiteWizard websiteWizard
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
FormTemplatesDialog()
           
 
Method Summary
 void addTemplate(javax.faces.event.ActionEvent event)
          Action handler to add a template to the list for this form
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 CreateWebsiteWizard.FormWrapper getActionForm()
           
protected  org.alfresco.service.cmr.avm.AVMService getAvmService()
           
 java.lang.String getContainerDescription()
          Returns the description to be used for the dialog
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 javax.faces.model.DataModel getTemplatesDataModel()
           
 java.util.List getTemplatesList()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
 void removeTemplate(javax.faces.event.ActionEvent event)
          Remove a presentation template from the selected list
 void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
           
 void setCreateWebsiteWizard(CreateWebsiteWizard wizard)
           
 void setTemplatesDataModel(javax.faces.model.DataModel templatesDataModel)
           
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerSubTitle, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

websiteWizard

protected CreateWebsiteWizard websiteWizard
Constructor Detail

FormTemplatesDialog

public FormTemplatesDialog()
Method Detail

setAvmService

public void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
Parameters:
avmService - The avmService to set.

getAvmService

protected org.alfresco.service.cmr.avm.AVMService getAvmService()

setCreateWebsiteWizard

public void setCreateWebsiteWizard(CreateWebsiteWizard wizard)
Parameters:
wizard - The Create Website Wizard to set.

init

public void init(java.util.Map parameters)
Description copied from interface: IDialogBean
Initialises the dialog bean

Specified by:
init in interface IDialogBean
Overrides:
init in class BaseDialogBean
Parameters:
parameters - Map of parameters for the dialog
See Also:
BaseDialogBean.init(java.util.Map)

getContainerDescription

public java.lang.String getContainerDescription()
Description copied from interface: IDialogBean
Returns the description to be used for the dialog

If this returns null the DialogManager will lookup the description via the dialog configuration

Specified by:
getContainerDescription in interface IDialogBean
Overrides:
getContainerDescription in class BaseDialogBean
Returns:
The title or null if the title is to be acquired via configuration

getActionForm

public CreateWebsiteWizard.FormWrapper getActionForm()
Returns:
an object representing the form for the current action

getTemplatesDataModel

public javax.faces.model.DataModel getTemplatesDataModel()
Returns:
JSF data model wrapping the templates selected by the user

setTemplatesDataModel

public void setTemplatesDataModel(javax.faces.model.DataModel templatesDataModel)
Parameters:
templatesDataModel - JSF data model wrapping the templates

getTemplatesList

public java.util.List getTemplatesList()
Returns:
List of UIListItem objects representing the available presentation templates for selection

addTemplate

public void addTemplate(javax.faces.event.ActionEvent event)
Action handler to add a template to the list for this form


removeTemplate

public void removeTemplate(javax.faces.event.ActionEvent event)
Remove a presentation template from the selected list


finishImpl

protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
                                      java.lang.String outcome)
                               throws java.lang.Exception
Description copied from class: BaseDialogBean
Performs the actual processing for the wizard. NOTE: This method is called within the context of a transaction so no transaction handling is required

Specified by:
finishImpl in class BaseDialogBean
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
Throws:
java.lang.Exception
See Also:
BaseDialogBean.finishImpl(javax.faces.context.FacesContext, java.lang.String)

getFinishButtonDisabled

public boolean getFinishButtonDisabled()
Description copied from interface: IDialogBean
Determines whether the finish button on the dialog should be disabled

Specified by:
getFinishButtonDisabled in interface IDialogBean
Overrides:
getFinishButtonDisabled in class BaseDialogBean
Returns:
true if the button should be disabled
See Also:
BaseDialogBean.getFinishButtonDisabled()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.