站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended byjava.beans.FeatureDescriptor
      extended byorg.openide.nodes.Node
          extended byorg.openide.nodes.AbstractNode
              extended byorg.openide.loaders.DataNode
                  extended byorg.openide.loaders.DataFolder.FolderNode
All Implemented Interfaces:
HelpCtx.Provider, Lookup.Provider
Enclosing class:
DataFolder

public class DataFolder.FolderNode
extends DataNode

Node for a folder.


Nested Class Summary
 
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.AbstractNode
displayFormat, systemActions
 
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
protected DataFolder.FolderNode()
          Create a folder node with default folder children.
  DataFolder.FolderNode(Children ch)
          Create a folder node with some children.
 
Method Summary
protected  void createPasteTypes(Transferable t, List s)
           
protected  Sheet createSheet()
           
 Node.Cookie getCookie(Class clazz)
          Get a cookie.
 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.
 NewType[] getNewTypes()
           
 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.
 Action getPreferredAction()
          Get default action.
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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)

 

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