VdexReload 1.1.3 API

uk.ac.reload.editor.vocabulary.formview
Class VocabularyFormModel

java.lang.Object
  extended byuk.ac.reload.editor.vocabulary.formview.VocabularyFormModel

public class VocabularyFormModel
extends java.lang.Object

The Vocabulary Form View Model This reads in a VX User Profile and provides the Elements and form view mappings


Field Summary
protected  VocabularySchemaController _schemaController
          The Vocabulary Schema Controller
protected  Vocabulary _vocabulary
          The Vocabulary Document
protected  VocabularyHelperProfile _vxProfile
          The Vocabulary Helper Profile
 
Constructor Summary
VocabularyFormModel()
          Default constructor
 
Method Summary
protected  VocabularyField createElementWidget(ReloadSchemaElement schemaElement)
          Create a widget bound to an Element
 VocabularyField createWidget(VocabularyProfileElement profileElement)
          Create a suitable component for a Schema Element or Attribute
 VocabularyProfileElement getRootElement()
          Get the Root Element of the Vocabulary Profile
 void setDocument(Vocabulary vocabulary)
          Update the Document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_vocabulary

protected Vocabulary _vocabulary
The Vocabulary Document


_schemaController

protected VocabularySchemaController _schemaController
The Vocabulary Schema Controller


_vxProfile

protected VocabularyHelperProfile _vxProfile
The Vocabulary Helper Profile

Constructor Detail

VocabularyFormModel

public VocabularyFormModel()
Default constructor

Method Detail

setDocument

public void setDocument(Vocabulary vocabulary)
Update the Document

Parameters:
vocabulary - the vocabulary document

getRootElement

public VocabularyProfileElement getRootElement()
Get the Root Element of the Vocabulary Profile

Returns:
the root element of the vocabulary profile

createWidget

public VocabularyField createWidget(VocabularyProfileElement profileElement)
Create a suitable component for a Schema Element or Attribute

Parameters:
profileElement - The profileElement for which to make the widget
Returns:
The VocabularyField Widget

createElementWidget

protected VocabularyField createElementWidget(ReloadSchemaElement schemaElement)
Create a widget bound to an Element

Parameters:
schemaElement - The Element to Widgetise
Returns:
A VocabularyField widget

VdexReload 1.1.3 API