Package ru.bgcrm.model.process
Class ProcessType
- All Implemented Interfaces:
Comparable<ProcessType>,Id<Integer>,IdTitle<Integer>,Title,TreeItem<Integer,ProcessType>
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetPath()getSelectedChildIds(Set<Integer> typeSet) Selects process type IDs with filter by other IDs.protected booleanbooleanvoidsetProperties(TypeProperties properties) voidsetUseParentProperties(boolean useParentProperties) Methods inherited from class org.bgerp.model.base.tree.TreeItem
addChild, getAllChildIds, getById, getChild, getChildCount, getChildIds, getChildren, getIcon, getId, getParentId, getTextStyle, getTitle, isInPathTo, isRootNodeWithIntegerId, setChildren, setId, setParentId, setTitle
-
Constructor Details
-
ProcessType
public ProcessType() -
ProcessType
-
-
Method Details
-
getTypeTitle
- Returns:
- the type's title, prefixed by the parent's one, if shorter than
MIN_TITLE_LENGTH
-
getProperties
-
setProperties
-
isUseParentProperties
public boolean isUseParentProperties() -
setUseParentProperties
public void setUseParentProperties(boolean useParentProperties) -
getPath
-
getSelectedChildIds
Selects process type IDs with filter by other IDs.- Parameters:
typeSet- the filter set, if a type ID is there, it has been added together with all its child IDs.- Returns:
-
compareTo
- Specified by:
compareToin interfaceComparable<ProcessType>
-
isRootNode
protected boolean isRootNode()- Specified by:
isRootNodein classTreeItem<Integer,ProcessType>
-