protected static class DataShadow.ShadowNode extends FilterNode
FilterNode.Children, FilterNode.NodeAdapter, FilterNode.PropertyChangeAdapter
Node.Cookie, Node.Handle, Node.IndexedProperty<T,E>, Node.Property<T>, Node.PropertySet
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
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 and Description |
---|
ShadowNode(DataShadow shadow)
Create a shadowing node.
|
Modifier and Type | Method and Description |
---|---|
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.
|
<T extends Node.Cookie> |
getCookie(Class<T> 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) |
changeOriginal, createPropertyChangeListener, disableDelegation, enableDelegation, getActions, getActions, getContextActions, getCustomizer, getDefaultAction, getDropType, getHandle, getHelpCtx, getNewTypes, getOriginal, getPasteTypes, getPreferredAction, getValue, hasCustomizer, setDisplayName, setShortDescription, setValue
addNodeListener, addPropertyChangeListener, clone, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getChildren, getContextMenu, getLookup, getParentNode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setChildren, setHidden, toString
attributeNames, isExpert, isHidden, isPreferred, setExpert, setPreferred
public ShadowNode(DataShadow shadow)
shadow
- the shadowpublic Node cloneNode()
cloneNode
in class FilterNode
public void setName(String name)
setName
in class FilterNode
public String getName()
getName
in class FilterNode
public String getDisplayName()
getDisplayName
in class FilterNode
public String getHtmlDisplayName()
getHtmlDisplayName
in class FilterNode
public String getShortDescription()
getShortDescription
in class FilterNode
public Image getIcon(int type)
getIcon
in class FilterNode
public Image getOpenedIcon(int type)
getOpenedIcon
in class FilterNode
public boolean canDestroy()
canDestroy
in class FilterNode
public void destroy() throws IOException
destroy
in class FilterNode
IOException
public final boolean canRename()
canRename
in class FilterNode
public final boolean canCopy()
canCopy
in class FilterNode
public final boolean canCut()
canCut
in class FilterNode
public <T extends Node.Cookie> T getCookie(Class<T> cl)
getCookie
in class FilterNode
public 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
public int hashCode()
hashCode
in class FilterNode