| java.lang.Object com.flexive.core.storage.FxTreeNodeInfo com.flexive.core.storage.FxTreeNodeInfoSpreaded
FxTreeNodeInfoSpreaded | public class FxTreeNodeInfoSpreaded extends FxTreeNodeInfo implements Serializable(Code) | | Information about a tree node that implementation specific and provide information about parameters
relevant to the nested set model with spreading.
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Constructor Summary | |
public | FxTreeNodeInfoSpreaded(BigDecimal left, BigDecimal right, BigDecimal parentLeft, BigDecimal parentRight, BigDecimal maxChildRight, int totalChildCount, int directChildCount, int depth, long parentId, long id, String name, FxPK reference, long ACLId, FxTreeMode mode, int position, String template, long modifiedAt, boolean mayEdit, boolean mayCreate, boolean mayDelete, boolean mayRelate, boolean mayExport) Ctor
Parameters: left - left position Parameters: right - right position Parameters: parentLeft - parent left Parameters: parentRight - parent right Parameters: maxChildRight - max. |
FxTreeNodeInfoSpreaded | public FxTreeNodeInfoSpreaded(BigDecimal left, BigDecimal right, BigDecimal parentLeft, BigDecimal parentRight, BigDecimal maxChildRight, int totalChildCount, int directChildCount, int depth, long parentId, long id, String name, FxPK reference, long ACLId, FxTreeMode mode, int position, String template, long modifiedAt, boolean mayEdit, boolean mayCreate, boolean mayDelete, boolean mayRelate, boolean mayExport)(Code) | | Ctor
Parameters: left - left position Parameters: right - right position Parameters: parentLeft - parent left Parameters: parentRight - parent right Parameters: maxChildRight - max. number of children right Parameters: totalChildCount - total number of children Parameters: directChildCount - number of direct children Parameters: depth - depth of this node Parameters: parentId - parent id Parameters: id - node id Parameters: name - name Parameters: reference - referenced content Parameters: ACLId - ACL of the referenced content Parameters: mode - tree mode Parameters: position - position Parameters: template - template Parameters: modifiedAt - last modified at Parameters: mayEdit - edit permission of the referenced ACL Parameters: mayCreate - create permission of the referenced ACL Parameters: mayDelete - delete permission of the referenced ACL Parameters: mayRelate - relate permission of the referenced ACL Parameters: mayExport - export permission of the referenced ACL |
getDefaultSpacing | public BigDecimal getDefaultSpacing()(Code) | | Get the default spacing.
default spacing |
getInnerSpace | public BigDecimal getInnerSpace()(Code) | | Get the inner space (space between left and right border)
inner space |
getMaxChildRight | public BigDecimal getMaxChildRight()(Code) | | The maximum rgt value of all childs of the node, or if no child exists the rgt of
the node itself.
Null if no childs are present.
The maximum rgt value of all childs of the node |
getParentLeft | public BigDecimal getParentLeft()(Code) | | Get the parent left position
parent left position |
getParentRight | public BigDecimal getParentRight()(Code) | | Get the parent right position
parent right position |
getRight | public BigDecimal getRight()(Code) | | Get the right position
right position |
getSpacing | public BigDecimal getSpacing(int childCount)(Code) | | Get the spacing needed to hold requested number of children
Parameters: childCount - number of children to get the spacing for spacing |
hasSpaceFor | public boolean hasSpaceFor(int childCount, int spacing)(Code) | | Returns true if the node can hold the given amount of children between its left and right
borders without the parent(s) being reorganized.
Parameters: childCount - the child count to check for Parameters: spacing - the spacing between the nodes true if the node can hold the given amount of children without beeing reorganized |
hasSpaceFor | public boolean hasSpaceFor(int childCount)(Code) | | Is this node capable of holding childCount child nodes?
Parameters: childCount - number of childnodes this node should be able to hold if there is enough space to hold childCount child nodes |
isSpaceOptimizable | public boolean isSpaceOptimizable()(Code) | | Returns true if the spaces used within the node and its children can be optimized.
true if the spaces used within the node and its children can be optimized |
|
|