|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAdapterImpl
eu.geclipse.jsdl.ui.adapters.jsdl.JsdlAdaptersFactory
eu.geclipse.jsdl.ui.adapters.jsdl.ResourcesTypeAdapter
public final class ResourcesTypeAdapter
ResourcesTypeAdapter Class This class provides adapters for manipulating Resources elements through the Resources Page of the JSDL editor. Supported Resources elements are:
- Candidate Hosts
- FileSystem
- OperatingSystem
- CPUArchitecture
| Constructor Summary | |
|---|---|
ResourcesTypeAdapter(JobDefinitionType jobDefinitionRoot)
Constructs a new |
|
| Method Summary | |
|---|---|
void |
addCandidateHosts(TableViewer tableViewer,
java.lang.Object[] value)
Method that adds a list of Candidate Hosts . |
void |
addFileSystem(TableViewer tableViewer,
java.lang.Object[] value)
Method that adds a list of File Systems. |
void |
attachToCPUArchitecture(Combo widget)
The attach point that handles the Combo widget which is responsible for the
Resources CPUArchitecture element. |
void |
attachToDelete(Button button,
TableViewer tableViewer)
Adapter interface to attach to the Delete button. |
void |
attachToExclusiveExecution(Combo widget)
The attach point that handles the Combo widget which is responsible for the
Resources ExclusiveExecution element. |
void |
attachToFileSystems(TableViewer widget)
The attach point that handles the TableViewer widget which is responsible for the
Resources FileSystem element. |
void |
attachToHostName(TableViewer widget)
The attach point that handles the TableViewer widget which is responsible for the
Resources CandidateHosts element. |
void |
attachToIndividualCPUSpeed(Text text,
Combo combo)
The attach point that handles the Text widget which is responsible for the
Resources IndividualCPUSpeed element. |
void |
attachToOSDescription(Text widget)
The attach point that handles the Text widget which is responsible for the
Resources OperatingSystemDescription element. |
void |
attachToOSType(Combo widget)
The attach point that handles the Combo widget which is responsible for the
Resources OperatingSystem element. |
void |
attachToOSVersion(Text widget)
The attach point that handles the Text widget which is responsible for the
Resources OperatingSystemVersion element. |
void |
load()
Method which populates the content of the underlying model to the widgets that are attached to this adapter. |
void |
performEdit(TableViewer tableViewer,
java.lang.Object value)
Method that edits a list a FileSystem . |
void |
setContent(JobDefinitionType jobDefinitionRoot)
Allows to set the adapter's content on demand and not through the 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 |
|---|
public ResourcesTypeAdapter(JobDefinitionType jobDefinitionRoot)
ResourcesTypeAdapter
jobDefinitionRoot - . The root element of a JSDL document (JobDefinitionType).| Method Detail |
|---|
public void setContent(JobDefinitionType jobDefinitionRoot)
jobDefinitionRoot - The root element of a JSDL document.public void attachToHostName(TableViewer widget)
TableViewer widget which is responsible for the
Resources CandidateHosts element.
widget - The TableViewer widget responsible for Resources CandidateHosts element.public void attachToFileSystems(TableViewer widget)
TableViewer widget which is responsible for the
Resources FileSystem element.
widget - The TableViewer widget responsible for Resources FileSystem element.
public void attachToDelete(Button button,
TableViewer tableViewer)
button - The SWT Button which is associated with an SWT list on the page
and is responsible to delete elements from this list.tableViewer - The SWT TableViewer containing the elements to be deleted.
public void addCandidateHosts(TableViewer tableViewer,
java.lang.Object[] value)
tableViewer - The TableViewer that will hold the Candidate Hosts.value - The list of Candidate Hosts.
public void addFileSystem(TableViewer tableViewer,
java.lang.Object[] value)
tableViewer - The TableViewer that will hold the File Systems.value - The list of File Systems.
public void performEdit(TableViewer tableViewer,
java.lang.Object value)
tableViewer - The TableViewer that will hold the Candidate Hosts.value - The new value of the File System.public void attachToOSType(Combo widget)
Combo widget which is responsible for the
Resources OperatingSystem element. This attach point provides a SelectionListener
that listens to changes in the text box and commits this changes to the underlying
model.
widget - The Text widget responsible for Resources Operating System element.public void attachToCPUArchitecture(Combo widget)
Combo widget which is responsible for the
Resources CPUArchitecture element. This attach point provides a SelectionListener
that listens to changes in the text box and commits this changes to the underlying
model.
widget - The Text widget responsible for Resources CPUArchitecture element.public void attachToOSVersion(Text widget)
Text widget which is responsible for the
Resources OperatingSystemVersion element. This attach point provides a ModifyListener
that listens to changes in the text box and commits this changes to the underlying
model.
widget - The Text widget responsible for Resources OperatingSystemVersion element.public void attachToOSDescription(Text widget)
Text widget which is responsible for the
Resources OperatingSystemDescription element. This attach point provides a ModifyListener
that listens to changes in the text box and commits this changes to the underlying
model.
widget - The Text widget responsible for Resources OperatingSystemDescription element.
public void attachToIndividualCPUSpeed(Text text,
Combo combo)
Text widget which is responsible for the
Resources IndividualCPUSpeed element. This attach point provides a ModifyListener
that listens to changes in the text box and commits this changes to the underlying
model.
text - The Text widget responsible for Resources IndividualCPUSpeed element.combo - The Combo widget responsible for Resources IndividualCPUSpeed boundary.public void attachToExclusiveExecution(Combo widget)
Combo widget which is responsible for the
Resources ExclusiveExecution element. This attach point provides a SelectionListener
that listens to changes in the text box and commits this changes to the underlying
model.
widget - The Text widget responsible for Resources ExclusiveExecution element.public void load()
JobDefinitionPage when
the appropriate widgets are created and also every time the page becomes active.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||