Java Doc for HtmlTreeControl.java in  » J2EE » Sofia » com » salmonllc » html » 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 » Sofia » com.salmonllc.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.salmonllc.html.HtmlComponent
      com.salmonllc.html.HtmlTreeControl

HtmlTreeControl
public class HtmlTreeControl extends HtmlComponent implements TreeTraversalCallBack,java.io.Serializable(Code)
This class is used to place a tree control.
See Also:   com.salmonllc.html.treeControl



Constructor Summary
public  HtmlTreeControl(String name, HtmlPage p)
     Constructs a new TreeControl.
public  HtmlTreeControl(String name, String theme, HtmlPage p)
     Constructs a new TreeControl with a theme.

Method Summary
public  voidaddPropertyExpression(Object comp, String propertyName, DataStoreBuffer dsb, DataStoreExpression propExpression)
     This method will add a property expression to the HtmlTree. The propExpression will be evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set.
public  voidaddPropertyExpression(Object comp, String propertyName, DataStoreBuffer dsb, String expression)
     The propExpression will be evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set.
public  voidaddPropertyExpression(Object comp, String propertyName, DataStoreEvaluator expEval)
     The propExpression will be evaluated by the evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set.
public  voidaddSubmitListener(SubmitListener t)
     Adds a listener that will be notified if the tree is submitted.
public  voidaddTreeListener(TreeListener t)
     Adds a listener that will be notified if a tree node is expanded or contracted.
public  voidcallBack(TreeBuffer tb, PrintWriter p)
     This method is used internally by the tree control and should not be executed directly.
public  voidclearBuffer()
    
public  booleanexecuteEvent(int type)
    
public  voidgenerateHTML(PrintWriter writer, int rowNo)
    
public  booleangetAutoScroll()
    
public  booleangetClickSort()
    
public  StringgetFontEndTag()
     This method gets the end font tag for the component.
public  StringgetFontStartTag()
     This method gets the start font tag for the component.
public  StringgetTheme()
    
public  TreeBuffergetTreeBuffer()
     This method returns the tree buffer that this component uses.
public  StringgetWidth()
    
public  booleanprocessParms(Hashtable ht, int rowNo)
    
public  voidprocessPropertyExpressions(int row)
    
public  voidremoveSubmitListener(SubmitListener t)
     Removes a submit listener.
public  voidremoveTreeListener(TreeListener t)
     Removes a tree listener.
public  voidreset()
     Adds a listener that will be notified if the tree is submitted.
public  voidsetAutoScroll(boolean b)
    
public  voidsetClickSort(boolean b)
    
public  voidsetFont(String font)
     This method will load the font start and end tags from the page properties object.See the Constants at the top of the class for valid values to pass to this method.
public  voidsetFontEndTag(String value)
     This method sets the end font tag for the component.
public  voidsetFontStartTag(String value)
     This method sets the start font tag for the component.
public  voidsetSystemImages(String expandImage, String contractImage, String nullImage)
     This method sets the images that will appear on every tree item.
public  voidsetTargetFrame(String f)
     This method sets the frame that will be effected when the user selects an item in the tree.
public  voidsetTheme(String theme)
     This method sets the property theme for the component.
public  voidsetTreeBuffer(TreeBuffer tb)
     This method sets the tree buffer that this component uses.
public  voidsetUsePathForClickSort(boolean usePath)
    
public  voidsetWidth(String string)
    
public  voidsort(int sortColumn, int sortPathDir, int sortDir)
    
public  voidsort(int sortColumn, int sortDir)
    
public  voidsort()
    


Constructor Detail
HtmlTreeControl
public HtmlTreeControl(String name, HtmlPage p)(Code)
Constructs a new TreeControl.



HtmlTreeControl
public HtmlTreeControl(String name, String theme, HtmlPage p)(Code)
Constructs a new TreeControl with a theme.




Method Detail
addPropertyExpression
public void addPropertyExpression(Object comp, String propertyName, DataStoreBuffer dsb, DataStoreExpression propExpression) throws NoSuchMethodException, DataStoreException(Code)
This method will add a property expression to the HtmlTree. The propExpression will be evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set. The component must have a corresponding setProperty method or this method will throw a NoSuchMethodException
Parameters:
  propExpression - com.salmonllc.html.PropertyExpression The instance of PropertyExpression that should do the evaluating.
