Java Doc for FxTreeNode.java in  » J2EE » fleXive » com » flexive » shared » tree » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » fleXive » com.flexive.shared.tree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.flexive.shared.tree.FxTreeNode

All known Subclasses:   com.flexive.shared.tree.FxTreeNodeEdit,
FxTreeNode
public class FxTreeNode implements Serializable,SelectableObjectWithLabel,SelectableObjectWithName(Code)
FxNode implementation for flexive
author:
   Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)


Field Summary
final public static  intPARTIAL_LOADED_POS
    
final public static  StringPATH_NOT_LOADED
    
final public static  longROOT_NODE
    
protected  booleanactivate
    
protected  List<FxTreeNode>children
    
protected  FxStringlabel
    
protected  FxTreeModemode
    
protected  Stringname
    
protected  longparentNodeId
    
protected  intposition
    
protected  FxPKreference
    
protected  Stringtemplate
    

Constructor Summary
protected  FxTreeNode()
    
public  FxTreeNode(FxTreeMode mode, long id, long parentNodeId, FxPK reference, long ACLId, String name, String path, FxString label, int position, List<FxTreeNode> children, List<Long> childIds, int depth, int totalChildCount, int directChildCount, boolean leaf, boolean dirty, long modifiedAt, String template, boolean mayEdit, boolean mayCreate, boolean mayDelete, boolean mayRelate, boolean mayExport)
    

Method Summary
public synchronized  void_addChild(FxTreeNode node)
    
public  void_applyPath(String path)
    
public  void_applyPosition(int position)
    
public  FxTreeNodeEditasEditable()
    
public static  FxTreeNodecreateErrorNode(long nodeId, String message)
    
public static  FxTreeNodecreateNewTemporaryChildNode(FxTreeNode parentNode)
    
public  booleanequals(Object obj)
    
public  longgetACLId()
    
public synchronized  List<Long>getChildIds()
     Returns the child Id's of this node, but only if they are a part of the resultset.
public  List<FxTreeNode>getChildren()
     Returns the children of this node, but only if they are a part of the resultset - use isLeaf(), getDirectChildCount() and getTotalChildCount() to find out if the node has children.
public  intgetDepth()
    
public  intgetDirectChildCount()
    
public  longgetId()
    
public synchronized  FxStringgetLabel()
    
public  FxTreeModegetMode()
    
public  longgetModifiedAt()
    
public  StringgetName()
    
public  longgetParentNodeId()
    
public  StringgetPath()
    
public  intgetPosition()
    
public  FxPKgetReference()
    
public  StringgetTemplate()
    
public  intgetTotalChildCount()
    
public  booleanhasReference()
    
public  booleanhasTemplate()
    
public  inthashCode()
    
public  booleanisActivate()
    
public  booleanisDirty()
    
public  booleanisLeaf()
    
public  booleanisLive()
    
public  booleanisMarkForDelete()
    
public  booleanisMayCreate()
    
public  booleanisMayDelete()
    
public  booleanisMayEdit()
    
public  booleanisMayExport()
    
public  booleanisMayRelate()
    
public  booleanisPartialLoaded()
    
public  booleanisTemporary()
    
public  voidsetActivate(boolean activate)
    
public  FxTreeNodesetMarkForDelete(boolean markForDelete)
    

Field Detail
PARTIAL_LOADED_POS
final public static int PARTIAL_LOADED_POS(Code)



PATH_NOT_LOADED
final public static String PATH_NOT_LOADED(Code)



ROOT_NODE
final public static long ROOT_NODE(Code)
Constant id of the root node



activate
protected boolean activate(Code)



children
protected List<FxTreeNode> children(Code)



label
protected FxString label(Code)



mode
protected FxTreeMode mode(Code)



name
protected String name(Code)



parentNodeId
protected long parentNodeId(Code)



position
protected int position(Code)



reference
protected FxPK reference(Code)



template
protected String template(Code)




Constructor Detail
FxTreeNode
protected FxTreeNode()(Code)
Protected constructor to avoid construction



FxTreeNode
public FxTreeNode(FxTreeMode mode, long id, long parentNodeId, FxPK reference, long ACLId, String name, String path, FxString label, int position, List<FxTreeNode> children, List<Long> childIds, int depth, int totalChildCount, int directChildCount, boolean leaf, boolean dirty, long modifiedAt, String template, boolean mayEdit, boolean mayCreate, boolean mayDelete, boolean mayRelate, boolean mayExport)(Code)
Ctor
Parameters:
  mode - FxTreeMode
Parameters:
  id - node id
Parameters:
  parentNodeId - id of the parent node
Parameters:
  reference - pk of the referenced content
Parameters:
  ACLId - acl of the referenced content
Parameters:
  name - name (part of the path)
Parameters:
  path - complete path from the root node
Parameters:
  label - label
Parameters:
  position - position
