|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGridElementCreator
Base interface for all classes that implement functionality for
creating specific implementations of the IGridElement
interface. Element creators and their capabilities to create elements from
a source object are specified with the eu.geclipse.core.gridElementCreator
extension point. Normally an element creator needs a source object from
which it creates a corresponding grid model element. This source object has
to be set with setSource(Object).
| Method Summary | |
|---|---|
IGridElement |
create(IGridContainer parent)
Create an element and set it to be a child of the specified IGridContainer. |
IGridElement |
create(IGridContainer parent,
java.lang.Object source)
Shortcut method for creating an element from the specified source object. |
java.lang.Object |
getSource()
Get the source object that was formerly specified with setSource(Object). |
void |
setSource(java.lang.Object source)
Set the source object to be used by this creator to create a grid model element from. |
| Method Detail |
|---|
IGridElement create(IGridContainer parent)
throws ProblemException
IGridContainer. The element is created from the
object that was specified in a former call to
setSource(Object). If the creation fails a
ProblemException will be thrown.
parent - The parent of the newly created element.
ProblemException - If any problem occurs while the new element is
created. For instance if a source object is needed to create the element
but was not defined before.
IGridElement create(IGridContainer parent,
java.lang.Object source)
throws ProblemException
parent - The parent of the newly created element.source - The object from which to create the element.
ProblemException - If any problem occurs while the new element is
created.java.lang.Object getSource()
setSource(Object).
create(IGridContainer) is called.void setSource(java.lang.Object source)
source - The object from which this creator will try to create a grid
model element if create(IGridContainer) is called.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||