exception:
  java.lang.NoSuchMethodException - The exception description.
exception:
  com.salmonllc.sql.DataStoreException - The exception description.



addPropertyExpression
public void addPropertyExpression(Object comp, String propertyName, DataStoreBuffer dsb, String expression) throws NoSuchMethodException, DataStoreException(Code)
The propExpression will be evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set. The component must have a corresponding setProperty method or this method will throw a NoSuchMethodException
Parameters:
  expression - java.lang.String The datastore expression to evaluate
exception:
  java.lang.NoSuchMethodException - The exception description.
exception:
  com.salmonllc.sql.DataStoreException - The exception description.



addPropertyExpression
public void addPropertyExpression(Object comp, String propertyName, DataStoreEvaluator expEval) throws NoSuchMethodException, DataStoreException(Code)
The propExpression will be evaluated by the evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set. The component must have a corresponding setProperty method or this method will throw a NoSuchMethodException
Parameters:
  expEval - DataStoreEvaluator The datastore evaluator that evaluates the expression
exception:
  java.lang.NoSuchMethodException - The exception description.
exception:
  com.salmonllc.sql.DataStoreException - The exception description.



addSubmitListener
public void addSubmitListener(SubmitListener t)(Code)
Adds a listener that will be notified if the tree is submitted.



addTreeListener
public void addTreeListener(TreeListener t)(Code)
Adds a listener that will be notified if a tree node is expanded or contracted.



callBack
public void callBack(TreeBuffer tb, PrintWriter p)(Code)
This method is used internally by the tree control and should not be executed directly.



clearBuffer
public void clearBuffer()(Code)
This method will remove all elements from the Tree



executeEvent
public boolean executeEvent(int type) throws Exception(Code)



generateHTML
public void generateHTML(PrintWriter writer, int rowNo) throws Exception(Code)



getAutoScroll
public boolean getAutoScroll()(Code)
true if the tree will automatically scroll to the location of the previous submit



getClickSort
public boolean getClickSort()(Code)
Returns whether click sort on the heading components is enabled



getFontEndTag
public String getFontEndTag()(Code)
This method gets the end font tag for the component.



getFontStartTag
public String getFontStartTag()(Code)
This method gets the start font tag for the component.



getTheme
public String getTheme()(Code)
Returns the theme the tree is using



getTreeBuffer
public TreeBuffer getTreeBuffer()(Code)
This method returns the tree buffer that this component uses. The tree buffer is the class that maintains the state of the items on the tree.



getWidth
public String getWidth()(Code)
the width of the tree table



processParms
public boolean processParms(Hashtable ht, int rowNo) throws Exception(Code)



processPropertyExpressions
public void processPropertyExpressions(int row)(Code)



removeSubmitListener
public void removeSubmitListener(SubmitListener t)(Code)
Removes a submit listener.



removeTreeListener
public void removeTreeListener(TreeListener t)(Code)
Removes a tree listener.



reset
public void reset()(Code)
Adds a listener that will be notified if the tree is submitted.



setAutoScroll
public void setAutoScroll(boolean b)(Code)
set to true for thee tree to automatically scroll page to the location it was on as of the previous submit



setClickSort
public void setClickSort(boolean b)(Code)
Set to true to allow heading components to do a click sort



setFont
public void setFont(String font)(Code)
This method will load the font start and end tags from the page properties object.See the Constants at the top of the class for valid values to pass to this method.



setFontEndTag
public void setFontEndTag(String value)(Code)
This method sets the end font tag for the component.



setFontStartTag
public void setFontStartTag(String value)(Code)
This method sets the start font tag for the component.



setSystemImages
public void setSystemImages(String expandImage, String contractImage, String nullImage)(Code)
This method sets the images that will appear on every tree item. It must be called before the tree can be used.
Parameters:
  expandImage - The image to use to expand a tree item.
