Module org.hdfgroup.hdfview
Package hdf.view.dialog

# Class NewLinkDialog

Object
org.eclipse.swt.widgets.Dialog
hdf.view.dialog.NewLinkDialog

public class NewLinkDialog extends org.eclipse.swt.widgets.Dialog
NewLinkDialog shows a message dialog requesting user input for creating new links.

Version:
  2.4 1/1/2016
Author:
  Jordan T. Henderson

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NewLinkDialog(org.eclipse.swt.widgets.Shell parent, Group pGroup, List<?> objs, List<FileFormat> files)`
  Constructs a NewLinkDialog with specified list of possible parent groups.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `HObject`
  `getObject()`
  `Group`
  `getParentGroup()`
  `void`
  `open()`
  Open the NewLinkDialog for adding a new link.

  ### Methods inherited from class org.eclipse.swt.widgets.Dialog

  `checkSubclass, getParent, getStyle, getText, setText`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NewLinkDialog

    public NewLinkDialog(org.eclipse.swt.widgets.Shell parent, Group pGroup, List<?> objs, List<FileFormat> files)
    Constructs a NewLinkDialog with specified list of possible parent groups.
    Parameters:
      `parent` - the parent shell of the dialog
      `pGroup` - the parent group which the new group is added to.
      `objs` - the list of all objects.
      `files` - the list of all files open in the TreeView

- ## Method Details

  - ### open

    public void open()
    Open the NewLinkDialog for adding a new link.

  - ### getObject

    public HObject getObject()
    Returns:
      the new dataset created.

  - ### getParentGroup

    public Group getParentGroup()
    Returns:
      the parent group of the new dataset.