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

## org.openide.util.datatransfer
Class NewType

    java.lang.Object
      org.openide.util.datatransfer.NewType

All Implemented Interfaces:
  HelpCtx.Provider

    public abstract class NewType

extends Object
implements HelpCtx.Provider

Describes a type that can be created anew. Used by Node.getNewTypes.

Constructor Summary
`NewType()`

Method Summary
`abstract void` | `create()` Create the object.
`HelpCtx` | `getHelpCtx()` Help context for the creation action.
`String` | `getName()` Display name for the creation action.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NewType

    public NewType()

Method Detail

### getName

    public String getName()

  Display name for the creation action. This should be presented as an item in a menu.

  Returns:
    the name of the action

### getHelpCtx

    public HelpCtx getHelpCtx()

  Help context for the creation action.

  Specified by:
    `getHelpCtx` in interface `HelpCtx.Provider`
  Returns:
    the help context

### create

    public abstract void create()
                         throws IOException

  Create the object.

  Throws:
    `IOException` - if something fails

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.util 6.8.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.