|
||||||||||
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.FilterNode | +--org.openide.loaders.DataShadow.ShadowNode
Node for a shadow object.
Inner classes inherited from class org.openide.nodes.FilterNode |
FilterNode.Children, FilterNode.NodeAdapter, FilterNode.PropertyChangeAdapter |
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.FilterNode |
DELEGATE_DESTROY, DELEGATE_GET_ACTIONS, DELEGATE_GET_CONTEXT_ACTIONS, DELEGATE_GET_DISPLAY_NAME, DELEGATE_GET_NAME, DELEGATE_GET_SHORT_DESCRIPTION, DELEGATE_SET_DISPLAY_NAME, DELEGATE_SET_NAME, DELEGATE_SET_SHORT_DESCRIPTION |
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 |
Constructor Summary | |
DataShadow.ShadowNode(DataShadow shadow)
Create a shadowing node. |
Method Summary | |
boolean |
canCopy()
Test whether this node permits copying. |
boolean |
canCut()
Test whether this node permits cutting. |
boolean |
canDestroy()
Test whether this node can be deleted. |
boolean |
canRename()
Test whether this node can be renamed. |
Transferable |
clipboardCopy()
Copy this node to the clipboard. |
Transferable |
clipboardCut()
Cut this node to the clipboard. |
Node |
cloneNode()
Create new filter node for the original. |
protected NodeListener |
createNodeListener()
Creates a node listener that allows listening on the original node and propagating events to the proxy. |
void |
destroy()
Remove the node from its parent and deletes it. |
Transferable |
drag()
This implementation only calls clipboardCopy supposing that copy to clipboard and copy by d'n'd are similar. |
boolean |
equals(Object o)
Equal if the o is ShadowNode to the same shadow object. |
Node.Cookie |
getCookie(Class cl)
Get a cookie for this node. |
String |
getDisplayName()
|
Image |
getIcon(int type)
Find an icon for this node (in the closed state). |
String |
getName()
The name of the shadow. |
Image |
getOpenedIcon(int type)
Find an icon for this node (in the open state). |
Node.PropertySet[] |
getPropertySets()
Returns modified properties of the original node. |
String |
getShortDescription()
|
int |
hashCode()
Hashcode is computed by the represented shadow. |
void |
setName(String name)
Set the system name. |
Methods inherited from class org.openide.nodes.FilterNode |
changeOriginal, createPropertyChangeListener, disableDelegation, enableDelegation, finalize, getActions, getContextActions, getCustomizer, getDefaultAction, getDropType, getHandle, getHelpCtx, getNewTypes, getOriginal, getPasteTypes, hasCustomizer, setDisplayName, setShortDescription |
Methods inherited from class org.openide.nodes.Node |
addNodeListener, addPropertyChangeListener, clone, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getChildren, getContextMenu, getParentNode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, toString |
Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getValue, isExpert, isHidden, isPreferred, setExpert, setHidden, setPreferred, setValue |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DataShadow.ShadowNode(DataShadow shadow)
shadow
- the shadowMethod Detail |
public Node cloneNode()
FilterNode
cloneNode
in class FilterNode
org.openide.nodes.FilterNode
public void setName(String name)
Node
setName
in class FilterNode
org.openide.nodes.Node
s
- the new nameIllegalArgumentException
- if the new name cannot represent
a valid node namepublic String getName()
getName
in class FilterNode
public String getDisplayName()
getDisplayName
in class FilterNode
public String getShortDescription()
getShortDescription
in class FilterNode
public Image getIcon(int type)
Node
getIcon
in class FilterNode
org.openide.nodes.Node
type
- constant from BeanInfo
public Image getOpenedIcon(int type)
Node
getOpenedIcon
in class FilterNode
org.openide.nodes.Node
type
- constant from BeanInfo
public boolean canDestroy()
Node
canDestroy
in class FilterNode
org.openide.nodes.Node
true
if canpublic void destroy() throws IOException
Node
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.
destroy
in class FilterNode
org.openide.nodes.Node
IOException
- if something failspublic final boolean canRename()
Node
FeatureDescriptor.getName()
to obtain the current name and
Node.setName(java.lang.String)
to change it.canRename
in class FilterNode
public final boolean canCopy()
Node
canCopy
in class FilterNode
org.openide.nodes.Node
true
if sopublic final boolean canCut()
Node
canCut
in class FilterNode
org.openide.nodes.Node
true
if sopublic Node.Cookie getCookie(Class cl)
Node
The set of cookies can change. If a node changes its set of
cookies, it fires a property change event with Node.PROP_COOKIE
.
getCookie
in class FilterNode
org.openide.nodes.Node
type
- the representation class of the cookienull
if this node has no such cookiepublic Node.PropertySet[] getPropertySets()
getPropertySets
in class FilterNode
public Transferable clipboardCopy() throws IOException
clipboardCopy
in class FilterNode
ExTransferable.Single
with one copy flavorIOException
- if it could not copyNodeTransfer
public Transferable clipboardCut() throws IOException
clipboardCut
in class FilterNode
ExTransferable.Single
with one cut flavorIOException
- if it could not cutNodeTransfer
public Transferable drag() throws IOException
drag
in class FilterNode
IOException
- when the
cut cannot be performedprotected NodeListener createNodeListener()
Intended for overriding by subclasses, as with FilterNode.createPropertyChangeListener()
.
createNodeListener
in class FilterNode
FilterNode.NodeAdapter
in the default implementationpublic boolean equals(Object o)
equals
in class FilterNode
org.openide.nodes.FilterNode
o
- something to compare to, presumably a node or FilterNode
of onepublic int hashCode()
hashCode
in class FilterNode
org.openide.nodes.FilterNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |