g-Eclipse
Release 1.0.0

eu.geclipse.ui.views.jobdetails
Class JobTextDetail

java.lang.Object
  extended by eu.geclipse.ui.views.jobdetails.JobDetail
      extended by eu.geclipse.ui.views.jobdetails.JobTextDetail
All Implemented Interfaces:
IJobDetail
Direct Known Subclasses:
JobComplexDetail

public abstract class JobTextDetail
extends JobDetail

Detail of Job, which show value using simple text


Constructor Summary
JobTextDetail(IJobDetailsSection section, java.lang.String name)
           
 
Method Summary
 void dispose()
          Dispose created widgets (also reused widgets)
 java.lang.String getId()
           
 void reuseWidgets(IJobDetail oldDetail)
          Use widgets created in oldDetail.
 
Methods inherited from class eu.geclipse.ui.views.jobdetails.JobDetail
getSection, refresh
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobTextDetail

public JobTextDetail(IJobDetailsSection section,
                     java.lang.String name)
Parameters:
section - in which details will be shown
name - detail name
Method Detail

getId

public 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).


reuseWidgets

public void reuseWidgets(IJobDetail oldDetail)
Description copied from interface: IJobDetail
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

public void dispose()
Description copied from interface: IJobDetail
Dispose created widgets (also reused widgets)


g-Eclipse
Release 1.0.0