|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGridContainer
An IGridContainer is an IGridElement that
is able to contain other Grid elements as children.
| Method Summary | |
|---|---|
boolean |
canContain(IGridElement element)
Determines if this may contain the specified element. |
boolean |
contains(IGridElement element)
Determines if this container holds the specified element as child. |
IGridElement |
create(IGridElementCreator creator)
Create a new Grid element from the specified IGridElementCreator and add the newly created element
to the list of children. |
void |
delete(IGridElement child)
Delete the specified child. |
void |
deleteAll()
Delete all children from this container. |
IGridElement |
findChild(java.lang.String name)
Search for a child with the specified name and return it. |
IGridElement |
findChildWithResource(java.lang.String resourceName)
Search for a child that has an IResource with the
specified name. |
int |
getChildCount()
Get the number of children currently contained in this container. |
IGridElement[] |
getChildren(IProgressMonitor monitor)
Get the children that are currently contained in this container. |
boolean |
hasChildren()
Determine if this container contains any children. |
boolean |
isDirty()
Returns if this container is dirty. |
boolean |
isLazy()
Determines if this container is using a lazy loading mechanism to manage its children. |
void |
refresh(IProgressMonitor monitor)
Refresh the content of this container. |
void |
setDirty()
Mark this container as dirty. |
| Methods inherited from interface eu.geclipse.core.model.IGridElement |
|---|
dispose, getFileStore, getName, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual |
| Method Detail |
|---|
boolean canContain(IGridElement element)
element - The element that may be contained in
this container.
boolean contains(IGridElement element)
element - The element to be checked if it is contained
in this container.
IGridElement create(IGridElementCreator creator)
throws ProblemException
IGridElementCreator and add the newly created element
to the list of children. If a child with the same name already
exists this old child is replaced by the new child.
Note that this is the only way to add children to an
IGridContainer.
creator - The IGridElementCreator from which to
create the new element.
null and there was such an old element
found. null in all other cases.
ProblemException
void delete(IGridElement child)
throws ProblemException
child - The element to be deleted.
ProblemException - If a problem occurs during the deletion.IGridElement.dispose()
void deleteAll()
throws ProblemException
ProblemException - If a problem occurs during the deletion.delete(IGridElement)IGridElement findChild(java.lang.String name)
null if no such element was found.
name - The name of the element to be searched for.
null.IGridElement findChildWithResource(java.lang.String resourceName)
IResource with the
specified name. If the child is not virtual this method is
equivalent to findChild(String).
resourceName - The name of the corresponding resource of
the child.
null.int getChildCount()
IGridElement[] getChildren(IProgressMonitor monitor)
throws ProblemException
monitor - A progress monitor that is used to indicate progress
for lazy containers. May be null.
ProblemException - If this is a lazy container it may be
possible that an exception occurs while the children are fetched.boolean hasChildren()
boolean isDirty()
getChildren(IProgressMonitor monitor) is called.
To avoid confusions non-lazy containers should always return true here.
boolean isLazy()
getChildren(IProgressMonitor monitor) methode is
called the first time. On subsequent calls of
getChildren(IProgressMonitor monitor) the formerly loaded
children are returned unless the setDirty() method was
called. In that case a call to
getChildren(IProgressMonitor monitor) will cause a
reload of this containers children.
Lazy containers always have to return true if they are asked
if they contain any children with hasChildren().
void refresh(IProgressMonitor monitor)
throws ProblemException
monitor - A progress monitor used to give the caller feedback about
the progress of the operation.
ProblemException - If a problem occurs during the refresh
operation.void setDirty()
getChildren(IProgressMonitor monitor)
is called. This methods does not affect non-lazy containers.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||