VdexReload 1.1.3 API

uk.ac.reload.editor
Class ReloadElementBinding

java.lang.Object
  extended byuk.ac.reload.editor.ReloadElementBinding
All Implemented Interfaces:
java.io.Serializable

public class ReloadElementBinding
extends java.lang.Object
implements java.io.Serializable

A convenience class to contain a JDOM Element, its associated ReloadSchemaElement and the ReloadDocument to which the Element belongs.
It has to implement Serializable for drag and drop on a Mac

See Also:
Serialized Form

Field Summary
protected  org.jdom.Element _element
          The JDOM Element This is transient to stop Mac drag and drop wanting serializable members
protected  org.jdom.Element _parent
          The JDOM Parent Element - useful if you don't know the Element This is transient to stop Mac drag and drop wanting serializable members
protected  ReloadSchemaDocument _reloadDocument
          The ReloadDocument to which the Element belongs This is transient to stop Mac drag and drop wanting serializable members
protected  ReloadSchemaElement _reloadSchemaElement
          The associated ReloadSchemaElement This is transient to stop Mac drag and drop wanting serializable members
 
Constructor Summary
ReloadElementBinding(org.jdom.Element element, ReloadSchemaElement reloadSchemaElement, ReloadSchemaDocument reloadDocument)
          Constructor
 
Method Summary
 ReloadSchemaElement __getSchemaElement()
          Could use this method instead
 org.jdom.Element createElement(java.lang.Object source)
          If the Element is null (as it might well be) try to create a new one given that we have the parent Element set
 org.jdom.Element getElement()
          Get the JDOM Element
 ReloadSchemaDocument getReloadDocument()
          Get the ReloadDocument
 ReloadSchemaController getReloadSchemaController()
          Get the Reload Schema Controller
 ReloadSchemaElement getSchemaElement()
          Get the ReloadSchemaElement
 void setParentElement(org.jdom.Element parent)
          Set the Parent Element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_element

protected transient org.jdom.Element _element
The JDOM Element This is transient to stop Mac drag and drop wanting serializable members


_parent

protected transient org.jdom.Element _parent
The JDOM Parent Element - useful if you don't know the Element This is transient to stop Mac drag and drop wanting serializable members


_reloadSchemaElement

protected transient ReloadSchemaElement _reloadSchemaElement
The associated ReloadSchemaElement This is transient to stop Mac drag and drop wanting serializable members


_reloadDocument

protected transient ReloadSchemaDocument _reloadDocument
The ReloadDocument to which the Element belongs This is transient to stop Mac drag and drop wanting serializable members

Constructor Detail

ReloadElementBinding

public ReloadElementBinding(org.jdom.Element element,
                            ReloadSchemaElement reloadSchemaElement,
                            ReloadSchemaDocument reloadDocument)
Constructor

Parameters:
element - The JDOM Element
reloadSchemaElement - The associated ReloadSchemaElement
reloadDocument - The ReloadDocument to which the Element belongs
Method Detail

getElement

public org.jdom.Element getElement()
Get the JDOM Element

Returns:
the JDOM Element

setParentElement

public void setParentElement(org.jdom.Element parent)
Set the Parent Element

Parameters:
parent - the parent element

getSchemaElement

public ReloadSchemaElement getSchemaElement()
Get the ReloadSchemaElement

Returns:
The associated ReloadSchemaElement

__getSchemaElement

public ReloadSchemaElement __getSchemaElement()
Could use this method instead

Returns:
The associated ReloadSchemaElement

getReloadDocument

public ReloadSchemaDocument getReloadDocument()
Get the ReloadDocument

Returns:
The ReloadDocument to which the Element belongs

getReloadSchemaController

public ReloadSchemaController getReloadSchemaController()
Get the Reload Schema Controller

Returns:
The ReloadSchemaController

createElement

public org.jdom.Element createElement(java.lang.Object source)
If the Element is null (as it might well be) try to create a new one given that we have the parent Element set

Parameters:
source - who wants to create this element in the first place
Returns:
the newly created Element or null if not successful

VdexReload 1.1.3 API