g-Eclipse
Release 1.0.0

eu.geclipse.ui.views.jobdetails
Interface IJobDetail

All Known Implementing Classes:
JobComplexDetail, JobDetail, JobTextDetail

public interface IJobDetail

Single element containing detail information about submitted job


Method Summary
 void dispose()
          Dispose created widgets (also reused widgets)
 java.lang.String getId()
           
 IJobDetailsSection getSection()
           
 boolean refresh(IGridJob gridJob, Composite parent, IViewConfiguration viewConfiguration)
           
 void reuseWidgets(IJobDetail oldDetail)
          Use widgets created in oldDetail.
 

Method Detail

getSection

IJobDetailsSection getSection()
Returns:
section, in which detail should be shown. Section should be obtained using JobDetailSectionsManager.getSection(Integer)

getId

java.lang.String getId()
Returns:
detail identifier unique within IJobDetailsSection

Just return detail name if you know, that detail has unique name in IJobDetailsSection, in which it's placed. If you cannot assure name is unique in section, then return something unique within section (see GliteJobDetailsFactory.createStatusHistoryItem).

Two IJobDetail objects with the same identifier in the same IJobDetailsSection share created widgets (to avoid flickering).


refresh

boolean refresh(IGridJob gridJob,
                Composite parent,
                IViewConfiguration viewConfiguration)
Parameters:
gridJob - job, for which details are refreshed
parent - composite, on which widgets showing details should be created
viewConfiguration - configuration of current view
Returns:
true if refreshed value is defined (not empty). If all details in section are empty, then section is hidden

reuseWidgets

void reuseWidgets(IJobDetail oldDetail)
Use widgets created in oldDetail. Used when view is refreshed to avoid blinking.

Parameters:
oldDetail - detail used previously to show detail. Old detail has same name and section as this detail

dispose

void dispose()
Dispose created widgets (also reused widgets)


g-Eclipse
Release 1.0.0