Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.loaders 5.9.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Nested Class Summary

Nested classes/interfaces 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.
`void` | `setName(String name)`

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, setShowFileExtensions`

Methods inherited from class org.openide.nodes.AbstractNode
`cloneNode, drag, getCookieSet, getCustomizer, getDefaultAction, getDropType, getPasteTypes, getPropertySets, getSheet, hasCustomizer, setCookieSet, setDefaultAction, setIconBase, setIconBaseWithExtension, 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()`. Since version 5.6, if non-null `Lookup` is passed to the constructor, then this method directly delegates to super.getCookie and does not query data object at all. This is supposed to provide consistency between results in `getLookup().lookup` and `getCookie`.

  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()

  Overrides:
    `getNewTypes` in class `AbstractNode`

### setName

    public void setName(String name)

  Overrides:
    `setName` in class `DataNode`

### createPasteTypes

    protected void createPasteTypes(Transferable t,
                                    List s)

  Overrides:
    `createPasteTypes` in class `AbstractNode`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.loaders 5.9.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.