Object
org.eclipse.swt.widgets.Dialog
hdf.view.dialog.NewDataObjectDialog
- Direct Known Subclasses:
NewAttributeDialog
,NewCompoundDatasetDialog
,NewDatasetDialog
,NewDatatypeDialog
,NewGroupDialog
,NewImageDialog
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.Label
arrayLengthLabel
protected org.eclipse.swt.widgets.Button
checkUnsigned
protected org.eclipse.swt.widgets.Combo
classChoice
protected org.eclipse.swt.graphics.Font
curFont
protected org.eclipse.swt.widgets.Combo
endianChoice
protected FileFormat
fileFormat
boolean
isEnum
protected boolean
isH5
boolean
isVLen
boolean
isVlenStr
protected org.eclipse.swt.widgets.Text
lengthField
TextField for entering the length of the data array or string.protected org.eclipse.swt.widgets.Combo
namedChoice
The Choice of the datatypesprotected List<Datatype>
namedList
protected HObject
newObject
the object createdprotected List<?>
objList
protected HObject
parentObj
the object which the this object is attachedprotected HObject
refObject
the object referencedprotected org.eclipse.swt.widgets.Shell
shell
protected org.eclipse.swt.widgets.Combo
sizeChoice
String
strEnumMap
int
tclass
The attributes of the datatypeint
torder
int
tsign
int
tsize
protected org.eclipse.swt.widgets.Button
useCommittedType
The Choice of the object list -
Constructor Summary
Constructors Constructor Description NewDataObjectDialog(org.eclipse.swt.widgets.Shell parent, HObject pGroup, List<?> objs)
-
Method Summary
Modifier and Type Method Description void
createDatatypeWidget()
Datatype
createNewDatatype(String name)
HObject
getObject()
Group
getParentGroup()
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
-
Field Details
-
shell
-
curFont
-
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 Choice of the datatypes -
classChoice
-
sizeChoice
-
endianChoice
-
useCommittedType
The Choice of the object list -
checkUnsigned
-
objList
-
namedList
-
arrayLengthLabel
-
tclass
The attributes of the datatype -
tsize
-
torder
-
tsign
-
isEnum
-
strEnumMap
-
isVLen
-
isVlenStr
-
fileFormat
-
isH5
-
-
Constructor Details
-
NewDataObjectDialog
-
-
Method Details
-
createDatatypeWidget
-
createNewDatatype
-
getObject
- Returns:
- the new object created.
-
getParentGroup
- Returns:
- the parent group of the new dataset.
-