Parameters:
  contractImage - The image to use to contract a tree item.
Parameters:
  nullImage - The image to use if a tree item can't be expanded or contracted.



setTargetFrame
public void setTargetFrame(String f)(Code)
This method sets the frame that will be effected when the user selects an item in the tree.



setTheme
public void setTheme(String theme)(Code)
This method sets the property theme for the component.
Parameters:
  theme - The theme to use.



setTreeBuffer
public void setTreeBuffer(TreeBuffer tb)(Code)
This method sets the tree buffer that this component uses. The tree buffer is the class that maintains the state of the items on the tree.



setUsePathForClickSort
public void setUsePathForClickSort(boolean usePath)(Code)
For a click sort, decide whether or not the first column (tree path) takes precidence to the column being sorted



setWidth
public void setWidth(String string)(Code)
sets the width of the table



sort
public void sort(int sortColumn, int sortPathDir, int sortDir)(Code)
Sort the tree
Parameters:
  column - the number of the header column to sort on (0 for path name only sort)
Parameters:
  pathDir - the sort direction for the tree path (first column) to sort on TreeBuffer.SORT_ASC or TreeBuffer.SORT_DES or TreeBuffer.SORT_ANY to not use a path sort
Parameters:
  dir - the direction to sort the specified column on SORT_ASC or SORT_DES if column is not zero



sort
public void sort(int sortColumn, int sortDir)(Code)
Sort the tree on a column
Parameters:
  column - the number of the header column to sort on (0 for path name only sort)
Parameters:
  dir - the direction to sort the specified column on SORT_ASC or SORT_DES if column is not zero



sort
public void sort()(Code)



Fields inherited from com.salmonllc.html.HtmlComponent
final public static int DISABLED_ATTRIBUTE_USE_NEVER(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_ON_SUPPORTED_BROWSERS(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_SYSTEM_DEFAULT(Code)(Java Doc)
final public static int EVENT_NONE(Code)(Java Doc)
final public static int EVENT_OTHER(Code)(Java Doc)
final public static int EVENT_SUBMIT(Code)(Java Doc)
protected String _class(Code)(Java Doc)
String _fullName(Code)(Java Doc)
protected boolean _generateNewline(Code)(Java Doc)
String _name(Code)(Java Doc)
protected HtmlComponent _parent(Code)(Java Doc)
protected boolean _visible(Code)(Java Doc)
final protected static boolean debug(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlComponent
public void doBinding() throws Exception(Code)(Java Doc)
public String encodeURL(String url)(Code)(Java Doc)
public StringBuffer encodeURL(StringBuffer url)(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
public static String fixSpecialHTMLCharacters(String input)(Code)(Java Doc)
abstract public void generateHTML(PrintWriter p, int rowNo) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)(Java Doc)
protected String generateImageURL()(Code)(Java Doc)
public void generateInitialHTML(PrintWriter p) throws Exception(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public String getDataSource()(Code)(Java Doc)
public int getFormIndex()(Code)(Java Doc)
public String getFormString()(Code)(Java Doc)
public String getFullName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public HtmlPage getPage()(Code)(Java Doc)
public HtmlComponent getParent()(Code)(Java Doc)
protected String getPortletNameSpace()(Code)(Java Doc)
protected String getSiteMapEntryName(String url)(Code)(Java Doc)
public String getTheme()(Code)(Java Doc)
public int getUseDisabledAttribute()(Code)(Java Doc)
public boolean getVisible()(Code)(Java Doc)
public boolean getVisible(boolean checkParents)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setClassName(String sClass)(Code)(Java Doc)
public void setDataSource(String dataSource)(Code)(Java Doc)
public void setFormIndex(int formIndex)(Code)(Java Doc)
public void setGenerateNewline(boolean enable)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPage(HtmlPage p)(Code)(Java Doc)
public void setParent(HtmlComponent parent)(Code)(Java Doc)
public void setTheme(String theme)(Code)(Java Doc)
public void setUseDisabledAttribute(int i)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String translateSiteMapURL(String url)(Code)(Java Doc)
protected boolean useDisabledAttribute()(Code)(Java Doc)

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.