public class GenericTypeSelectorPage extends AbstractGenericItemPage
| Modifier and Type | Field and Description |
|---|---|
protected ObjectType |
chosenType |
static String |
COCKPIT_ID_CREATEWEBSITE_WEBSITETYPE |
static String |
DEFAULT_ELEMENT_IMAGE |
static String |
PARENT_WIZARD_CREATE_CONTEXT |
static String |
PREDEFINED_VALUES |
protected ObjectType |
rootSelectorType |
protected static String |
SCLASS_ELEMENT_BOX |
protected static String |
SCLASS_ELEMENT_DESC |
protected static String |
SCLASS_ELEMENT_IMAGE |
protected static String |
SCLASS_ELEMENT_NAME |
protected static String |
TYPE_SELECTOR_CMSWIZARD_PAGE_SCLASS |
protected static String |
TYPE_SELECTOR_CMSWIZARD_ROW_SCLASS |
protected static String |
TYPE_SELECTOR_CONTAINER_PAGE_SCLASS |
CONTENT_ELEMENT_CONFIG, ERROR_SCLASS_ELEMENT_BOX_EDITOR, ERROR_SCLASS_WIZARD_CNT, errorContainer, INFO_SCLASS_ELEMENT_BOX_EDITOR, INFO_SCLASS_WIZARD_CNT, pageContainer, pageContent, SCLASS_ELEMENT_BOX_EDITOR, WARNING_SCLASS_ELEMENT_BOX_EDITOR, WARNING_SCLASS_WIZARD_CNT, WIZARD_ERROR_CNT_SCLASS, WIZARD_PAGE_CNT_SCLASS, WIZARD_PAGE_CONTENT_CNT_SCLASSheight, title, width, wizard| Constructor and Description |
|---|
GenericTypeSelectorPage() |
GenericTypeSelectorPage(CreateContext createContext) |
GenericTypeSelectorPage(String pageTitle,
Wizard wizard,
CreateContext createContext) |
| Modifier and Type | Method and Description |
|---|---|
protected EventListener |
createOnSelectListener(Listbox listbox)
Creates event listener for handling selection events when user selects a type from the list.
|
Component |
createRepresentationItself()
This is an general method responsible for creating UI representation of given page
Note:
Here we should create graphical representation of particular page |
protected MutableWizardContext |
createWizardContext() |
protected List<TemplateListEntry> |
filterAllowedTypeEntries(List<TemplateListEntry> entries) |
List<String> |
getAllowCreateTypes() |
protected List<ObjectType> |
getAllSubTypes(String typeCode)
Recursively gets subtypes of type
|
Object |
getChosenType() |
WizardPageController |
getController() |
protected CreateItemWizardRegistry |
getCreateItemWizardRegistry() |
List<String> |
getExcludeCreateTypes() |
protected String |
getIcon(TemplateListEntry data)
Gets the url to an icon resource for the given type.
|
ObjectType |
getRootSelectorType() |
protected List<TemplateListEntry> |
getTemplateListEntry() |
protected TypeService |
getTypeService() |
protected UIConfigurationService |
getUIConfigurationService() |
boolean |
isDisplaySubtypes() |
protected boolean |
isInExclusiveCreateMode() |
protected boolean |
isValid(TemplateListEntry templateEntry) |
protected Set<ObjectType> |
mergeGivenTypes(Collection<ObjectType> wizardConfigExcludedTypes,
List<String> additionalExcluded) |
void |
setAllowCreateTypes(List<String> allowCreateTypes) |
void |
setCreateContext(CreateContext createContext) |
void |
setDisplaySubtypes(boolean displaySubtypes) |
void |
setExcludeCreateTypes(List<String> excludeCreateTypes) |
void |
setRootSelectorType(ObjectType rootSelectorType) |
clearPageComponents, getDisplayedAttributes, getErrorContainer, getNextPageWizardId, getPageContainer, getPageContent, getWizard, handleMessages, isCauseError, setDisplayedAttributes, setNextPageWizardIdgetAttributes, getComponentURI, getCurrentController, getHeight, getId, getPageComponent, getTitle, getWidth, initView, renderView, setComponentURI, setController, setId, setPageComponent, setTitle, setWizardprotected static final String SCLASS_ELEMENT_BOX
protected static final String SCLASS_ELEMENT_IMAGE
protected static final String SCLASS_ELEMENT_NAME
protected static final String SCLASS_ELEMENT_DESC
public static final String PREDEFINED_VALUES
public static final String PARENT_WIZARD_CREATE_CONTEXT
public static final String COCKPIT_ID_CREATEWEBSITE_WEBSITETYPE
protected static final String TYPE_SELECTOR_CONTAINER_PAGE_SCLASS
protected static final String TYPE_SELECTOR_CMSWIZARD_PAGE_SCLASS
protected static final String TYPE_SELECTOR_CMSWIZARD_ROW_SCLASS
public static final String DEFAULT_ELEMENT_IMAGE
protected ObjectType chosenType
protected ObjectType rootSelectorType
public GenericTypeSelectorPage()
public GenericTypeSelectorPage(CreateContext createContext)
public GenericTypeSelectorPage(String pageTitle, Wizard wizard, CreateContext createContext)
public void setCreateContext(CreateContext createContext)
public WizardPageController getController()
getController in interface WizardPagegetController in class DefaultPagepublic Component createRepresentationItself()
AbstractGenericItemPagecreateRepresentationItself in interface GenericItemWizardPagecreateRepresentationItself in class AbstractGenericItemPageprotected String getIcon(TemplateListEntry data)
protected EventListener createOnSelectListener(Listbox listbox)
protected List<ObjectType> getAllSubTypes(String typeCode)
public Object getChosenType()
public ObjectType getRootSelectorType()
protected List<TemplateListEntry> filterAllowedTypeEntries(List<TemplateListEntry> entries)
protected List<TemplateListEntry> getTemplateListEntry()
protected boolean isInExclusiveCreateMode()
protected Set<ObjectType> mergeGivenTypes(Collection<ObjectType> wizardConfigExcludedTypes, List<String> additionalExcluded)
protected TypeService getTypeService()
protected UIConfigurationService getUIConfigurationService()
public boolean isDisplaySubtypes()
protected boolean isValid(TemplateListEntry templateEntry)
protected MutableWizardContext createWizardContext()
public void setDisplaySubtypes(boolean displaySubtypes)
displaySubtypes - the displaySubtypes to setpublic void setRootSelectorType(ObjectType rootSelectorType)
rootSelectorType - the rootSelectorType to setpublic void setAllowCreateTypes(List<String> allowCreateTypes)
allowCreateTypes - the allowCreateTypes to setpublic void setExcludeCreateTypes(List<String> excludeCreateTypes)
excludeCreateTypes - the excludeCreateTypes to setprotected CreateItemWizardRegistry getCreateItemWizardRegistry()
Copyright © 2017 SAP SE. All Rights Reserved.