站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.0.0

DataShadow.ShadowNode (NetBeans Loaders API) - NetBeans API Javadoc 5.0.0

 

org.openide.loaders
Class DataShadow.ShadowNode

java.lang.Object
  extended byjava.beans.FeatureDescriptor
      extended byorg.openide.nodes.Node
          extended byorg.openide.nodes.FilterNode
              extended byorg.openide.loaders.DataShadow.ShadowNode
All Implemented Interfaces:
HelpCtx.Provider, Lookup.Provider
Enclosing class:
DataShadow

protected static class DataShadow.ShadowNode
extends FilterNode

Node for a shadow object.


Nested Class Summary
 
Nested classes inherited from class org.openide.nodes.FilterNode
FilterNode.Children, FilterNode.NodeAdapter, FilterNode.PropertyChangeAdapter
 
Nested classes inherited from class org.openide.nodes.Node
Node.Cookie, Node.Handle, Node.IndexedProperty, Node.Property, Node.PropertySet
 
Field Summary
 
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_GET_VALUE, DELEGATE_SET_DISPLAY_NAME, DELEGATE_SET_NAME, DELEGATE_SET_SHORT_DESCRIPTION, DELEGATE_SET_VALUE
 
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
 
Constructor Summary
DataShadow.ShadowNode(DataShadow shadow)
          Create a shadowing node.
 
Method Summary
 boolean canCopy()
           
 boolean canCut()
           
 boolean canDestroy()
           
 boolean canRename()
           
 Transferable clipboardCopy()
          Copy this node to the clipboard.
 Transferable clipboardCut()
          Cut this node to the clipboard.
 Node cloneNode()
           
protected  NodeListener createNodeListener()
          Creates a node listener that allows listening on the original node and propagating events to the proxy.
 void destroy()
           
 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)
           
 String getDisplayName()
           
 String getHtmlDisplayName()
           
 Image getIcon(int type)
           
 String getName()
          The name of the shadow.
 Image getOpenedIcon(int type)
           
 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)
           
 
Methods inherited from class org.openide.nodes.FilterNode
changeOriginal, createPropertyChangeListener, disableDelegation, enableDelegation, finalize, getActions, getActions, getContextActions, getCustomizer, getDefaultAction, getDropType, getHandle, getHelpCtx, getNewTypes, getOriginal, getPasteTypes, getPreferredAction, getValue, hasCustomizer, setDisplayName, setShortDescription, setValue
 
Methods inherited from class org.openide.nodes.Node
addNodeListener, addPropertyChangeListener, clone, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getChildren, getContextMenu, getLookup, getParentNode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setChildren, toString
 
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, isExpert, isHidden, isPreferred, setExpert, setHidden, setPreferred
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataShadow.ShadowNode

public DataShadow.ShadowNode(DataShadow shadow)
Create a shadowing node.

Parameters:
shadow - the shadow
Method Detail

cloneNode

public Node cloneNode()

setName

public void setName(String name)

getName

public String getName()
The name of the shadow.

Returns:
the name

getDisplayName

public String getDisplayName()

getHtmlDisplayName

public String getHtmlDisplayName()

getShortDescription

public String getShortDescription()

getIcon

public Image getIcon(int type)

getOpenedIcon

public Image getOpenedIcon(int type)

canDestroy

public boolean canDestroy()

destroy

public void destroy()
             throws IOException
Throws:
IOException

canRename

public final boolean canRename()
Returns:
true if shadow can be renamed

canCopy

public final boolean canCopy()

canCut

public final boolean canCut()

getCookie

public Node.Cookie getCookie(Class cl)

getPropertySets

public Node.PropertySet[] getPropertySets()
Returns modified properties of the original node.

Returns:
property sets

clipboardCopy

public Transferable clipboardCopy()
                           throws IOException
Copy this node to the clipboard.

Returns:
ExTransferable.Single with one copy flavor
Throws:
IOException - if it could not copy
See Also:
NodeTransfer

clipboardCut

public Transferable clipboardCut()
                          throws IOException
Cut this node to the clipboard.

Returns:
ExTransferable.Single with one cut flavor
Throws:
IOException - if it could not cut
See Also:
NodeTransfer

drag

public Transferable drag()
                  throws IOException
This implementation only calls clipboardCopy supposing that copy to clipboard and copy by d'n'd are similar.

Returns:
transferable to represent this node during a drag
Throws:
IOException - when the cut cannot be performed

createNodeListener

protected NodeListener createNodeListener()
Creates a node listener that allows listening on the original node and propagating events to the proxy.

Intended for overriding by subclasses, as with FilterNode.createPropertyChangeListener().

Returns:
a FilterNode.NodeAdapter in the default implementation

equals

public boolean equals(Object o)
Equal if the o is ShadowNode to the same shadow object.


hashCode

public int hashCode()
Hashcode is computed by the represented shadow.


 

Built on May 3 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.