Java Doc for Treechildren.java in  » Ajax » zk » org » zkoss » zul » 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 » Ajax » zk » org.zkoss.zul 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.zkoss.zul.impl.XulElement
   org.zkoss.zul.Treechildren

Treechildren
public class Treechildren extends XulElement implements Pageable(Code)
A treechildren.
author:
   tomyeh

Inner Class :protected class ExtraCtrl extends XulElement.ExtraCtrl implements Cropper



Method Summary
public  intgetActivePage()
     Returns the active page (starting from 0).
public  intgetItemCount()
     Returns the number of child Treeitem including all descendants.
public  CollectiongetItems()
     Returns a readonly list of all descending Treeitem (children's children and so on).
public  TreerowgetLinkedTreerow()
     Returns the Treerow that is associated with this treechildren, or null if no such treerow.
public  intgetPageCount()
     Returns the number of pages (at least one).
public  intgetPageSize()
     Returns the page size which controls the number of visible child Treeitem , or -1 if no limitation.
 intgetPageSizeDirectly()
    
public  TreegetTree()
     Returns the Tree instance containing this element.
public  intgetVisibleBegin()
     Returns the index of the first visible child.
public  intgetVisibleEnd()
     Returns the index of the last visible child.
public  booleaninsertBefore(Component child, Component insertBefore)
    
public  voidinvalidate()
    
public  booleanisVisible()
     Returns whether this is visible.
protected  ObjectnewExtraCtrl()
    
public  voidonChildRemoved(Component child)
    
public  voidsetActivePage(int pg)
     Sets the active page (starting from 0).
 voidsetActivePageDirectly(int pg)
     Called by Tree to set the active page directly.
public  voidsetPageSize(int size)
     Sets the page size which controls the number of visible child Treeitem .
Parameters:
  size - the page size.
public  voidsetParent(Component parent)
    
public  voidsmartUpdate(String name, String value)
    



Method Detail
getActivePage
public int getActivePage()(Code)
Returns the active page (starting from 0).
since:
   2.4.1



getItemCount
public int getItemCount()(Code)
Returns the number of child Treeitem including all descendants. The same as Treechildren.getItems .size().

Note: the performance is no good.




getItems
public Collection getItems()(Code)
Returns a readonly list of all descending Treeitem (children's children and so on).

Note: the performance of the size method of returned collection is no good.




getLinkedTreerow
public Treerow getLinkedTreerow()(Code)
Returns the Treerow that is associated with this treechildren, or null if no such treerow. In other words, it is Treeitem.getTreerow of Treechildren.getParent .
since:
   2.4.1
See Also:   Treerow.getLinkedTreechildren



getPageCount
public int getPageCount()(Code)
Returns the number of pages (at least one). Note: there is at least one page even no item at all.
since:
   2.4.1



getPageSize
public int getPageSize()(Code)
Returns the page size which controls the number of visible child Treeitem , or -1 if no limitation.

If Treechildren.setPageSize is called with a non-zero value, this method return the non-zero value. If Treechildren.setPageSize is called with zero, this method returns Tree.getPageSize of Treechildren.getTree .

Default: the same as Treechildren.getTree 's Tree.getPageSize .
since:
   2.4.1
See Also:   Tree.getPageSize
See Also:   Treechildren.setPageSize




getPageSizeDirectly
int getPageSizeDirectly()(Code)



getTree
public Tree getTree()(Code)
Returns the Tree instance containing this element.



getVisibleBegin
public int getVisibleBegin()(Code)
Returns the index of the first visible child.

Used only for component development, not for application developers.
since:
   2.4.1




getVisibleEnd
public int getVisibleEnd()(Code)
Returns the index of the last visible child.

Used only for component development, not for application developers.
since:
   2.4.1




insertBefore
public boolean insertBefore(Component child, Component insertBefore)(Code)



invalidate
public void invalidate()(Code)



isVisible
public boolean isVisible()(Code)
Returns whether this is visible.

Besides depends on Treechildren.setVisible , it also depends on whether all its ancestors is open.




newExtraCtrl
protected Object newExtraCtrl()(Code)



onChildRemoved
public void onChildRemoved(Component child)(Code)



setActivePage
public void setActivePage(int pg) throws WrongValueException(Code)
Sets the active page (starting from 0).
exception:
  WrongValueException - if no such page
since:
   2.4.1



setActivePageDirectly
void setActivePageDirectly(int pg)(Code)
Called by Tree to set the active page directly.



setPageSize
public void setPageSize(int size) throws WrongValueException(Code)
Sets the page size which controls the number of visible child Treeitem .
Parameters:
  size - the page size. If zero, the page size will bethe same as Tree.getPageSize of Treechildren.getTree.In other words, zero means the default page size is used.If negative, all Treeitem are shown.
since:
   2.4.1



setParent
public void setParent(Component parent)(Code)



smartUpdate
public void smartUpdate(String name, String value)(Code)



Methods inherited from org.zkoss.zul.impl.XulElement
public String getAction()(Code)(Java Doc)
public String getActionAttrs()(Code)(Java Doc)
protected String getAllOnClickAttrs(boolean ignoreOnClick)(Code)(Java Doc)
public String getContext()(Code)(Java Doc)
public String getInnerAttrs()(Code)(Java Doc)
public String getOuterAttrs()(Code)(Java Doc)
public String getPopup()(Code)(Java Doc)
public String getTooltip()(Code)(Java Doc)
public void setAction(String action)(Code)(Java Doc)
public void setContext(String context)(Code)(Java Doc)
public void setContext(Popup popup)(Code)(Java Doc)
public void setPopup(String popup)(Code)(Java Doc)
public void setPopup(Popup popup)(Code)(Java Doc)
public void setTooltip(String tooltip)(Code)(Java Doc)
public void setTooltip(Popup popup)(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.