public class MetaDataSection extends Object implements IMetadataPart
MetaDataView
?Constructor and Description |
---|
MetaDataSection(Composite parent,
ScrolledForm scrolledForm,
TextGridObject tgo)
The constructor that creates the Metadata section.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkAllFields()
Validate all required fields.
|
org.apache.axiom.om.OMElement |
getMetadataXML()
Returns the meta data in the Metadata section.
|
TextGridObject |
getTextGridObject()
Returns the actual
TextGridObject |
XLayout |
getXLayout()
Returns the used
XLayout instance. |
boolean |
isEditable() |
boolean |
isMetadataSectionCreated()
Was the metadata section created ?
|
boolean |
isProjectFileLoaded()
Was the project file loaded ?
|
void |
reloadProjectFile(TextGridProject project)
Reload the projectfile
|
void |
setEditable(boolean editable)
Sets the current metadata section whether editable or read-only.
|
void |
setMetadataXML(org.apache.axiom.om.OMElement elem,
String type,
TextGridProject project) |
void |
setNewTGObject(TextGridObject tgo,
boolean reloadProjectFile)
Set the metadata of a
TextGridObject in the Metadata section |
void |
setVisible(boolean visible)
Changes the visibility of the Metadata-section.
|
void |
update()
Deprecated.
|
void |
updateTextGridObject()
Writes the meta data in the form to the TextGridObject.
|
boolean |
validate()
Validate the input of the meta data part
|
void |
writeToGrid()
Writes the changes of the
TextGridObject to the grid. |
public MetaDataSection(Composite parent, ScrolledForm scrolledForm, TextGridObject tgo)
ScrolledPageArea
object.parent
- the parent compositescrolledForm
- the scrolled formtgo
- an optional TextGridObject
to set its meta data in the
sectionpublic void setVisible(boolean visible)
visible
- public void setNewTGObject(TextGridObject tgo, boolean reloadProjectFile)
TextGridObject
in the Metadata sectiontgo
- an optional TextGridObject
to set its meta data in the
sectionreloadProjectFile
- should the project-file be reloaded ?public void setMetadataXML(org.apache.axiom.om.OMElement elem, String type, TextGridProject project)
public boolean isMetadataSectionCreated()
public boolean isProjectFileLoaded()
public void setEditable(boolean editable)
editable
- true or falsepublic org.apache.axiom.om.OMElement getMetadataXML()
public void updateTextGridObject()
public TextGridObject getTextGridObject()
TextGridObject
public boolean checkAllFields()
public void writeToGrid()
TextGridObject
to the grid.public void reloadProjectFile(TextGridProject project)
project
- public boolean validate()
IMetadataPart
validate
in interface IMetadataPart
@Deprecated public void update()
update
in interface IMetadataPart
public boolean isEditable()
isEditable
in interface IMetadataPart