| java.lang.Object org.netbeans.modules.visualweb.web.ui.dt.AbstractDesignInfo org.netbeans.modules.visualweb.web.ui.dt.component.LabelDesignInfo
LabelDesignInfo | public class LabelDesignInfo extends AbstractDesignInfo (Code) | | Design time behavior for a Label component. The
following behavior is provided:
- When component is created, default the
text property to the
component's display name, and the labelLevel to "3".
- Allow the component to be linked to other components that implement
EditableValueHolder . When linked, the label's
for property will be set to the id of the
target component. If the target component has a lable property already,
a display action is returned that asks the user if the label should
be transfered. If the user chooses to transfer the label, the label
and labelLevel property values are moved.
- If the component's
for property is modified,
requiredIndicator property is reset to reflect the value of
the linked input component's requried property.
|
Constructor Summary | |
public | LabelDesignInfo() Construct a new LabelDesignInfo instance. |
LabelDesignInfo | public LabelDesignInfo()(Code) | | Construct a new LabelDesignInfo instance.
|
acceptChild | public boolean acceptChild(DesignBean parentBean, DesignBean childBean, Class childClass)(Code) | | Returns true if child is an instance of UIParameter.
|
acceptLink | public boolean acceptLink(DesignBean targetBean, DesignBean sourceBean, Class sourceClass)(Code) | | Returns true if source bean implements EditaleValueHolder.
Parameters: targetBean - Target Label bean Parameters: sourceBean - Source bean (or null ) Parameters: sourceClass - Class of source object being dropped |
beanCreatedSetup | public Result beanCreatedSetup(DesignBean bean)(Code) | | DesignBean for the newly created instance |
linkBeans | public Result linkBeans(DesignBean targetBean, DesignBean sourceBean)(Code) | | If a component that implements EditableValueHolder is
linked to us, update our for property such that it contains
the component's id. Links from all other types of components are treated
as no-ops.
Parameters: targetBean - Target Label bean Parameters: sourceBean - Source bean (or null ) |
Fields inherited from org.netbeans.modules.visualweb.web.ui.dt.AbstractDesignInfo | final public static String DECORATION_ICON(Code)(Java Doc)
|
Methods inherited from org.netbeans.modules.visualweb.web.ui.dt.AbstractDesignInfo | public boolean acceptChild(DesignBean parentBean, DesignBean childBean, Class childClass)(Code)(Java Doc) public boolean acceptLink(DesignBean targetBean, DesignBean sourceBean, Class sourceClass)(Code)(Java Doc) public boolean acceptParent(DesignBean parentBean, DesignBean childBean, Class childClass)(Code)(Java Doc) public void beanChanged(DesignBean bean)(Code)(Java Doc) public void beanContextActivated(DesignBean bean)(Code)(Java Doc) public void beanContextDeactivated(DesignBean bean)(Code)(Java Doc) public Result beanCreatedSetup(DesignBean bean)(Code)(Java Doc) public Result beanDeletedCleanup(DesignBean bean)(Code)(Java Doc) public Result beanPastedSetup(DesignBean bean)(Code)(Java Doc) public void deleteConverter(DesignBean designBean)(Code)(Java Doc) public void eventChanged(DesignEvent event)(Code)(Java Doc) public Class getBeanClass()(Code)(Java Doc) protected BeanDescriptor getBeanDescriptor()(Code)(Java Doc) protected BeanInfo getBeanInfo() throws IntrospectionException(Code)(Java Doc) public DisplayAction[] getContextItems(DesignBean bean)(Code)(Java Doc) public DisplayActionSet getContextItemsExt(DesignBean bean)(Code)(Java Doc) protected static DesignBean getConverterBean(DesignBean designBean)(Code)(Java Doc) protected static DesignBean getConverterBean(FacesDesignContext context, String expression)(Code)(Java Doc) public static Class getConverterClass(Class type)(Code)(Java Doc) protected static String getConverterName(DesignBean designBean)(Code)(Java Doc) protected DesignProperty getDefaultBindingProperty(DesignBean targetBean)(Code)(Java Doc) protected PropertyDescriptor getPropertyDescriptor(String name)(Code)(Java Doc) protected PropertyDescriptor[] getPropertyDescriptors()(Code)(Java Doc) public void instanceNameChanged(DesignBean bean, String oldInstanceName)(Code)(Java Doc) protected static boolean isSunWebUIContext(DesignBean bean)(Code)(Java Doc) public Result linkBeans(DesignBean targetBean, DesignBean sourceBean)(Code)(Java Doc) public Result linkDataProviderToListSelector(FacesDesignProperty property, DesignBean dataBean)(Code)(Java Doc) public Result linkDataProviderToSingleton(FacesDesignProperty property, DesignBean dataBean)(Code)(Java Doc) public Result linkDataProviderToStringListSelector(FacesDesignProperty property, DesignBean dataBean)(Code)(Java Doc) public void modifyConverter(DesignProperty property)(Code)(Java Doc) public void propertyChanged(DesignProperty property, Object oldValue)(Code)(Java Doc)
|
|
|