Parameters:
  children - child nodes (only available if loaded with #getTree)
Parameters:
  childIds - ids of the child nodes (only available if loaded with #getTree)
Parameters:
  depth - depth of this node relative to the root node
Parameters:
  totalChildCount - total number of children
Parameters:
  directChildCount - number of children attached to this node directly
Parameters:
  leaf - is this node a leaf?
Parameters:
  dirty - dirty flag
Parameters:
  modifiedAt - timestamp of last modification
Parameters:
  template - template
Parameters:
  mayEdit - edit permission for the calling user
Parameters:
  mayCreate - create permission for the calling user
Parameters:
  mayDelete - delete permission for the calling user
Parameters:
  mayRelate - relate permission for the calling user
Parameters:
  mayExport - export permission for the calling user




Method Detail
_addChild
public synchronized void _addChild(FxTreeNode node)(Code)
Internal method only used during loading phase of a tree
Parameters:
  node - child node to add



_applyPath
public void _applyPath(String path)(Code)
Internal method to recursively apply a path from the root to all children
Parameters:
  path - path to apply (includes name already!)



_applyPosition
public void _applyPosition(int position)(Code)
Internal method to recursively apply positions
Parameters:
  position - position to apply to this node



asEditable
public FxTreeNodeEdit asEditable()(Code)
Make this node editable FxTreeNodeEdit



createErrorNode
public static FxTreeNode createErrorNode(long nodeId, String message)(Code)
Create a temporary error node to be used in UI
Parameters:
  nodeId - desired node id
Parameters:
  message - error message FxTreeNode



createNewTemporaryChildNode
public static FxTreeNode createNewTemporaryChildNode(FxTreeNode parentNode)(Code)
Create a temporary node below the given parent node
Parameters:
  parentNode - the parent node temporary node



equals
public boolean equals(Object obj)(Code)



getACLId
public long getACLId()(Code)
Get the id of the ACL assigned to the referenced content id of the ACL assigned to the referenced content



getChildIds
public synchronized List<Long> getChildIds()(Code)
Returns the child Id's of this node, but only if they are a part of the resultset. the child Id's of this node, but only if they are a part of the resultset



getChildren
public List<FxTreeNode> getChildren()(Code)
Returns the children of this node, but only if they are a part of the resultset - use isLeaf(), getDirectChildCount() and getTotalChildCount() to find out if the node has children. This function never returns null, but a empty List when no children are available the children of this node, but only if they are a part of the resultset



getDepth
public int getDepth()(Code)
Returns the depth of the node within the complete tree The root node has depth 1 the depth of the node



getDirectChildCount
public int getDirectChildCount()(Code)
Get the number of child nodes directly attached to this node the number of child nodes directly attached to this node



getId
public long getId()(Code)



getLabel
public synchronized FxString getLabel()(Code)



getMode
public FxTreeMode getMode()(Code)
Get the tree mode (live or edit) tree mode



getModifiedAt
public long getModifiedAt()(Code)
Get the timestamp of the last modification timestamp of the last modification



getName
public String getName()(Code)
Get the name of this node name of this node



getParentNodeId
public long getParentNodeId()(Code)
Get the id of the parent node id of the parent node



getPath
public String getPath()(Code)
Get the path of this node path



getPosition
public int getPosition()(Code)
Get the position of this node position of this node



getReference
public FxPK getReference()(Code)
Get the referenced content referenced content



getTemplate
public String getTemplate()(Code)
Get the template assigned to this node, can be null template assigned to this node, can be null



getTotalChildCount
public int getTotalChildCount()(Code)
Get the number of child nodes attached to this node and all subchildren the number of child nodes attached to this node and all subchildren



hasReference
public boolean hasReference()(Code)
Is a reference set for this node (Description) if a reference is set



hasTemplate
public boolean hasTemplate()(Code)
Is a template assigned to this node? if a template is assigned to this node



hashCode
public int hashCode()(Code)



isActivate
public boolean isActivate()(Code)
Is the node marked as active? (only used in GUI, not persisted!) active status



isDirty
public boolean isDirty()(Code)
Is this node flagged as dirty? node flagged as dirty?



isLeaf
public boolean isLeaf()(Code)
Is this a leaf node? if this node is a leaf node



isLive
public boolean isLive()(Code)
Is this node "live"? if the node is "live"



isMarkForDelete
public boolean isMarkForDelete()(Code)
Is this node marked to be deleted? (only used in GUI, not persisted!) marked for delete



isMayCreate
public boolean isMayCreate()(Code)
ACL: Create permission for the calling user ACL: Create permission for the calling user



isMayDelete
public boolean isMayDelete()(Code)
ACL: Delete permission for the calling user ACL: Delete permission for the calling user



isMayEdit
public boolean isMayEdit()(Code)
ACL: Edit permission for the calling user ACL: Edit permission for the calling user



isMayExport
public boolean isMayExport()(Code)
ACL: Export permission for the calling user ACL: Export permission for the calling user



isMayRelate
public boolean isMayRelate()(Code)
ACL: Relate permission for the calling user ACL: Relate permission for the calling user



isPartialLoaded
public boolean isPartialLoaded()(Code)
Is this FxTreeNode only partially loaded? Loading a (sub)tree is usually performed with partial loading enabled (only the calling users current language filled in the label) if this FxTreeNode is only partially loaded



isTemporary
public boolean isTemporary()(Code)
Is this node temporary only? (only used in GUI, not persisted!) if this node is temporary only



setActivate
public void setActivate(boolean activate)(Code)
Set the active flag of this tree node (only used in GUI, not persisted!)
Parameters:
  activate - activate flag



setMarkForDelete
public FxTreeNode setMarkForDelete(boolean markForDelete)(Code)
Mark to be deleted for UI (only used in GUI, not persisted!)
Parameters:
  markForDelete - delete? this



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.