Object
org.eclipse.swt.widgets.Dialog
hdf.view.dialog.NewDataObjectDialog
- Direct Known Subclasses:
NewCompoundAttributeDialog,NewCompoundDatasetDialog,NewDatasetDialog,NewDatatypeDialog,NewGroupDialog,NewImageDialog,NewScalarAttributeDialog,NewStringAttributeDialog
public class NewDataObjectDialog extends org.eclipse.swt.widgets.Dialog
NewDataDialog is an intermediate class for creating data types.
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.swt.widgets.LabelarrayLengthLabelThe length label for the objectprotected org.eclipse.swt.widgets.ButtoncheckUnsignedThe unsigned data button for the objectprotected org.eclipse.swt.widgets.ComboclassChoiceThe class combobox for the objectprotected org.eclipse.swt.graphics.FontcurFontthe current fontprotected org.eclipse.swt.widgets.ComboendianChoiceThe endianess combobox for the objectprotected FileFormatfileFormatThe file format associated with this objectbooleanisEnumIf the object is an enum objectprotected booleanisH5If the object should be attached to a hdf5 objectbooleanisVLenIf the object is a variable length data objectbooleanisVlenStrIf the object is a variable length stringprotected org.eclipse.swt.widgets.TextlengthFieldTextField for entering the length of the data array or string.protected org.eclipse.swt.widgets.CombonamedChoiceThe named datatype combobox for the objectprotected List<Datatype>namedListThe list of datatypes for the objectprotected HObjectnewObjectthe object createdprotected List<?>objListThe list of objects for the objectprotected HObjectparentObjthe object which the this object is attachedprotected HObjectrefObjectthe object referencedprotected org.eclipse.swt.widgets.Shellshellthe visual shell for the dialogprotected org.eclipse.swt.widgets.CombosizeChoiceThe size combobox for the objectStringstrEnumMapThe enum mapping for the objectinttclassThe default class for the objectinttorderThe default byte order for the objectinttsignThe default sign for the objectinttsizeThe default size for the objectprotected org.eclipse.swt.widgets.ButtonuseCommittedTypeThe committed datatype button for the object -
Constructor Summary
Constructors Constructor Description NewDataObjectDialog(org.eclipse.swt.widgets.Shell parent, HObject pGroup, List<?> objs)The NewDataObjectDialog constructor. -
Method Summary
Modifier and Type Method Description voidcreateDatatypeWidget()the new dataset properties to be created.DatatypecreateNewDatatype(String name)Create the datatype according to the settings.HObjectgetObject()GroupgetParentGroup()Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setTextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
shell
the visual shell for the dialog -
curFont
the current font -
parentObj
the object which the this object is attached -
refObject
the object referenced -
newObject
the object created -
lengthField
TextField for entering the length of the data array or string. -
namedChoice
The named datatype combobox for the object -
classChoice
The class combobox for the object -
sizeChoice
The size combobox for the object -
endianChoice
The endianess combobox for the object -
useCommittedType
The committed datatype button for the object -
checkUnsigned
The unsigned data button for the object -
objList
The list of objects for the object -
namedList
The list of datatypes for the object -
arrayLengthLabel
The length label for the object -
tclass
The default class for the object -
tsize
The default size for the object -
torder
The default byte order for the object -
tsign
The default sign for the object -
isEnum
If the object is an enum object -
strEnumMap
The enum mapping for the object -
isVLen
If the object is a variable length data object -
isVlenStr
If the object is a variable length string -
fileFormat
The file format associated with this object -
isH5
If the object should be attached to a hdf5 object
-
-
Constructor Details
-
NewDataObjectDialog
The NewDataObjectDialog constructor.- Parameters:
parent- the dialog parent shellpGroup- the dialog parent group objectobjs- the list of objects
-
-
Method Details
-
createDatatypeWidget
the new dataset properties to be created. -
createNewDatatype
Create the datatype according to the settings.- Parameters:
name- the datatype name- Returns:
- the new object created.
-
getObject
- Returns:
- the new object created.
-
getParentGroup
- Returns:
- the parent group of the new dataset.
-