| java.lang.Object org.netbeans.modules.form.MetaComponentCreator
MetaComponentCreator | public class MetaComponentCreator (Code) | | This class represents an access point for adding new components to FormModel.
Its responsibility is to create new meta components (from provided bean
classes) and add them to the FormModel. In some cases, no new component is
created, just modified (e.g. when a border is applied). This class is
intended to process user actions, so all errors are caught and reported here.
author: Tomas Pavek |
Method Summary | |
public boolean | addComponents(Collection<RADComponent> components, RADComponent targetComp) | public boolean | addPrecreatedComponent(RADComponent targetComp, Object constraints) | public static boolean | canAddComponent(Class beanClass, RADComponent targetComp) | public static boolean | canApplyComponent(Class beanClass, RADComponent targetComp) | public RADComponent | copyComponent(RADComponent sourceComp, RADComponent targetComp) Creates a copy of a metacomponent and adds it to FormModel. | public RADComponent | createComponent(ClassSource classSource, RADComponent targetComp, Object constraints) Creates and adds a new metacomponent to FormModel. | RADComponent | createComponent(ClassSource classSource, RADComponent targetComp, Object constraints, boolean exactTargetMatch) | LayoutComponent | createLayoutComponent(RADVisualComponent metacomp) | public LayoutComponent | getPrecreatedLayoutComponent() | public RADVisualComponent | getPrecreatedMetaComponent() | static boolean | isTransparentLayoutComponent(RADComponent metacomp) | public boolean | moveComponent(RADComponent metacomp, RADComponent targetComp) | public RADVisualComponent | precreateVisualComponent(ClassSource classSource) | Class | prepareClass(ClassSource classSource) | void | releasePrecreatedComponent() | static boolean | shouldBeLayoutContainer(RADComponent metacomp) |
copyComponent | public RADComponent copyComponent(RADComponent sourceComp, RADComponent targetComp)(Code) | | Creates a copy of a metacomponent and adds it to FormModel. The new
component is added or applied to the specified target component.
Parameters: sourceComp - component to be copied Parameters: targetComp - target component (where the new component is added) the component if it was successfully created and added (allerrors are reported immediately) |
createComponent | public RADComponent createComponent(ClassSource classSource, RADComponent targetComp, Object constraints)(Code) | | Creates and adds a new metacomponent to FormModel. The new component
is added to target component (if it is ComponentContainer).
Parameters: classSource - ClassSource describing the component class Parameters: constraints - constraints object (for visual components only) Parameters: targetComp - component into which the new component is added the metacomponent if it was successfully created and added (allerrors are reported immediately) |
isTransparentLayoutComponent | static boolean isTransparentLayoutComponent(RADComponent metacomp)(Code) | | |
releasePrecreatedComponent | void releasePrecreatedComponent()(Code) | | |
shouldBeLayoutContainer | static boolean shouldBeLayoutContainer(RADComponent metacomp)(Code) | | |
|
|