|
org.netbeans.spi.viewmodel/2 1.32.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtendedNodeModel
Provides extension to NodeModel
with cut/copy/paste and rename
functionality, and also allowing to set icons with extension.
Method Summary | |
---|---|
boolean |
canCopy(Object node)
Test whether this node permits copying. |
boolean |
canCut(Object node)
Test whether this node permits cutting. |
boolean |
canRename(Object node)
Test whether this node permits renaming. |
Transferable |
clipboardCopy(Object node)
Called when a node is to be copied to the clipboard. |
Transferable |
clipboardCut(Object node)
Called when a node is to be cut to the clipboard. |
String |
getIconBaseWithExtension(Object node)
Returns icon resource with extension for given node. |
PasteType[] |
getPasteTypes(Object node,
Transferable t)
Determine which paste operations are allowed when a given transferable is in the clipboard. |
void |
setName(Object node,
String name)
Sets a new name for given node. |
Methods inherited from interface org.netbeans.spi.viewmodel.NodeModel |
---|
addModelListener, getDisplayName, getIconBase, getShortDescription, removeModelListener |
Method Detail |
---|
boolean canRename(Object node) throws UnknownTypeException
true
if so
UnknownTypeException
boolean canCopy(Object node) throws UnknownTypeException
true
if so
UnknownTypeException
boolean canCut(Object node) throws UnknownTypeException
true
if so
UnknownTypeException
Transferable clipboardCopy(Object node) throws IOException, UnknownTypeException
node
- The node object
IOException
- when the copy cannot be performed
UnknownTypeException
Transferable clipboardCut(Object node) throws IOException, UnknownTypeException
node
- The node object
IOException
- when the cut cannot be performed
UnknownTypeException
PasteType[] getPasteTypes(Object node, Transferable t) throws UnknownTypeException
node
- The node objectt
- the transferable in the clipboard
UnknownTypeException
void setName(Object node, String name) throws UnknownTypeException
node
- The object to set the new name to.name
- The new name for the given node
UnknownTypeException
String getIconBaseWithExtension(Object node) throws UnknownTypeException
org.netbeans.spi.viewmodel.NodeModel.getIconBase
node
- The node object
UnknownTypeException
- if this NodeModel implementation is not
able to resolve icon for given node type
|
org.netbeans.spi.viewmodel/2 1.32.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |