@Name(value="layoutDemoActions") @Scope(value=SESSION) public class LayoutDemoActions extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
currentSubTabId |
protected String |
currentTabId |
protected DemoWidgetType |
currentWidgetType |
protected PreviewLayoutDefinition |
editPreviewLayoutDef |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected DocumentModel |
layoutBareDemoDocument |
protected LayoutDemoContext |
layoutDemoContext |
protected DocumentModel |
layoutDemoDocument |
protected LayoutDemoManager |
layoutDemoManager |
protected DocumentModel |
layoutValidationDocument |
protected org.jboss.seam.international.LocaleSelector |
localeSelector |
protected Map<String,String> |
messages |
protected PreviewLayoutDefinition |
viewPreviewLayoutDef |
protected WebLayoutManager |
webLayoutManager |
Constructor and Description |
---|
LayoutDemoActions() |
Modifier and Type | Method and Description |
---|---|
protected PreviewLayoutDefinition |
createPreviewLayoutDefinition(DemoWidgetType widgetType) |
String |
getCurrentSubTabId() |
String |
getCurrentTabId() |
DemoWidgetType |
getCurrentWidgetType() |
WidgetTypeDefinition |
getCurrentWidgetTypeDefinition() |
DocumentModel |
getDemoDocument() |
PreviewLayoutDefinition |
getEditPreviewLayoutDefinition() |
PreviewLayoutDefinition |
getViewPreviewLayoutDefinition() |
String |
initContextFromRestRequest(DocumentView docView) |
String |
resetValidationDocument() |
protected List<WidgetDefinition> |
retrieveSubWidgets(LayoutDefinition layoutDef) |
void |
setCurrentSubTabId(String currentSubTabId) |
void |
setCurrentTabId(String currentTabId) |
void |
setCurrentWidgetType(DemoWidgetType newWidgetType) |
void |
validateDocument() |
@In(create=true) protected LayoutDemoManager layoutDemoManager
@In(create=true) protected WebLayoutManager webLayoutManager
@In(create=true) protected DocumentModel layoutBareDemoDocument
@In(create=true) protected DocumentModel layoutValidationDocument
@In(create=true) protected LayoutDemoContext layoutDemoContext
protected DocumentModel layoutDemoDocument
protected DemoWidgetType currentWidgetType
protected String currentTabId
protected String currentSubTabId
protected PreviewLayoutDefinition viewPreviewLayoutDef
protected PreviewLayoutDefinition editPreviewLayoutDef
@In(create=true) protected transient org.jboss.seam.international.LocaleSelector localeSelector
@In(create=true) protected org.jboss.seam.faces.FacesMessages facesMessages
public LayoutDemoActions()
@Factory(value="layoutDemoDocument", scope=EVENT) public DocumentModel getDemoDocument()
public String initContextFromRestRequest(DocumentView docView)
public void setCurrentWidgetType(DemoWidgetType newWidgetType)
@Factory(value="currentWidgetType", scope=EVENT) public DemoWidgetType getCurrentWidgetType()
@Factory(value="currentWidgetTypeDef", scope=EVENT) public WidgetTypeDefinition getCurrentWidgetTypeDefinition()
@Factory(value="layoutDemoCurrentTabId", scope=EVENT) public String getCurrentTabId()
public void setCurrentTabId(String currentTabId)
@Factory(value="layoutDemoCurrentSubTabId", scope=EVENT) public String getCurrentSubTabId()
public void setCurrentSubTabId(String currentSubTabId)
protected PreviewLayoutDefinition createPreviewLayoutDefinition(DemoWidgetType widgetType)
protected List<WidgetDefinition> retrieveSubWidgets(LayoutDefinition layoutDef)
@Factory(value="viewPreviewLayoutDef", scope=EVENT) public PreviewLayoutDefinition getViewPreviewLayoutDefinition()
@Factory(value="editPreviewLayoutDef", scope=EVENT) public PreviewLayoutDefinition getEditPreviewLayoutDefinition()
public void validateDocument()
public String resetValidationDocument()
Copyright © 2018 Nuxeo. All rights reserved.