VdexReload 1.1.3 API

uk.ac.reload.editor
Class ReloadEditorSchemaController

java.lang.Object
  extended byuk.ac.reload.moonunit.schema.ReloadSchemaController
      extended byuk.ac.reload.editor.ReloadEditorSchemaController
Direct Known Subclasses:
ContentPackageSchemaController, MetadataSchemaController, SimpleSequencingSchemaController, VocabularySchemaController

public abstract class ReloadEditorSchemaController
extends ReloadSchemaController

The Reload Editor Schema Controller


Field Summary
protected  ReloadHelperProfile _helperProfile
          The Helper Profile
 
Fields inherited from class uk.ac.reload.moonunit.schema.ReloadSchemaController
_reloadSchema, _schemaFile, _schemaHelper, _version, _vocab
 
Constructor Summary
ReloadEditorSchemaController()
          Constructor
ReloadEditorSchemaController(java.io.File fileSchema, java.io.File fileHelper, java.io.File fileVocab)
          Constructor
 
Method Summary
abstract  javax.swing.Icon getClosedIcon(org.jdom.Element element)
          Get The Closed Icon (for the Full View Tree)
abstract  javax.swing.Icon getClosedIcon(ReloadSchemaElement schemaElement)
          Get The Closed Icon (for the Full View Tree)
abstract  javax.swing.Icon getLeafIcon(org.jdom.Element element)
          Get The Leaf Icon (for the Full View Tree)
abstract  javax.swing.Icon getLeafIcon(ReloadSchemaElement schemaElement)
          Get The Leaf Icon (for the Full View Tree)
abstract  javax.swing.Icon getOpenIcon(org.jdom.Element element)
          Get The Open Icon (for the Full View Tree)
abstract  javax.swing.Icon getOpenIcon(ReloadSchemaElement schemaElement)
          Get The Open Icon (for the Full View Tree)
 ReloadHelperProfile getReloadHelperProfile()
          Get the Reload Helper profile
static ReloadSchemaController getReloadSchemaController(org.jdom.Document doc, org.jdom.Namespace ns)
          Get an appropriate ReloadSchemaController for a given Namespace in an Instance ReloadDocument
static ReloadSchemaController getReloadSchemaController(java.lang.String schemaVersion)
          Get a Schema Controller depending on a Schema version
 void loadSchema(java.io.File fileSchema)
          Load the Schema and warn if need be
 void loadSchemaHelper(java.io.File fileHelper)
          Load the Schema Helper and warn if need be
 void loadVocab(java.io.File fileVocab)
          Load the Vocab and warn if need be
 void setHelperProfile(ReloadHelperProfile profile)
          Set new Profile but keep original Schema
protected static void showWarningMessage(java.lang.String msg)
          Warn the user that we can't cope with an old version
 
Methods inherited from class uk.ac.reload.moonunit.schema.ReloadSchemaController
getDefaultValue, getElementFriendlyName, getElementHelperValue, getElementTip, getFacetValue, getReloadSchema, getReloadSchemaNode, getRootElementName, getSchemaFile, getSchemaHelper, getVersion, getVocabularyList, getVocabularyList, getVocabularyList, getWidgetType, setDefaultVocabLanguage, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_helperProfile

protected ReloadHelperProfile _helperProfile
The Helper Profile

Constructor Detail

ReloadEditorSchemaController

public ReloadEditorSchemaController()
Constructor


ReloadEditorSchemaController

public ReloadEditorSchemaController(java.io.File fileSchema,
                                    java.io.File fileHelper,
                                    java.io.File fileVocab)
Constructor

Method Detail

setHelperProfile

public void setHelperProfile(ReloadHelperProfile profile)
Set new Profile but keep original Schema


loadSchema

public void loadSchema(java.io.File fileSchema)
Load the Schema and warn if need be

Overrides:
loadSchema in class ReloadSchemaController
Parameters:
fileSchema - the schema file

loadSchemaHelper

public void loadSchemaHelper(java.io.File fileHelper)
Load the Schema Helper and warn if need be

Overrides:
loadSchemaHelper in class ReloadSchemaController
Parameters:
fileHelper - the schema helper file

loadVocab

public void loadVocab(java.io.File fileVocab)
Load the Vocab and warn if need be

Overrides:
loadVocab in class ReloadSchemaController
Parameters:
fileVocab - the vocabulary helper file

getReloadSchemaController

public static ReloadSchemaController getReloadSchemaController(org.jdom.Document doc,
                                                               org.jdom.Namespace ns)
Get an appropriate ReloadSchemaController for a given Namespace in an Instance ReloadDocument

Parameters:
doc - the ReloadDocument instance ns the Namespace in the document
Returns:
an appropriate ReloadSchemaController for a given Namespace in an Instance ReloadDocument

getReloadSchemaController

public static ReloadSchemaController getReloadSchemaController(java.lang.String schemaVersion)
Get a Schema Controller depending on a Schema version

Parameters:
schemaVersion - the schema version
Returns:
a Schema Controller depending on a Schema version

showWarningMessage

protected static void showWarningMessage(java.lang.String msg)
Warn the user that we can't cope with an old version


getReloadHelperProfile

public ReloadHelperProfile getReloadHelperProfile()
Get the Reload Helper profile

Returns:
the Helper Profile

getLeafIcon

public abstract javax.swing.Icon getLeafIcon(org.jdom.Element element)
Get The Leaf Icon (for the Full View Tree)

Parameters:
element - the leaf element
Returns:
the leaf icon

getClosedIcon

public abstract javax.swing.Icon getClosedIcon(org.jdom.Element element)
Get The Closed Icon (for the Full View Tree)

Parameters:
element - the closed element
Returns:
the close icon

getOpenIcon

public abstract javax.swing.Icon getOpenIcon(org.jdom.Element element)
Get The Open Icon (for the Full View Tree)

Parameters:
element - the open element
Returns:
the open icon

getLeafIcon

public abstract javax.swing.Icon getLeafIcon(ReloadSchemaElement schemaElement)
Get The Leaf Icon (for the Full View Tree)

Parameters:
schemaElement - the leaf schema element
Returns:
the leaf icon

getClosedIcon

public abstract javax.swing.Icon getClosedIcon(ReloadSchemaElement schemaElement)
Get The Closed Icon (for the Full View Tree)

Parameters:
schemaElement - the closed schemaElement
Returns:
the close icon

getOpenIcon

public abstract javax.swing.Icon getOpenIcon(ReloadSchemaElement schemaElement)
Get The Open Icon (for the Full View Tree)

Parameters:
schemaElement - the open schema element
Returns:
the open icon

VdexReload 1.1.3 API