Java Doc for HtmlDesignInfoBase.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » faces » dt » 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 » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.faces.dt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.faces.dt.HtmlDesignInfoBase

All known Subclasses:   org.netbeans.modules.visualweb.faces.dt.component.html.HtmlFormDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlCommandLinkDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlInputHiddenDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlMessageDesignInfo,  org.netbeans.modules.visualweb.faces.dt.component.html.HtmlPanelGroupDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlOutputTextDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlSelectDesignInfoBase,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlMessagesDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlOutputLinkDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlMessagesDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlSelectBooleanCheckboxDesignInfo,  org.netbeans.modules.visualweb.faces.dt.component.html.HtmlPanelGridDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlSelectDesignInfoBase,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlInputTextDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlInputHiddenDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlInputSecretDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlMessageDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlInputTextareaDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlOutputTextDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlCommandLinkDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlCommandButtonDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlGraphicImageDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlGraphicImageDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlInputSecretDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlCommandButtonDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlSelectBooleanCheckboxDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlOutputLinkDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_1.component.html.HtmlInputTextDesignInfo,  org.netbeans.modules.visualweb.faces.dt_1_2.component.html.HtmlInputTextareaDesignInfo,
HtmlDesignInfoBase
abstract public class HtmlDesignInfoBase implements DesignInfo(Code)


Field Summary
final protected static  StringBEAN_DESCRIPTOR_PROPERTY_DESCRIPTOR_MAP_CACHE_KEY
    


Method Summary
public  booleanacceptChild(DesignBean parentBean, DesignBean childBean, Class childClass)
    
public  booleanacceptLink(DesignBean targetBean, DesignBean sourceBean, Class sourceClass)
     This method is called when an object from a design surface or palette is being dragged 'over' a JavaBean type handled by this DesignInfo.
public  booleanacceptParent(DesignBean parentBean, DesignBean childBean, Class childClass)
    
public  voidbeanChanged(DesignBean bean)
    
public  voidbeanContextActivated(DesignBean bean)
    
public  voidbeanContextDeactivated(DesignBean bean)
    
public  ResultbeanCreatedSetup(DesignBean bean)
    
public  ResultbeanDeletedCleanup(DesignBean bean)
    
public  ResultbeanPastedSetup(DesignBean bean)
    
public  booleancanLinkConverterOrValidatorBeans(DesignBean targetBean, Class sourceClass)
    
public  booleancanLinkConverterOrValidatorBeans(DesignBean targetBean, DesignBean sourceBean)
    
public  voideventChanged(DesignEvent event)
    
protected  intfindAppropriateColumn(ResultSetMetaData rsmd, int[] types)
     findAppropriateColumn finds an appropriate column to bind to in a resultset. Pass an array of SQL types (java.sql.Types) and this method will return the first column in the resultset that matches any of the types in the array.
protected  intfindAppropriateColumn(ResultSetMetaData rsmd, int[][] types)
     findAppropriateColumn finds an appropriate column to bind to in a resultset. Pass an array of arrays of SQL types (java.sql.Types).
public static  DesignBeanfindCachedRowSetBean(DesignBean dpBean)
     given a srcBean of type CachedRowSetDataProvider, find it's CachedRowSet designBean.
protected  BeanDescriptorgetBeanDescriptor()
    
protected  BeanInfogetBeanInfo()
     Return the BeanInfo class of my getBeanClass().
protected static  ConnectiongetConnection(RowSet rs)
    
public  DisplayAction[]getContextItems(DesignBean bean)
     Returns the list (or hierarchy) of items to be included in a right-click context menu for this bean at design-time.
public static  ClassgetConverterClass(int sqlType)
     Pass in the java.sql.Types type returned by ResultSet.getColumnType() The appropriate faces converter class is returned.
protected  ArrayListgetExportedKeys(ResultSet rowSet, String catalog, String schema, String table)
    
protected  ArrayListgetPrimaryKeys(ResultSet rowSet, String catalog, String schema, String table)
    
protected  PropertyDescriptorgetPropertyDescriptorNamed(String propertyName)
    
public  voidinstanceNameChanged(DesignBean bean, String oldInstanceName)
    
public static  booleanisCachedRowSetDP(Object db)
    
public static  booleanisConvertible(int sqlType)
     Pass in the java.sql.Types type returned by ResultSet.getColumnType() True is returned if a converter is available or if a converter is not needed. Note: The information is returned is a best guess.
public static  booleanisResultSetClass(Class sourceClass)
    
public  ResultlinkBeans(DesignBean targetBean, DesignBean sourceBean)
    

This method is called when an object from a design surface or palette has been dropped 'on' a JavaBean type handled by this DesignInfo (to establish a link).

public  ResultlinkBeans(DesignBean targetBean, DesignBean sourceBean, int[] types)
    
public  ResultlinkBeans(DesignBean targetBean, DesignBean sourceBean, int[][] types)
    
