| java.lang.Object org.netbeans.modules.visualweb.web.ui.dt.component.util.DesignUtil
DesignUtil | public class DesignUtil (Code) | | Miscellaneous design-time utility methods
author: Edwin Goei author: gjmurphy |
generateCommandEventSetDescriptors | public static EventSetDescriptor[] generateCommandEventSetDescriptors(BeanInfo beanInfo)(Code) | | A utility method that creates an action event descriptors for
command components (components that implement
javax.faces.component.ActionSource ). The event is associated with its
respective JSF handler method (ActionListener.processAction()),
and with its respective property (action ). As a result, if
the user selects a new handler for the event in the properties sheet,
a method with the correct signature will be created, and the corresponding
property's value will be set to a method binding expression that points to
the newly created method.
|
generateInputEventSetDescriptors | public static EventSetDescriptor[] generateInputEventSetDescriptors(BeanInfo beanInfo)(Code) | | A utility method that creates validate and valueChange
event descriptors for input components (components that implement
javax.faces.component.EditableValueHolder ). The events are associated with
their respective JSF handler methods (Validator.validate() and
ValueChangeListener.processValueChange()), and with their respective
properties (valueChangeListener and validator ). As
a result, if the user selects a new handler for the event in the properties sheet,
a method with the correct signature will be created, and the corresponding
property's value will be set to a method binding expression that points to
the newly created method.
|
getNumericalSuffix | public static String getNumericalSuffix(String name)(Code) | | A utility method that locates the numerical suffix of a typical bean
instance name, and returns it. If no numerical suffix is found the
empty string is returned.
|
|
|