| 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) | | |
Method Summary | |
public boolean | acceptChild(DesignBean parentBean, DesignBean childBean, Class childClass) | public boolean | acceptLink(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 boolean | acceptParent(DesignBean parentBean, DesignBean childBean, Class childClass) | public void | beanChanged(DesignBean bean) | public void | beanContextActivated(DesignBean bean) | public void | beanContextDeactivated(DesignBean bean) | public Result | beanCreatedSetup(DesignBean bean) | public Result | beanDeletedCleanup(DesignBean bean) | public Result | beanPastedSetup(DesignBean bean) | public boolean | canLinkConverterOrValidatorBeans(DesignBean targetBean, Class sourceClass) | public boolean | canLinkConverterOrValidatorBeans(DesignBean targetBean, DesignBean sourceBean) | public void | eventChanged(DesignEvent event) | protected int | findAppropriateColumn(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 int | findAppropriateColumn(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 DesignBean | findCachedRowSetBean(DesignBean dpBean) given a srcBean of type CachedRowSetDataProvider, find it's
CachedRowSet designBean. | protected BeanDescriptor | getBeanDescriptor() | protected BeanInfo | getBeanInfo() Return the BeanInfo class of my getBeanClass(). | protected static Connection | getConnection(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 Class | getConverterClass(int sqlType) Pass in the java.sql.Types type returned by ResultSet.getColumnType()
The appropriate faces converter class is returned. | protected ArrayList | getExportedKeys(ResultSet rowSet, String catalog, String schema, String table) | protected ArrayList | getPrimaryKeys(ResultSet rowSet, String catalog, String schema, String table) | protected PropertyDescriptor | getPropertyDescriptorNamed(String propertyName) | public void | instanceNameChanged(DesignBean bean, String oldInstanceName) | public static boolean | isCachedRowSetDP(Object db) | public static boolean | isConvertible(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 boolean | isResultSetClass(Class sourceClass) | public Result | linkBeans(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 Result | linkBeans(DesignBean targetBean, DesignBean sourceBean, int[] types) | public Result | linkBeans(DesignBean targetBean, DesignBean sourceBean, int[][] types) | public Result | linkConverterOrValidatorBeans(DesignBean targetBean, DesignBean sourceBean) | public static void | maybeSetupConverter(DesignBean selectItemsBean, int sqlDataType) | public static String | maybeSetupDefaultSelectItems(DesignBean selectItemsBean, String valueExpr) | protected void | modifyVirtualFormsOnBeanDeletedCleanup(DesignBean bean) | public void | propertyChanged(DesignProperty prop, Object oldValue) | public Result | selectManyBeanCreated(DesignBean bean) | public Result | selectManyBeanDeleted(DesignBean bean) | public Result | selectManyBeanPasted(DesignBean bean) | public DisplayAction[] | selectManyGetContextItems(DesignBean bean) | public Result | selectManyLinkBeans(DesignBean targetBean, DesignBean sourceBean) | public Result | selectOneBeanCreated(DesignBean bean) | public Result | selectOneBeanDeleted(DesignBean bean) | public Result | selectOneBeanPasted(DesignBean bean) | public DisplayAction[] | selectOneGetContextItems(DesignBean bean) | public Result | selectOneLinkBeans(DesignBean targetBean, DesignBean sourceBean) |
BEAN_DESCRIPTOR_PROPERTY_DESCRIPTOR_MAP_CACHE_KEY | final protected static String BEAN_DESCRIPTOR_PROPERTY_DESCRIPTOR_MAP_CACHE_KEY(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 |
canLinkConverterOrValidatorBeans | public boolean canLinkConverterOrValidatorBeans(DesignBean targetBean, Class sourceClass)(Code) | | |
canLinkConverterOrValidatorBeans | public boolean canLinkConverterOrValidatorBeans(DesignBean targetBean, DesignBean sourceBean)(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.
|
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.
|
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 |
maybeSetupConverter | public static void maybeSetupConverter(DesignBean selectItemsBean, int sqlDataType)(Code) | | |
modifyVirtualFormsOnBeanDeletedCleanup | protected void modifyVirtualFormsOnBeanDeletedCleanup(DesignBean bean)(Code) | | |
|
|