|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectViewPart
eu.geclipse.ui.views.GridModelViewPart
public abstract class GridModelViewPart
Abstract superclass of all views that show
GridModel related data. Views that
extend this class mainly consist of a StructuredViewer and
may contribute actions to context menus for instance. The root
element of the viewer has to be an IGridElement that is returned
by the getRootElement() method. Subclasses also have to
specified the content and label providers that are used to render
the data. These providers are specified by the
createContentProvider() and createLabelProvider()
methods.
| Constructor Summary | |
|---|---|
GridModelViewPart()
|
|
| Method Summary | |
|---|---|
void |
createPartControl(Composite parent)
|
void |
dispose()
|
StructuredViewer |
getViewer()
Get the StructuredViewer that is associated with this
view. |
void |
gridModelChanged(IGridModelEvent event)
The method is called everytime a change in the model occurred and the event processing is active. |
boolean |
isDragSource(IGridElement element)
Determines if drag'n'drop should be made available for the specified element. |
void |
refreshViewer()
Refresh the associated StructuredViewer. |
void |
refreshViewer(IGridElement element)
Refresh the associated StructuredViewer. |
void |
setFocus()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridModelViewPart()
| Method Detail |
|---|
public void createPartControl(Composite parent)
public void dispose()
public StructuredViewer getViewer()
StructuredViewer that is associated with this
view.
public void gridModelChanged(IGridModelEvent event)
IGridModelListener
gridModelChanged in interface IGridModelListenerevent - The event that occurred in the model.public boolean isDragSource(IGridElement element)
element - The element for which drag'n'drop operations should
be either allowed or forbidden.
public void refreshViewer()
StructuredViewer. Calls the
StructuredViewer#refresh() method and ensures that
this method is called in an UI thread.
StructuredViewer#refresh()public void refreshViewer(IGridElement element)
StructuredViewer. Calls the
StructuredViewer#refresh(Object) method and ensures that
this method is called in an UI thread.
element - The element that should be refreshed recursively.StructuredViewer#refresh(Object)public void setFocus()
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||