Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.src 1.8.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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, Lookup.Provider

Direct Known Subclasses:
  MethodElementNode

    public class ConstructorElementNode

extends MemberElementNode

Node representing a constructor.

See Also:
  `ConstructorElement`

Nested Class Summary

Nested classes/interfaces inherited from class org.openide.nodes.Node
`Node.Cookie, Node.Handle, Node.IndexedProperty, Node.Property, Node.PropertySet`

Field Summary
`static String` | `CLASS`
`static String` | `CONSTRUCTOR_PACKAGE`
`static String` | `CONSTRUCTOR_PRIVATE`
`static String` | `CONSTRUCTOR_PROTECTED`
`static String` | `CONSTRUCTOR_PUBLIC`
`static String` | `CONSTRUCTORS_CATEGORY`
`static String` | `ERROR`
`static String` | `FIELD_PACKAGE`
`static String` | `FIELD_PRIVATE`
`static String` | `FIELD_PROTECTED`
`static String` | `FIELD_PUBLIC`
`static String` | `FIELD_ST_PACKAGE`
`static String` | `FIELD_ST_PRIVATE`
`static String` | `FIELD_ST_PROTECTED`
`static String` | `FIELD_ST_PUBLIC`
`static String` | `FIELDS_CATEGORY`
`static String` | `INITIALIZER`
`static String` | `INITIALIZER_ST`
`static String` | `INTERFACE`
`static String` | `METHOD_PACKAGE`
`static String` | `METHOD_PRIVATE`
`static String` | `METHOD_PROTECTED`
`static String` | `METHOD_PUBLIC`
`static String` | `METHOD_ST_PACKAGE`
`static String` | `METHOD_ST_PRIVATE`
`static String` | `METHOD_ST_PROTECTED`
`static String` | `METHOD_ST_PUBLIC`
`static String` | `METHODS_CATEGORY`
`static String` | `WAIT`

Fields inherited from class org.openide.src.nodes.ElementNode
`element, elementFormat, sourceOptions, writeable`

Fields inherited from class org.openide.nodes.AbstractNode
`displayFormat, systemActions`

Fields inherited from class org.openide.nodes.Node
`EMPTY, PROP_COOKIE, PROP_DISPLAY_NAME, PROP_ICON, PROP_LEAF, PROP_NAME, PROP_OPENED_ICON, PROP_PARENT_NODE, PROP_PROPERTY_SETS, PROP_SHORT_DESCRIPTION`

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`

Constructor Summary
`ConstructorElementNode(ConstructorElement element, boolean writeable)` Create a new constructor node.

Method Summary
`boolean` | `canRename()` Indicate that this node cannot be renamed.
`protected Node.Property` | `createExceptionsProperty(boolean canW)` Create a node property for constructor exceptions.
`protected Node.Property` | `createParametersProperty(boolean canW)` Create a node property for constructor parameters.
`protected Sheet` | `createSheet()`
`void` | `destroy()`
`Component` | `getCustomizer()`
`HelpCtx` | `getHelpCtx()`
`protected ElementFormat` | `getHintElementFormat()` Get a format for creating this node's `short description`.
`boolean` | `hasCustomizer()`
`protected String` | `resolveIconBase()` Get the currently appropriate icon base.

Methods inherited from class org.openide.src.nodes.MemberElementNode
`createModifiersProperty, createNameProperty, setName`

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`

Methods inherited from class java.lang.Object
`finalize, getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### FIELD_PUBLIC

    public static final String FIELD_PUBLIC

See Also:
  Constant Field Values

### FIELD_PROTECTED

    public static final String FIELD_PROTECTED

See Also:
  Constant Field Values

### FIELD_PRIVATE

    public static final String FIELD_PRIVATE

See Also:
  Constant Field Values

### FIELD_PACKAGE

    public static final String FIELD_PACKAGE

See Also:
  Constant Field Values

### FIELD_ST_PUBLIC

    public static final String FIELD_ST_PUBLIC

See Also:
  Constant Field Values

### FIELD_ST_PROTECTED

    public static final String FIELD_ST_PROTECTED

See Also:
  Constant Field Values

### FIELD_ST_PRIVATE

    public static final String FIELD_ST_PRIVATE

See Also:
  Constant Field Values

### FIELD_ST_PACKAGE

    public static final String FIELD_ST_PACKAGE

See Also:
  Constant Field Values

### CONSTRUCTOR_PUBLIC

    public static final String CONSTRUCTOR_PUBLIC

See Also:
  Constant Field Values

### CONSTRUCTOR_PROTECTED

    public static final String CONSTRUCTOR_PROTECTED

See Also:
  Constant Field Values

### CONSTRUCTOR_PRIVATE

    public static final String CONSTRUCTOR_PRIVATE

See Also:
  Constant Field Values

### CONSTRUCTOR_PACKAGE

    public static final String CONSTRUCTOR_PACKAGE

See Also:
  Constant Field Values

### METHOD_PUBLIC

    public static final String METHOD_PUBLIC

See Also:
  Constant Field Values

### METHOD_PROTECTED

    public static final String METHOD_PROTECTED

See Also:
  Constant Field Values

### METHOD_PRIVATE

    public static final String METHOD_PRIVATE

See Also:
  Constant Field Values

### METHOD_PACKAGE

    public static final String METHOD_PACKAGE

See Also:
  Constant Field Values

### METHOD_ST_PUBLIC

    public static final String METHOD_ST_PUBLIC

See Also:
  Constant Field Values

### METHOD_ST_PROTECTED

    public static final String METHOD_ST_PROTECTED

See Also:
  Constant Field Values

### METHOD_ST_PRIVATE

    public static final String METHOD_ST_PRIVATE

See Also:
  Constant Field Values

### METHOD_ST_PACKAGE

    public static final String METHOD_ST_PACKAGE

See Also:
  Constant Field Values

### INITIALIZER

    public static final String INITIALIZER

See Also:
  Constant Field Values

### INITIALIZER_ST

    public static final String INITIALIZER_ST

See Also:
  Constant Field Values

### CLASS

    public static final String CLASS

See Also:
  Constant Field Values

### INTERFACE

    public static final String INTERFACE

See Also:
  Constant Field Values

### WAIT

    public static final String WAIT

See Also:
  Constant Field Values

### ERROR

    public static final String ERROR

See Also:
  Constant Field Values

### FIELDS_CATEGORY

    public static final String FIELDS_CATEGORY

See Also:
  Constant Field Values

### CONSTRUCTORS_CATEGORY

    public static final String CONSTRUCTORS_CATEGORY

See Also:
  Constant Field Values

### METHODS_CATEGORY

    public static final String METHODS_CATEGORY

See Also:
  Constant Field Values

Constructor Detail

### ConstructorElementNode

    public ConstructorElementNode(ConstructorElement element,
                                  boolean writeable)

  Create a new constructor node.

  Parameters:
    `element` - constructor element to represent
    `writeable` - `true` to be writable

Method Detail

### 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()

  Overrides:
    `createSheet` in class `AbstractNode`

### destroy

    public void destroy()
                 throws IOException

  Overrides:
    `destroy` in class `Node`
  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()

  Overrides:
    `getCustomizer` in class `AbstractNode`

### hasCustomizer

    public boolean hasCustomizer()

  Overrides:
    `hasCustomizer` in class `AbstractNode`

### 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.src 1.8.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.