public class PlaceholderBean extends FCContextBean
Each placeholder belongs to a IPlaceholderType
. In the dialog, placeholders are grouped according to this
type.
To control which placeholders are available, there exists
IPlaceholderLibrary
that contains the registered placeholders. It contains several groups and a set of
placeholders for that group. A group is just any Object
, eg. SYSTEM placeholders, FORM placeholders or custom
placeholders. This lets you change the placeholders for a certain group without affecting other gropus.There are also a few events available that can be triggered from another bean to update the placeholders:
PlaceholderModifyLibraryEvent
may be triggered to register or deregister placeholders from the
IPlaceholderLibrary
PlaceholderModifyActiveGroupsEvent
may be triggered to add or remove currently active groupsAJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
systemUC
Constructor and Description |
---|
PlaceholderBean() |
Modifier and Type | Method and Description |
---|---|
int |
comparePlaceholderType(IPlaceholderType lhs,
IPlaceholderType rhs)
Compares two given placeholder types.
|
List<PlaceHolder> |
createPlaceholdersForCurrentContext()
All available placeholders, depending on the current context (ie. whether the user is editing a project etc.).
|
Set<IPlaceholderGroup> |
getActiveGroups() |
IPlaceholderLibrary |
getLibrary() |
Collection<Projekt> |
getProjects() |
PlaceHolder |
getSelectedPlaceholder() |
Projekt |
getSelectedProject() |
ViewEventBusBean |
getViewEventBusBean() |
boolean |
isShowProjectSelection()
Whether the user can select a project in the placeholder dialog.
|
void |
load() |
void |
setSelectedPlaceholder(PlaceHolder selectedPlaceholder) |
void |
setSelectedProject(Projekt selectedProject) |
void |
setViewEventBusBean(ViewEventBusBean viewEventBusBean) |
void |
updateDialog()
Triggers an update of the placeholder dialog.
|
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
ec, isDetached, isHasDB
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
public int comparePlaceholderType(IPlaceholderType lhs, IPlaceholderType rhs)
lhs
- First placeholder typerhs
- Second placeholder typepublic Set<IPlaceholderGroup> getActiveGroups()
public IPlaceholderLibrary getLibrary()
public PlaceHolder getSelectedPlaceholder()
public ViewEventBusBean getViewEventBusBean()
public boolean isShowProjectSelection()
public void load()
public void setSelectedPlaceholder(PlaceHolder selectedPlaceholder)
selectedPlaceholder
- The currently selected placeholder in the placeholder list.public void setViewEventBusBean(ViewEventBusBean viewEventBusBean)
public void updateDialog()
public List<PlaceHolder> createPlaceholdersForCurrentContext()
public Collection<Projekt> getProjects()
public Projekt getSelectedProject()
public void setSelectedProject(Projekt selectedProject)
selectedProject
- The project for which form placeholders are shown.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.