当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
DataFolder.FolderNode (NetBeans Loaders API) - NetBeans API Javadoc 4.1.0
org.openide.loaders
Class DataFolder.FolderNode
java.lang.Object
java.beans.FeatureDescriptor
org.openide.nodes.Node
org.openide.nodes.AbstractNode
org.openide.loaders.DataNode
org.openide.loaders.DataFolder.FolderNode
- All Implemented Interfaces:
- HelpCtx.Provider, Lookup.Provider
- Enclosing class:
- DataFolder
- public class DataFolder.FolderNode
- extends DataNode
Node for a folder.
Methods inherited from class org.openide.loaders.DataNode |
canCopy, canCut, canDestroy, canRename, clipboardCopy, clipboardCut, createActions, destroy, getActions, getActions, getDataObject, getDisplayName, getHandle, getHelpCtx, getHtmlDisplayName, getShowFileExtensions, setName, setName, setShowFileExtensions |
Methods inherited from class org.openide.nodes.AbstractNode |
cloneNode, drag, getCookieSet, getCustomizer, getDefaultAction, getDropType, getPasteTypes, getPropertySets, getSheet, hasCustomizer, setCookieSet, setDefaultAction, setIconBase, setSheet |
Methods inherited from class org.openide.nodes.Node |
addNodeListener, addPropertyChangeListener, clone, equals, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getChildren, getContextActions, getContextMenu, getLookup, getParentNode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setChildren, setDisplayName, setShortDescription, toString |
Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, setHidden, setPreferred, setValue |
DataFolder.FolderNode
public DataFolder.FolderNode(Children ch)
- Create a folder node with some children.
- Parameters:
ch
- children to use for the node
DataFolder.FolderNode
protected DataFolder.FolderNode()
- Create a folder node with default folder children.
getIcon
public Image getIcon(int type)
- Overrides folder icon to search for icon in UIManager table for
BeanInfo.ICON_COLOR_16x16 type, to allow for different icons
across Look and Feels.
Keeps possibility of icon annotations.
- Overrides:
getIcon
in class DataNode
- Parameters:
type
- the icon type from BeanInfo
- Returns:
- the desired icon
getOpenedIcon
public Image getOpenedIcon(int type)
- Overrides folder icon to search for icon in UIManager table for
BeanInfo.ICON_COLOR_16x16 type, to allow for different icons
across Look and Feels.
Keeps possibility of icon annotations.
- Overrides:
getOpenedIcon
in class DataNode
- Parameters:
type
- the icon type from BeanInfo
- Returns:
- the desired icon
getCookie
public Node.Cookie getCookie(Class clazz)
- Description copied from class:
DataNode
- Get a cookie.
First of all
DataObject.getCookie(java.lang.Class)
is
called. If it produces non-null
result, that is returned.
Otherwise the superclass is tried.
Subclassers overriding this method should consider the recommendations
in DataObject.createNodeDelegate()
.
- Overrides:
getCookie
in class DataNode
- Returns:
- the cookie or
null
createSheet
protected Sheet createSheet()
- Overrides:
createSheet
in class DataNode
getPreferredAction
public Action getPreferredAction()
- Description copied from class:
DataNode
- Get default action. In the current implementation the
null
is returned in case the underlying data
object is a template. The templates should not have any default
action.
- Overrides:
getPreferredAction
in class DataNode
- Returns:
- no action if the underlying data object is a template.
Otherwise the abstract node's default action is returned, if
null
then
the first action returned from getActions (false) method is used.
getNewTypes
public NewType[] getNewTypes()
createPasteTypes
protected void createPasteTypes(Transferable t,
List s)