public  ResultlinkConverterOrValidatorBeans(DesignBean targetBean, DesignBean sourceBean)
    
public static  voidmaybeSetupConverter(DesignBean selectItemsBean, int sqlDataType)
    
public static  StringmaybeSetupDefaultSelectItems(DesignBean selectItemsBean, String valueExpr)
    
protected  voidmodifyVirtualFormsOnBeanDeletedCleanup(DesignBean bean)
    
public  voidpropertyChanged(DesignProperty prop, Object oldValue)
    
public  ResultselectManyBeanCreated(DesignBean bean)
    
public  ResultselectManyBeanDeleted(DesignBean bean)
    
public  ResultselectManyBeanPasted(DesignBean bean)
    
public  DisplayAction[]selectManyGetContextItems(DesignBean bean)
    
public  ResultselectManyLinkBeans(DesignBean targetBean, DesignBean sourceBean)
    
public  ResultselectOneBeanCreated(DesignBean bean)
    
public  ResultselectOneBeanDeleted(DesignBean bean)
    
public  ResultselectOneBeanPasted(DesignBean bean)
    
public  DisplayAction[]selectOneGetContextItems(DesignBean bean)
    
public  ResultselectOneLinkBeans(DesignBean targetBean, DesignBean sourceBean)
    

Field Detail
BEAN_DESCRIPTOR_PROPERTY_DESCRIPTOR_MAP_CACHE_KEY
final protected static String BEAN_DESCRIPTOR_PROPERTY_DESCRIPTOR_MAP_CACHE_KEY(Code)





Method Detail
acceptChild
public boolean acceptChild(DesignBean parentBean, DesignBean childBean, Class childClass)(Code)



acceptLink
public boolean acceptLink(DesignBean targetBean, DesignBean sourceBean, Class sourceClass)(Code)
This method is called when an object from a design surface or palette is being dragged 'over' a JavaBean type handled by this DesignInfo. If the 'sourceClass' is of interest to the 'targetBean' instance (they can be "linked"), this method should return true. The user will then be presented with visual cues that this is an appropriate place to 'drop' the item and establish a link. If the user decides to drop the item on this targetBean, the 'linkBeans' method will be called.
Parameters:
  targetBean - The DesignBean instance that the user is 'hovering' the mouse over
Parameters:
  sourceBean - The DesignBean instance that the user may potentially 'drop' to link (may be null)
Parameters:
  sourceClass - The class type of the object that the user may potentially 'drop' to link true if the 'targetBean' cares to have an instance of type 'sourceClass'linked to it, false if not
See Also:   linkBeans



acceptParent
public boolean acceptParent(DesignBean parentBean, DesignBean childBean, Class childClass)(Code)



beanChanged
public void beanChanged(DesignBean bean)(Code)



beanContextActivated
public void beanContextActivated(DesignBean bean)(Code)



beanContextDeactivated
public void beanContextDeactivated(DesignBean bean)(Code)



beanCreatedSetup
public Result beanCreatedSetup(DesignBean bean)(Code)



beanDeletedCleanup
public Result beanDeletedCleanup(DesignBean bean)(Code)



beanPastedSetup
public Result beanPastedSetup(DesignBean bean)(Code)



canLinkConverterOrValidatorBeans
public boolean canLinkConverterOrValidatorBeans(DesignBean targetBean, Class sourceClass)(Code)



canLinkConverterOrValidatorBeans
public boolean canLinkConverterOrValidatorBeans(DesignBean targetBean, DesignBean sourceBean)(Code)



eventChanged
public void eventChanged(DesignEvent event)(Code)



findAppropriateColumn
protected int findAppropriateColumn(ResultSetMetaData rsmd, int[] types) throws SQLException(Code)
findAppropriateColumn finds an appropriate column to bind to in a resultset. Pass an array of SQL types (java.sql.Types) and this method will return the first column in the resultset that matches any of the types in the array. If some types have a higher priority, use the version of findAppropriateColumn that takes an array of array types. If a match is found, the column position (1 based) in the resultset will be returned. If no match is found, -1 is returned.



findAppropriateColumn
protected int findAppropriateColumn(ResultSetMetaData rsmd, int[][] types) throws SQLException(Code)
findAppropriateColumn finds an appropriate column to bind to in a resultset. Pass an array of arrays of SQL types (java.sql.Types). This method will first attempt to match any of the types in the first array. If no columns match, it will proceed to the next array. If a match is found, the column position (1 based) in the resultset will be returned. If no match is found, -1 is returned. Example: private static final int[][] TYPES = new int[][] { {Types.INTEGER, Types.SMALLINT}, // First try to match on these {Types.BIT, Types.TINYINT} // If no match above, try to match on these }; public Result linkBeans(DesignBean targetBean, DesignBean sourceBean) { return linkBeans(targetBean, sourceBean, TYPES); }



findCachedRowSetBean
public static DesignBean findCachedRowSetBean(DesignBean dpBean)(Code)
given a srcBean of type CachedRowSetDataProvider, find it's CachedRowSet designBean. return null if not found.



getBeanDescriptor
protected BeanDescriptor getBeanDescriptor()(Code)



getBeanInfo
protected BeanInfo getBeanInfo() throws IntrospectionException(Code)
Return the BeanInfo class of my getBeanClass(). May return nil if an error is encountered on retrieving BeanInfo.
throws:
  IntrospectionException -



getConnection
protected static Connection getConnection(RowSet rs) throws SQLException(Code)



getContextItems
public DisplayAction[] getContextItems(DesignBean bean)(Code)
Returns the list (or hierarchy) of items to be included in a right-click context menu for this bean at design-time.
Parameters:
  bean - The DesignBean that a user has right-clicked on An array of DisplayAction objects representing a context menu to display to the user



getConverterClass
public static Class getConverterClass(int sqlType)(Code)
Pass in the java.sql.Types type returned by ResultSet.getColumnType() The appropriate faces converter class is returned. If null is returned, it may be because no converter exists or because a converter is not needed. If you want to know which case it is, call isConvertible(int sqlType) this will return true if a converter is available or a converter is not needed. The converter choice is based on the JDBC 3.0 Specification, Appendix B, "Data Type Conversion Tables", Table B-1.



getExportedKeys
protected ArrayList getExportedKeys(ResultSet rowSet, String catalog, String schema, String table)(Code)



getPrimaryKeys
protected ArrayList getPrimaryKeys(ResultSet rowSet, String catalog, String schema, String table)(Code)



getPropertyDescriptorNamed
protected PropertyDescriptor getPropertyDescriptorNamed(String propertyName)(Code)



instanceNameChanged
public void instanceNameChanged(DesignBean bean, String oldInstanceName)(Code)



isCachedRowSetDP
public static boolean isCachedRowSetDP(Object db)(Code)
methods for using cachedRowSets and CachedRowSetDataProviders



isConvertible
public static boolean isConvertible(int sqlType)(Code)
Pass in the java.sql.Types type returned by ResultSet.getColumnType() True is returned if a converter is available or if a converter is not needed. Note: The information is returned is a best guess. This will be further refined post-RR. Also, more converters will be written post-RR.



isResultSetClass
public static boolean isResultSetClass(Class sourceClass)(Code)



linkBeans
public Result linkBeans(DesignBean targetBean, DesignBean sourceBean)(Code)

This method is called when an object from a design surface or palette has been dropped 'on' a JavaBean type handled by this DesignInfo (to establish a link). This method will not be called unless the corresponding 'acceptLink' method call returned true. Typically, this results in property settings on potentially both of the DesignBean objects.


Parameters:
  targetBean - The target DesignBean instance that the user has 'dropped' an object onto toestablish a link
Parameters:
  sourceBean - The DesignBean instance that has been 'dropped' A Result object, indicating success or failure and including messages for the user
See Also:   acceptLink



linkBeans
public Result linkBeans(DesignBean targetBean, DesignBean sourceBean, int[] types)(Code)



linkBeans
public Result linkBeans(DesignBean targetBean, DesignBean sourceBean, int[][] types)(Code)



linkConverterOrValidatorBeans
public Result linkConverterOrValidatorBeans(DesignBean targetBean, DesignBean sourceBean)(Code)



maybeSetupConverter
public static void maybeSetupConverter(DesignBean selectItemsBean, int sqlDataType)(Code)



maybeSetupDefaultSelectItems
public static String maybeSetupDefaultSelectItems(DesignBean selectItemsBean, String valueExpr)(Code)



modifyVirtualFormsOnBeanDeletedCleanup
protected void modifyVirtualFormsOnBeanDeletedCleanup(DesignBean bean)(Code)



propertyChanged
public void propertyChanged(DesignProperty prop, Object oldValue)(Code)



selectManyBeanCreated
public Result selectManyBeanCreated(DesignBean bean)(Code)



selectManyBeanDeleted
public Result selectManyBeanDeleted(DesignBean bean)(Code)



selectManyBeanPasted
public Result selectManyBeanPasted(DesignBean bean)(Code)



selectManyGetContextItems
public DisplayAction[] selectManyGetContextItems(DesignBean bean)(Code)



selectManyLinkBeans
public Result selectManyLinkBeans(DesignBean targetBean, DesignBean sourceBean)(Code)



selectOneBeanCreated
public Result selectOneBeanCreated(DesignBean bean)(Code)



selectOneBeanDeleted
public Result selectOneBeanDeleted(DesignBean bean)(Code)



selectOneBeanPasted
public Result selectOneBeanPasted(DesignBean bean)(Code)



selectOneGetContextItems
public DisplayAction[] selectOneGetContextItems(DesignBean bean)(Code)



selectOneLinkBeans
public Result selectOneLinkBeans(DesignBean targetBean, DesignBean sourceBean)(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.