Object
org.eclipse.swt.widgets.Dialog
hdf.view.dialog.NewDataObjectDialog
hdf.view.dialog.NewScalarAttributeDialog
NewScalarAttributeDialog displays components for adding a new attribute.
- Version:
- 2.4 1/7/2016
- Author:
- Jordan T. Henderson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
the default length of a string attributeprotected org.eclipse.swt.widgets.Text
TextField for entering the name of the attributeFields inherited from class hdf.view.dialog.NewDataObjectDialog
arrayLengthLabel, checkUnsigned, classChoice, curFont, endianChoice, fileFormat, isEnum, isH5, isVLen, isVlenStr, lengthField, namedChoice, namedList, newObject, objList, parentObj, refObject, shell, sizeChoice, strEnumMap, tclass, torder, tsign, tsize, useCommittedType
-
Constructor Summary
ConstructorDescriptionNewScalarAttributeDialog
(org.eclipse.swt.widgets.Shell parent, HObject pObject, List<HObject> objs) Constructs a NewScalarAttributeDialog with specified object (dataset, group, or image) for the new attribute to be attached to. -
Method Summary
Modifier and TypeMethodDescriptionvoid
open()
Open the NewScalarAttributeDialog for adding a new attribute.Methods inherited from class hdf.view.dialog.NewDataObjectDialog
createDatatypeWidget, createNewDatatype, getObject, getParentGroup
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
-
Field Details
-
DEFAULT_STRING_ATTRIBUTE_LENGTH
the default length of a string attribute- See Also:
-
nameField
TextField for entering the name of the attribute
-
-
Constructor Details
-
NewScalarAttributeDialog
public NewScalarAttributeDialog(org.eclipse.swt.widgets.Shell parent, HObject pObject, List<HObject> objs) Constructs a NewScalarAttributeDialog with specified object (dataset, group, or image) for the new attribute to be attached to.- Parameters:
parent
- the parent shell of the dialogpObject
- the parent object which the new attribute is attached to.objs
- the list of all objects.
-
-
Method Details
-
open
Open the NewScalarAttributeDialog for adding a new attribute. -
getAttribute
- Returns:
- the new attribute created.
-