| org.netbeans.modules.visualweb.insync.live.DesignBeanNode
DesignBeanNode | public class DesignBeanNode extends AbstractNode implements DesignBeanListener(Code) | | The netbeans node associated with a live bean, either a container or a leaf
author: Carl Quinn |
Inner Class :interface ActionProvider | |
Inner Class :public static class IdLink extends Node.Property | |
Inner Class :public static class PropLink extends Node.Property | |
Inner Class :public static class EventLink extends Node.Property | |
Inner Class :public static class BeanChildren extends Children.Keys implements DesignContextListener,Index | |
Method Summary | |
public void | beanChanged(DesignBean bean) | public void | beanContextActivated(DesignBean designBean) | public void | beanContextDeactivated(DesignBean designBean) | public boolean | canCopy() | public boolean | canCut() | public boolean | canDestroy() | public boolean | canRename() | public Transferable | clipboardCopy() | public Transferable | clipboardCut() | protected void | createPasteTypes(Transferable t, List s) | protected Sheet | createSheet() Creates properties. | public void | destroy() | public void | eventChanged(DesignEvent event) | public Action[] | getActions(boolean context) | public Node.Cookie | getCookie(Class cl) Get a cookie. | Customizer2 | getCustomizer2() | public DesignBean | getDesignBean() | final public String | getDisplayName() XXX Bad design. | public PasteType | getDropType(Transferable t, int action, int index) | public HelpCtx | getHelpCtx() | public Image | getIcon(int type) | static DesignBeanNode | getInstance(DesignBean liveBean) | public NewType[] | getNewTypes() | public Image | getOpenedIcon(int type) | public Action | getPreferredAction() | protected Set | getSheetSet(Sheet sheet, String name, String descr) | public void | instanceNameChanged(DesignBean designBean, String oldInstanceName) | public void | invokeCustomizer() If the bean has a Customizer2, invoke it; otherwise, do nothing. | public static boolean | isValueBindingExpression(String s, boolean containsOk) XXX Copied from designer/FacesSupport.
Return true if the given String represents a value binding expression.
Parameters: s - The string to check Parameters: containsOk - Iff true, consider a String which has a value bindingexpression embedded anywhere as a value binding expression. | protected void | niceFirePropertyChange(String name, Object o, Object n) Fire a propertychange event, making sure it is delivered in the Swing event dispatch thread
so that NB doesn't FREAK out. | public void | propertyChanged(DesignProperty prop, Object oldValue) | public String | toString() |
ACTION_KEY_PAGE_BEAN_ONLY | final public static String ACTION_KEY_PAGE_BEAN_ONLY(Code) | | XXX #94118 Hack to differenciate the presence of the actions in the popup.
There should be different types for the different nodes.
|
GENERAL | final public static String GENERAL(Code) | | Name of property set for general properties
|
PROPERTY_ID_DISPLAY | final public static String PROPERTY_ID_DISPLAY(Code) | | |
dataObject | protected DataObject dataObject(Code) | | |
beanContextActivated | public void beanContextActivated(DesignBean designBean)(Code) | | |
beanContextDeactivated | public void beanContextDeactivated(DesignBean designBean)(Code) | | |
canCopy | public boolean canCopy()(Code) | | Can this node be copied?
true |
canCut | public boolean canCut()(Code) | | Can this node be cut?
false |
canDestroy | public boolean canDestroy()(Code) | | |
canRename | public boolean canRename()(Code) | | |
createSheet | protected Sheet createSheet()(Code) | | Creates properties.
|
getCookie | public Node.Cookie getCookie(Class cl)(Code) | | Get a cookie. Call super first, but if null, delegate to
the associated data object (if any). The delegated to data object
is generally the file representing the container for the bean.
|
getDesignBean | public DesignBean getDesignBean()(Code) | | Return the live bean that this node is representing
|
getDisplayName | final public String getDisplayName()(Code) | | XXX Bad design. Getter shouldn't be overriden, instead there should be listening on changes
of the bean name, but they are missing.
The nodes should display the component name. This ensures that when you're looking at the
node in the tray for example (an explorer which shows the node names) you see the instance
name.)
|
getHelpCtx | public HelpCtx getHelpCtx()(Code) | | |
getNewTypes | public NewType[] getNewTypes()(Code) | | |
getOpenedIcon | public Image getOpenedIcon(int type)(Code) | | |
invokeCustomizer | public void invokeCustomizer()(Code) | | If the bean has a Customizer2, invoke it; otherwise, do nothing.
|
isValueBindingExpression | public static boolean isValueBindingExpression(String s, boolean containsOk)(Code) | | XXX Copied from designer/FacesSupport.
Return true if the given String represents a value binding expression.
Parameters: s - The string to check Parameters: containsOk - Iff true, consider a String which has a value bindingexpression embedded anywhere as a value binding expression. For example,"You are #{Session1.age} years old" will return true for this methodif containsOk is set, and false otherwise. If false, only considerStrings that begin with a value binding expression as beinga value binding expression. True iff the given expression is a value binding expressionaccording to the type indicated by containsOk. |
niceFirePropertyChange | protected void niceFirePropertyChange(String name, Object o, Object n)(Code) | | Fire a propertychange event, making sure it is delivered in the Swing event dispatch thread
so that NB doesn't FREAK out.
Parameters: name - Parameters: o - Parameters: n - |
|
|