g-Eclipse
Release 1.0.0

eu.geclipse.jsdl.ui.adapters.jsdl
Class JobDefinitionTypeAdapter

java.lang.Object
  extended by AdapterImpl
      extended by eu.geclipse.jsdl.ui.adapters.jsdl.JsdlAdaptersFactory
          extended by eu.geclipse.jsdl.ui.adapters.jsdl.JobDefinitionTypeAdapter

public final class JobDefinitionTypeAdapter
extends JsdlAdaptersFactory

JobDefinitionTypeAdapter Class.

This class provides adapters for manipulating Job Definition elements through the Job Definition Page of the JSDL editor. Supported JobDefinition attributes are:

- ID


Constructor Summary
JobDefinitionTypeAdapter(JobDefinitionType jobDefinitionRoot)
          Constructs a new JobDefinitionTypeAdapter
 
Method Summary
 void attachID(Text widget)
          The attach point that handles the Text widget which is responsible for the JobDefinition ID element.
 void load()
          Method which populates the content of the underlying model to the widgets that are attached to this adapter.
 void setContent(JobDefinitionType documentRoot)
          Allows to set the adapter's content on demand and not through the adapter constructor.
 
Methods inherited from class eu.geclipse.jsdl.ui.adapters.jsdl.JsdlAdaptersFactory
adapt, adaptAllNew, adaptNew, addListener, dispose, fireNotifyChanged, getRootAdapterFactory, isFactoryForType, notifyChanged, removeListener, setParentAdapterFactory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobDefinitionTypeAdapter

public JobDefinitionTypeAdapter(JobDefinitionType jobDefinitionRoot)
Constructs a new JobDefinitionTypeAdapter

Parameters:
jobDefinitionRoot - . The root element of a JSDL document (JobDefinitionType).
Method Detail

attachID

public void attachID(Text widget)
The attach point that handles the Text widget which is responsible for the JobDefinition ID element. This attach point provides a ModifyListener that listens to changes in the text box and commits this changes to the underlying model.

Parameters:
widget - The Text widget responsible for JobDefinition ID element.

setContent

public void setContent(JobDefinitionType documentRoot)
Allows to set the adapter's content on demand and not through the adapter constructor.

Parameters:
documentRoot - The root element of a JSDL document (JobDefinitionType).

load

public void load()
Method which populates the content of the underlying model to the widgets that are attached to this adapter. The method is called from the JobDefinitionPage when the appropriate widgets are created and also every time the page becomes active.


g-Eclipse
Release 1.0.0