org.openide.src.nodes
Class MemberElementNode

java.lang.Object
  |
  +--java.beans.FeatureDescriptor
        |
        +--org.openide.nodes.Node
              |
              +--org.openide.nodes.AbstractNode
                    |
                    +--org.openide.src.nodes.ElementNode
                          |
                          +--org.openide.src.nodes.MemberElementNode
All Implemented Interfaces:
ElementProperties, org.openide.src.nodes.IconStrings
Direct Known Subclasses:
ClassElementNode, ConstructorElementNode, FieldElementNode

public abstract class MemberElementNode
extends ElementNode

Node representing some type of member element.


Inner classes inherited from class org.openide.nodes.Node
Node.Cookie, Node.Handle, Node.IndexedProperty, Node.Property, Node.PropertySet
 
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 class org.openide.nodes.AbstractNode
displayFormat, systemActions
 
Fields inherited from class org.openide.nodes.Node
EMPTY, PROP_COOKIE, PROP_DISPLAY_NAME, PROP_ICON, 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
MemberElementNode(MemberElement element, Children children, boolean writeable)
          Create a new node.
 
Method Summary
protected  Node.Property createModifiersProperty(boolean canW)
          Create a node property for the modifiers of the element.
protected  Node.Property createNameProperty(boolean canW)
          Create a node property representing the element's name.
 void setName(String str)
          Set the node's (system) name.
 
Methods inherited from class org.openide.src.nodes.ElementNode
canCopy, canCut, canDestroy, canRename, clipboardCopy, clipboardCut, equals, getCookie, getElementFormat, getHandle, getHelpCtx, getHintElementFormat, getIconAffectingProperties, getShortDescription, hashCode, resolveIconBase, setActions, setElementFormat
 
Methods inherited from class org.openide.nodes.AbstractNode
cloneNode, createActions, createPasteTypes, createSheet, drag, getActions, getCookieSet, getCustomizer, getDefaultAction, getDropType, getIcon, getNewTypes, getOpenedIcon, getPasteTypes, getPropertySets, getSheet, hasCustomizer, setCookieSet, setDefaultAction, setIconBase, setSheet
 
Methods inherited from class org.openide.nodes.Node
addNodeListener, addPropertyChangeListener, clone, destroy, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getChildren, getContextActions, getContextMenu, getParentNode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, 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
 

Constructor Detail

MemberElementNode

public MemberElementNode(MemberElement element,
                         Children children,
                         boolean writeable)
Create a new node.
Parameters:
element - member element to represent
children - list of children
writeable - true to be writable
Method Detail

setName

public void setName(String str)
Set the node's (system) name. Attempts to change the element's name as well using MemberElement.setName(org.openide.src.Identifier). Read-only elements cannot have their name set. The display name will also be updated according to the proper format, if necessary (typically it will be).
Overrides:
setName in class AbstractNode
Parameters:
str - the new element and node name

createModifiersProperty

protected Node.Property createModifiersProperty(boolean canW)
Create a node property for the modifiers of the element. This property will typically display with a custom editor allowing individual modifiers to be examined.
Parameters:
canW - if false, the property will be read-only irrespective of the underlying element's ability to change the modifiers
Returns:
the property

createNameProperty

protected Node.Property createNameProperty(boolean canW)
Create a node property representing the element's name.
Parameters:
canW - if false, property will be read-only
Returns:
the property.


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.