Java Doc for CustomComponentUtils.java in  » J2EE » ICEfaces-1.6.1 » com » icesoft » faces » component » util » 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 » ICEfaces 1.6.1 » com.icesoft.faces.component.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.icesoft.faces.component.util.CustomComponentUtils

CustomComponentUtils
public class CustomComponentUtils (Code)


Field Summary
final public static  StringEMPTY_STRING
    
final public static  String[]EMPTY_STRING_ARRAY
    
final public static  StringFOOTER_CLASS_ATTR
    
final public static  StringHEADER_CLASS_ATTR
    
final public static  StringHIDDEN_COMMANDLINK_FIELD_NAME
    


Method Summary
public static  voidaddHiddenCommandParameter(UIComponent form, String paramName)
    
public static  ClassclassForName(String type)
     Tries a Class.forName with the context class loader of the current thread first and automatically falls back to the ClassUtils class loader (i.e.
public static  voidcopyHtmlInputTextAttributes(HtmlInputText src, HtmlInputText dest)
    
public static  voiddecodeUIInput(FacesContext facesContext, UIComponent component)
    
public static  DategetDateValue(UIComponent component)
    
public static  StringgetFormName(UIComponent component, FacesContext context)
    
public static  StringgetHiddenCommandLinkFieldName(String formName)
    
public static  StringgetHiddenTreeActionFieldName(String componentId, String formName)
    
public static  StringgetHiddenTreeExpandFieldName(String componentId, String formName)
    
public static  StringgetPathToComponent(UIComponent component)
    
public static  StringgetStringValue(FacesContext facesContext, UIComponent component)
    
public static  booleanisDisabledOrReadOnly(UIComponent component)
    
public static  booleanisEnabledOnUserRole(UIComponent component)
     Gets the comma separated list of enabling user roles from the given component and checks if current user is in one of these roles.
public static  booleanisVisibleOnUserRole(UIComponent component)
     Gets the comma separated list of visibility user roles from the given component and checks if current user is in one of these roles.
public static  ObjectnewInstance(Class clazz)
    
public static  ObjectnewInstance(String type)
    
public static  voidrenderChild(FacesContext facesContext, UIComponent child)
    
public static  voidrenderChildren(FacesContext facesContext, UIComponent component)
    
public static  voidrestoreAncestorState(UIComponent uiComponent)
    
public static  voidrestoreDescendentState(UIComponent uiComponent)
    
public static  ClasssimpleClassForName(String type)
     Same as CustomComponentUtils.classForName(String) , but throws a RuntimeException (FacesException) instead of a ClassNotFoundException.
public static  String[]splitShortString(String str, char separator)
     Split a string into an array of strings arround a character separator.
public static  Stringsubstring(String str, int begin, int end)
    
public static  String[]trim(String[] strings)
    

Field Detail
EMPTY_STRING
final public static String EMPTY_STRING(Code)



EMPTY_STRING_ARRAY
final public static String[] EMPTY_STRING_ARRAY(Code)



FOOTER_CLASS_ATTR
final public static String FOOTER_CLASS_ATTR(Code)



HEADER_CLASS_ATTR
final public static String HEADER_CLASS_ATTR(Code)



HIDDEN_COMMANDLINK_FIELD_NAME
final public static String HIDDEN_COMMANDLINK_FIELD_NAME(Code)





Method Detail
addHiddenCommandParameter
public static void addHiddenCommandParameter(UIComponent form, String paramName)(Code)



classForName
public static Class classForName(String type) throws ClassNotFoundException(Code)
Tries a Class.forName with the context class loader of the current thread first and automatically falls back to the ClassUtils class loader (i.e. the loader of the myfaces.jar lib) if necessary.
Parameters:
  type - fully qualified name of a non-primitive non-array class the corresponding Class
throws:
  NullPointerException - if type is null
throws:
  ClassNotFoundException -



copyHtmlInputTextAttributes
public static void copyHtmlInputTextAttributes(HtmlInputText src, HtmlInputText dest)(Code)



decodeUIInput
public static void decodeUIInput(FacesContext facesContext, UIComponent component)(Code)



getDateValue
public static Date getDateValue(UIComponent component)(Code)



getFormName
public static String getFormName(UIComponent component, FacesContext context)(Code)



getHiddenCommandLinkFieldName
public static String getHiddenCommandLinkFieldName(String formName)(Code)



getHiddenTreeActionFieldName
public static String getHiddenTreeActionFieldName(String componentId, String formName)(Code)



getHiddenTreeExpandFieldName
public static String getHiddenTreeExpandFieldName(String componentId, String formName)(Code)



getPathToComponent
public static String getPathToComponent(UIComponent component)(Code)



getStringValue
public static String getStringValue(FacesContext facesContext, UIComponent component)(Code)



isDisabledOrReadOnly
public static boolean isDisabledOrReadOnly(UIComponent component)(Code)



isEnabledOnUserRole
public static boolean isEnabledOnUserRole(UIComponent component)(Code)
Gets the comma separated list of enabling user roles from the given component and checks if current user is in one of these roles.
Parameters:
  component - a user role aware component true if no user roles are defined for this component or user isin one of these roles, false otherwise



isVisibleOnUserRole
public static boolean isVisibleOnUserRole(UIComponent component)(Code)
Gets the comma separated list of visibility user roles from the given component and checks if current user is in one of these roles.
Parameters:
  component - a user role aware component true if no user roles are defined for this component or user isin one of these roles, false otherwise



newInstance
public static Object newInstance(Class clazz) throws FacesException(Code)



newInstance
public static Object newInstance(String type) throws FacesException(Code)



renderChild
public static void renderChild(FacesContext facesContext, UIComponent child) throws IOException(Code)



renderChildren
public static void renderChildren(FacesContext facesContext, UIComponent component) throws IOException(Code)



restoreAncestorState
public static void restoreAncestorState(UIComponent uiComponent)(Code)



restoreDescendentState
public static void restoreDescendentState(UIComponent uiComponent)(Code)



simpleClassForName
public static Class simpleClassForName(String type)(Code)
Same as CustomComponentUtils.classForName(String) , but throws a RuntimeException (FacesException) instead of a ClassNotFoundException. the corresponding Class
throws:
  NullPointerException - if type is null
throws:
  FacesException - if class not found



splitShortString
public static String[] splitShortString(String str, char separator)(Code)
Split a string into an array of strings arround a character separator. This function will be efficient for short strings, for longer strings, another approach may be better
Parameters:
  str - the string to be split
Parameters:
  separator - the separator character array of string subparts



substring
public static String substring(String str, int begin, int end)(Code)



trim
public static String[] trim(String[] strings)(Code)



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.