org.openide.src.nodes
Class FieldElementNode
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.FieldElementNode
- All Implemented Interfaces:
- ElementProperties, org.openide.src.nodes.IconStrings
- public class FieldElementNode
- extends MemberElementNode
Node representing a field (variable).
- See Also:
FieldElement
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, canRename, clipboardCopy, clipboardCut, equals, getCookie, getElementFormat, getHandle, getIconAffectingProperties, getShortDescription, hashCode, setActions, setElementFormat |
Methods inherited from class org.openide.nodes.AbstractNode |
cloneNode, createActions, createPasteTypes, drag, getActions, getCookieSet, getDefaultAction, getDropType, getIcon, getNewTypes, getOpenedIcon, getPasteTypes, getPropertySets, getSheet, setCookieSet, setDefaultAction, setIconBase, setSheet |
Methods inherited from class org.openide.nodes.Node |
addNodeListener, addPropertyChangeListener, clone, 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 |
FieldElementNode
public FieldElementNode(FieldElement element,
boolean writeable)
- Create a new field node.
- Parameters:
element
- field element to representwriteable
- true
to be writable
getHelpCtx
public HelpCtx getHelpCtx()
- Description copied from class:
Node
- Get context help associated with this node.
- Overrides:
getHelpCtx
in class ElementNode
- Following copied from class:
org.openide.nodes.Node
- Returns:
- the context help object (could be
null
or HelpCtx.DEFAULT_HELP
)
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.
- Overrides:
resolveIconBase
in class ElementNode
- Following copied from class:
org.openide.src.nodes.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
.
- Overrides:
getHintElementFormat
in class ElementNode
createSheet
protected Sheet createSheet()
- Description copied from class:
AbstractNode
- Initialize a default
property sheet; commonly overridden. If
AbstractNode.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.
- Overrides:
createSheet
in class AbstractNode
- Following copied from class:
org.openide.nodes.AbstractNode
- Returns:
- the sheet with initialized values (never
null
)
destroy
public void destroy()
throws IOException
- Description copied from class:
Node
- Remove the node from its parent and deletes it.
The default
implementation obtains write access to
the
children's lock
, and removes
the node from its parent (if any). Also fires a property change.
This may be overridden by subclasses to do any additional
cleanup.
- Overrides:
destroy
in class Node
- Following copied from class:
org.openide.nodes.Node
- Throws:
IOException
- if something fails
getCustomizer
public Component getCustomizer()
- Description copied from class:
AbstractNode
- Get the customizer.
- Overrides:
getCustomizer
in class AbstractNode
- Following copied from class:
org.openide.nodes.AbstractNode
- Returns:
null
in the default implementation
hasCustomizer
public boolean hasCustomizer()
- Description copied from class:
AbstractNode
- Does this node have a customizer?
- Overrides:
hasCustomizer
in class AbstractNode
- Following copied from class:
org.openide.nodes.AbstractNode
- Returns:
false
createTypeProperty
protected Node.Property createTypeProperty(boolean canW)
- Create a property for the field type.
- Parameters:
canW
- false
to force property to be read-only- Returns:
- the property
createInitValueProperty
protected Node.Property createInitValueProperty(boolean canW)
- Create a property for the field init value.
- Parameters:
canW
- false
to force property to be read-only- Returns:
- the property
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.