public class StateTreeBean extends AProjectDetailsBean implements IUpdatable
entity, LOG
Constructor and Description |
---|
StateTreeBean() |
Modifier and Type | Method and Description |
---|---|
org.primefaces.model.TreeNode |
createActionNode(Aktion action,
org.primefaces.model.TreeNode stateNode) |
org.primefaces.model.TreeNode |
createStateNode(Status status) |
org.primefaces.model.TreeNode |
createStateNode(Status status,
org.primefaces.model.TreeNode parent) |
void |
expandAll()
Expand all nodes, ie. set the
expanded flag of all state nodes to true , so that all actions are
visible. |
Aktion |
getAction() |
Aktion |
getAction(org.primefaces.model.TreeNode actionNode) |
String |
getActionFilterString(Aktion action) |
org.primefaces.model.TreeNode |
getActionNode(Aktion action) |
org.primefaces.model.TreeNode |
getActionNode(Aktion aktion,
Status status) |
org.primefaces.model.TreeNode |
getActionNode(Aktion searchAction,
org.primefaces.model.TreeNode node) |
List<Aktion> |
getActionsForToggle() |
List<Status> |
getAllStates() |
org.primefaces.extensions.model.layout.LayoutOptions |
getCenterPanelOptions() |
List<org.primefaces.model.TreeNode> |
getCheckedActionNodes() |
long |
getCheckedNodeCount() |
List<org.primefaces.model.TreeNode> |
getCheckedStateNodes() |
org.primefaces.model.TreeNode |
getCurrentActionNode() |
org.primefaces.model.TreeNode |
getCurrentStateNode() |
PlaceholderBean |
getPlaceholderBean() |
org.primefaces.model.TreeNode |
getSelected() |
Status |
getState() |
Status |
getState(org.primefaces.model.TreeNode stateNode) |
String |
getStateFilterString(Status state) |
org.primefaces.model.TreeNode |
getStateNode(Status state) |
org.primefaces.model.TreeNode |
getStateNode(Status searchState,
org.primefaces.model.TreeNode node) |
List<Status> |
getStatusList() |
org.primefaces.model.TreeNode |
getTreeRoot() |
ViewEventBusBean |
getViewEventBusBean() |
protected void |
init(IEntityContext ec,
Projekt project) |
boolean |
isActionDeleteable() |
boolean |
isActionSelected() |
boolean |
isChecked(org.primefaces.model.TreeNode node) |
boolean |
isCheckedSelectionActiveTriggerable() |
boolean |
isCheckedSelectionCopyable() |
boolean |
isCheckedSelectionDeletable() |
boolean |
isCurrentStateForResubmission()
Checks whether a state is selected currently and whether it is the state for resubmission.
|
boolean |
isDoActivate() |
boolean |
isSelectedPersisted() |
boolean |
isStateForResubmission(Status state) |
boolean |
isStateSelected() |
boolean |
isType(org.primefaces.model.TreeNode node,
ENodeTypes type) |
void |
loadActionNode(org.primefaces.model.TreeNode actionNode,
Aktion action) |
void |
loadStatusNode(org.primefaces.model.TreeNode statusNode,
Status status) |
void |
markCurrentToDelete() |
void |
markToDelete(org.primefaces.model.TreeNode node) |
void |
onCheckedChange(org.primefaces.model.TreeNode node) |
void |
onDragDrop(org.primefaces.event.TreeDragDropEvent event) |
void |
selectAktion(Aktion aktion) |
void |
selectAktion(Aktion aktion,
Status status)
Selektiert die Aktion eines Status.
|
void |
selectAktion(Aktion aktion,
org.primefaces.model.TreeNode node) |
void |
selectStatus(Status status) |
void |
selectStatus(Status status,
org.primefaces.model.TreeNode node) |
void |
setChecked(org.primefaces.model.TreeNode node,
boolean checked) |
void |
setCheckedRecursive(org.primefaces.model.TreeNode node,
boolean checked) |
void |
setCurrentStateForResubmission()
Sets the currently state, if it exists, as the state for resubmission.
|
void |
setPlaceholderBean(PlaceholderBean placeholderBean) |
void |
setSelected(org.primefaces.model.TreeNode selected) |
void |
setViewEventBusBean(ViewEventBusBean viewEventBusBean) |
void |
syncOrder() |
void |
unselectAll() |
void |
updateAction(Aktion action) |
void |
updateData() |
void |
updateTree() |
getCurrentProjectBean, getDao, getProject, getSessionBean, save, setCurrentProjectBean, setEntity, setEntity, setProject, setProject, setSessionBean
getEntity
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 ViewEventBusBean getViewEventBusBean()
public void setViewEventBusBean(ViewEventBusBean viewEventBusBean)
public PlaceholderBean getPlaceholderBean()
public void setPlaceholderBean(PlaceholderBean placeholderBean)
public void updateTree()
public void unselectAll()
public org.primefaces.extensions.model.layout.LayoutOptions getCenterPanelOptions()
public org.primefaces.model.TreeNode createStateNode(Status status)
public org.primefaces.model.TreeNode createStateNode(Status status, org.primefaces.model.TreeNode parent)
public org.primefaces.model.TreeNode createActionNode(Aktion action, org.primefaces.model.TreeNode stateNode)
public void loadStatusNode(org.primefaces.model.TreeNode statusNode, Status status)
public void loadActionNode(org.primefaces.model.TreeNode actionNode, Aktion action)
public boolean isType(org.primefaces.model.TreeNode node, ENodeTypes type)
public boolean isStateSelected()
public boolean isSelectedPersisted()
public boolean isActionDeleteable()
public boolean isActionSelected()
public org.primefaces.model.TreeNode getTreeRoot()
public org.primefaces.model.TreeNode getSelected()
public void setSelected(org.primefaces.model.TreeNode selected)
public boolean isCheckedSelectionDeletable()
public boolean isDoActivate()
public boolean isCheckedSelectionActiveTriggerable()
public boolean isCheckedSelectionCopyable()
public long getCheckedNodeCount()
public void setCheckedRecursive(org.primefaces.model.TreeNode node, boolean checked)
public void onCheckedChange(org.primefaces.model.TreeNode node)
public void setChecked(org.primefaces.model.TreeNode node, boolean checked)
public boolean isChecked(org.primefaces.model.TreeNode node)
public Aktion getAction()
public Aktion getAction(org.primefaces.model.TreeNode actionNode)
public Status getState(org.primefaces.model.TreeNode stateNode)
public Status getState()
public void setCurrentStateForResubmission()
public boolean isCurrentStateForResubmission()
public boolean isStateForResubmission(Status state)
public void onDragDrop(org.primefaces.event.TreeDragDropEvent event)
public org.primefaces.model.TreeNode getActionNode(Aktion searchAction, org.primefaces.model.TreeNode node)
public org.primefaces.model.TreeNode getActionNode(Aktion action)
public org.primefaces.model.TreeNode getCurrentStateNode()
public org.primefaces.model.TreeNode getCurrentActionNode()
public org.primefaces.model.TreeNode getStateNode(Status state)
public List<org.primefaces.model.TreeNode> getCheckedStateNodes()
public List<org.primefaces.model.TreeNode> getCheckedActionNodes()
public org.primefaces.model.TreeNode getStateNode(Status searchState, org.primefaces.model.TreeNode node)
public void selectAktion(Aktion aktion, org.primefaces.model.TreeNode node)
public void selectAktion(Aktion aktion)
public void selectAktion(Aktion aktion, Status status)
aktion
- Die Aktion, die selektiert werden soll.status
- Der Status, in dem sich die Aktion befindet.public void selectStatus(Status status)
public void selectStatus(Status status, org.primefaces.model.TreeNode node)
public void syncOrder()
public void updateData()
updateData
in interface IUpdatable
public void markCurrentToDelete()
public void markToDelete(org.primefaces.model.TreeNode node)
public void updateAction(Aktion action)
public void expandAll()
expanded
flag of all state nodes to true
, so that all actions are
visible.protected void init(IEntityContext ec, Projekt project)
init
in class AEntityDetailsBean<Projekt>
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.