| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.ClassElementNode
Node representing a Java class.
ClassElement| 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.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 | |
ClassElementNode(ClassElement element,
                 Children children,
                 boolean writeable)
Create a new class node.  | 
|
| Method Summary | |
 Transferable | 
clipboardCopy()
Copy this node to the clipboard.  | 
 Transferable | 
clipboardCut()
Cut this node to the clipboard.  | 
protected  Node.Property | 
createInterfacesProperty(boolean canW)
Create a node property for the implemented interfaces of this class.  | 
protected  void | 
createPasteTypes(Transferable t,
                 List s)
Accumulate the paste types that this node can handle for a given transferable.  | 
protected  Sheet | 
createSheet()
Initialize a default property sheet; commonly overridden.  | 
protected  Node.Property | 
createSuperclassProperty(boolean canW)
Create a node property for the superclass of this class.  | 
 void | 
destroy()
Remove this class from its declaring class or source file.  | 
 Component | 
getCustomizer()
Get the customizer.  | 
 HelpCtx | 
getHelpCtx()
Get context help associated with this node.  | 
protected  ElementFormat | 
getHintElementFormat()
Get a format for creating this node's short description. | 
protected  String[] | 
getIconAffectingProperties()
Get the names of all element properties which might affect the choice of icon.  | 
 NewType[] | 
getNewTypes()
Get the new types that can be created in this node.  | 
 boolean | 
hasCustomizer()
Does this node have a customizer?  | 
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, canRename, equals, getCookie, getElementFormat, getHandle, getShortDescription, hashCode, setActions, setElementFormat | 
| Methods inherited from class org.openide.nodes.AbstractNode | 
cloneNode, createActions, drag, getActions, getCookieSet, getDefaultAction, getDropType, getIcon, getOpenedIcon, getPasteTypes, getPropertySets, getSheet, setCookieSet, setDefaultAction, setIconBase, setSheet | 
| 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 | 
public ClassElementNode(ClassElement element,
                        Children children,
                        boolean writeable)
element - class element to representchildren - node childrenwriteable - true to be writable| Method Detail | 
public HelpCtx getHelpCtx()
NodegetHelpCtx in class ElementNodeorg.openide.nodes.Nodenull or HelpCtx.DEFAULT_HELP)protected String resolveIconBase()
ElementNoderelevant change is made to the element.resolveIconBase in class ElementNodeorg.openide.src.nodes.ElementNodeAbstractNode.setIconBase(java.lang.String)protected String[] getIconAffectingProperties()
ElementNodeElementProperties.PROP_MODIFIERS.getIconAffectingProperties in class ElementNodeorg.openide.src.nodes.ElementNodeElementPropertiesprotected ElementFormat getHintElementFormat()
ElementNodeshort description.getHintElementFormat in class ElementNodeprotected Sheet createSheet()
AbstractNodeAbstractNode.getSheet()
 is called and there is not yet a sheet,
 this method is called to allow a subclass
 to specify its properties.
 
 Warning: Do not call getSheet in this method.
 
The default implementation returns an empty sheet.
createSheet in class AbstractNodeorg.openide.nodes.AbstractNodenull)
public void destroy()
             throws IOException
destroy in class NodeIOException - if the containing element refuses to delete itpublic Component getCustomizer()
AbstractNodegetCustomizer in class AbstractNodeorg.openide.nodes.AbstractNodenull in the default implementationpublic boolean hasCustomizer()
AbstractNodehasCustomizer in class AbstractNodeorg.openide.nodes.AbstractNodefalse
protected void createPasteTypes(Transferable t,
                                List s)
AbstractNode
 The default implementation simply tests whether the transferable supports
 intelligent pasting via NodeTransfer.findPaste(java.awt.datatransfer.Transferable), and if so, it obtains the paste types
 from the transfer data and inserts them into the set.
 
Subclass implementations should typically call super (first or last) so that they
 add to, rather than replace, a superclass's available paste types; especially as the
 default implementation in AbstractNode is generally desirable to retain.
createPasteTypes in class AbstractNodeorg.openide.nodes.AbstractNodet - a transferable containing clipboard datas - a list of PasteTypes that will have added to it all types
    valid for this node (ordered as they will be presented to the user)protected Node.Property createSuperclassProperty(boolean canW)
canW - if false, property will be read-onlyprotected Node.Property createInterfacesProperty(boolean canW)
canW - if false, property will be read-onlypublic NewType[] getNewTypes()
NodegetNewTypes in class AbstractNodeorg.openide.nodes.Nodepublic Transferable clipboardCopy()
AbstractNodeclipboardCopy in class ElementNodeorg.openide.nodes.AbstractNodeExTransferable.Single with one copy flavorIOException - if it could not copyNodeTransferpublic Transferable clipboardCut()
AbstractNodeclipboardCut in class ElementNodeorg.openide.nodes.AbstractNodeExTransferable.Single with one cut flavorIOException - if it could not cutNodeTransfer
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||