public interface ExtendedNodeModelFilter extends NodeModelFilter
NodeModelFilter
,
filters content of some existing ExtendedNodeModel
.Modifier and Type | Method and Description |
---|---|
boolean |
canCopy(ExtendedNodeModel original,
Object node)
Test whether this node permits copying.
|
boolean |
canCut(ExtendedNodeModel original,
Object node)
Test whether this node permits cutting.
|
boolean |
canRename(ExtendedNodeModel original,
Object node)
Test whether this node permits renaming.
|
Transferable |
clipboardCopy(ExtendedNodeModel original,
Object node)
Called when a node is to be copied to the clipboard.
|
Transferable |
clipboardCut(ExtendedNodeModel original,
Object node)
Called when a node is to be cut to the clipboard.
|
String |
getIconBaseWithExtension(ExtendedNodeModel original,
Object node)
Returns icon resource with extension for given node.
|
PasteType[] |
getPasteTypes(ExtendedNodeModel original,
Object node,
Transferable t)
Determine which paste operations are allowed when a given transferable is in the clipboard.
|
void |
setName(ExtendedNodeModel original,
Object node,
String name)
Sets a new name for given node.
|
addModelListener, getDisplayName, getIconBase, getShortDescription, removeModelListener
boolean canRename(ExtendedNodeModel original, Object node) throws UnknownTypeException
true
if soUnknownTypeException
boolean canCopy(ExtendedNodeModel original, Object node) throws UnknownTypeException
true
if soUnknownTypeException
boolean canCut(ExtendedNodeModel original, Object node) throws UnknownTypeException
true
if soUnknownTypeException
Transferable clipboardCopy(ExtendedNodeModel original, Object node) throws IOException, UnknownTypeException
node
- The node objectIOException
- when the copy cannot be performedUnknownTypeException
Transferable clipboardCut(ExtendedNodeModel original, Object node) throws IOException, UnknownTypeException
node
- The node objectIOException
- when the cut cannot be performedUnknownTypeException
PasteType[] getPasteTypes(ExtendedNodeModel original, Object node, Transferable t) throws UnknownTypeException
node
- The node objectt
- the transferable in the clipboardUnknownTypeException
void setName(ExtendedNodeModel original, Object node, String name) throws UnknownTypeException
node
- The object to set the new name to.name
- The new name for the given nodeUnknownTypeException
String getIconBaseWithExtension(ExtendedNodeModel original, Object node) throws UnknownTypeException
NodeModel.getIconBase(java.lang.Object)
node
- The node objectUnknownTypeException
- if this NodeModel implementation is not
able to resolve icon for given node type