当前页面:
在线文档首页 >
NetBeans API Javadoc 5.0.0
ConstructorElementNode (NetBeans Java Hierarchy API) - NetBeans API Javadoc 5.0.0
org.openide.src.nodes
Class ConstructorElementNode
java.lang.Object
java.beans.FeatureDescriptor
org.openide.nodes.Node
org.openide.nodes.AbstractNode
org.openide.src.nodes.ElementNode
org.openide.src.nodes.MemberElementNode
org.openide.src.nodes.ConstructorElementNode
- All Implemented Interfaces:
- ElementProperties, HelpCtx.Provider, IconStrings, Lookup.Provider
- Direct Known Subclasses:
- MethodElementNode
- public class ConstructorElementNode
- extends MemberElementNode
Node representing a constructor.
- See Also:
ConstructorElement
Fields inherited from class org.openide.src.nodes.ElementNode |
CLASS, CONSTRUCTOR_PACKAGE, CONSTRUCTOR_PRIVATE, CONSTRUCTOR_PROTECTED, CONSTRUCTOR_PUBLIC, CONSTRUCTORS_CATEGORY, element, elementFormat, ERROR, FIELD_PACKAGE, FIELD_PRIVATE, FIELD_PROTECTED, FIELD_PUBLIC, FIELD_ST_PACKAGE, FIELD_ST_PRIVATE, FIELD_ST_PROTECTED, FIELD_ST_PUBLIC, FIELDS_CATEGORY, INITIALIZER, INITIALIZER_ST, INTERFACE, METHOD_PACKAGE, METHOD_PRIVATE, METHOD_PROTECTED, METHOD_PUBLIC, METHOD_ST_PACKAGE, METHOD_ST_PRIVATE, METHOD_ST_PROTECTED, METHOD_ST_PUBLIC, METHODS_CATEGORY, sourceOptions, WAIT, writeable |
Fields inherited from interface org.openide.src.ElementProperties |
PROP_ALL_CLASSES, PROP_BODY, PROP_CLASS_OR_INTERFACE, PROP_CLASSES, PROP_CONSTRUCTORS, PROP_EXCEPTIONS, PROP_FIELDS, PROP_IMPORTS, PROP_INIT_VALUE, PROP_INITIALIZERS, PROP_INTERFACES, PROP_JAVADOC, PROP_MEMBERS, PROP_METHODS, PROP_MODIFIERS, PROP_NAME, PROP_PACKAGE, PROP_PARAMETERS, PROP_RETURN, PROP_STATIC, PROP_STATUS, PROP_SUPERCLASS, PROP_TYPE, PROP_VALID |
Methods inherited from class org.openide.src.nodes.ElementNode |
canCopy, canCut, canDestroy, clipboardCopy, clipboardCut, equals, getCookie, getElementFormat, getHandle, getIconAffectingProperties, getPropertySets, getShortDescription, hashCode, setActions, setElementFormat |
Methods inherited from class org.openide.nodes.AbstractNode |
cloneNode, createActions, createPasteTypes, drag, getActions, getCookieSet, getDefaultAction, getDropType, getIcon, getNewTypes, getOpenedIcon, getPasteTypes, getPreferredAction, getSheet, setCookieSet, setDefaultAction, setIconBase, setIconBaseWithExtension, setSheet |
Methods inherited from class org.openide.nodes.Node |
addNodeListener, addPropertyChangeListener, clone, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getActions, getChildren, getContextActions, getContextMenu, getHtmlDisplayName, getLookup, getParentNode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setChildren, setDisplayName, setShortDescription, toString |
Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getDisplayName, getName, getValue, isExpert, isHidden, isPreferred, setExpert, setHidden, setPreferred, setValue |
ConstructorElementNode
public ConstructorElementNode(ConstructorElement element,
boolean writeable)
- Create a new constructor node.
- Parameters:
element
- constructor element to representwriteable
- true
to be writable
getHelpCtx
public HelpCtx getHelpCtx()
- Specified by:
getHelpCtx
in interface HelpCtx.Provider
- Overrides:
getHelpCtx
in class ElementNode
resolveIconBase
protected String resolveIconBase()
- Description copied from class:
ElementNode
- Get the currently appropriate icon base.
Subclasses should make this sensitive to the state of the element--for example,
a private variable may have a different icon than a public one.
The icon will be automatically changed whenever a
relevant
change is made to the element.
- Specified by:
resolveIconBase
in class ElementNode
- Returns:
- icon base
- See Also:
AbstractNode.setIconBase(java.lang.String)
getHintElementFormat
protected ElementFormat getHintElementFormat()
- Description copied from class:
ElementNode
- Get a format for creating this node's
short description
.
- Specified by:
getHintElementFormat
in class ElementNode
createSheet
protected Sheet createSheet()
destroy
public void destroy()
throws IOException
- Throws:
IOException
canRename
public boolean canRename()
- Indicate that this node cannot be renamed.
An constructor must have the same name like class
- Overrides:
canRename
in class ElementNode
- Returns:
false
getCustomizer
public Component getCustomizer()
hasCustomizer
public boolean hasCustomizer()
createParametersProperty
protected Node.Property createParametersProperty(boolean canW)
- Create a node property for constructor parameters.
- Parameters:
canW
- false
to force property to be read-only
- Returns:
- the property
createExceptionsProperty
protected Node.Property createExceptionsProperty(boolean canW)
- Create a node property for constructor exceptions.
- Parameters:
canW
- false
to force property to be read-only
- Returns:
- the property